generate_ref_stations: Generate ground stations for Raster file Extraction

View source: R/AgroSoil_generic_functions.R

generate_ref_stationsR Documentation

Generate ground stations for Raster file Extraction

Description

Generate a number of ground stations based on spatial coverage sampling approach for use in raster data extraction

Usage

generate_ref_stations(
  N_samples = 200,
  ROI_shp,
  out_dir,
  iterations = 10,
  crs_,
  ROI_state
)

Arguments

N_samples

Numeric. Number of required ground stations. Default value is 100

ROI_shp

Object of class SpatialPoints dataframe

out_dir

Directory to save outputs

iterations

Numeric. Number of resampling iterations. Default value is 10

crs_

Spatial reference for ground stations. Default is WGS84 "+proj=longlat +datum=WGS84 +no_defs"

ROI_state

String. Name of ROI for which stations are being generated.

Examples

library(spcosa)
library(raster)

generate_ref_stations(ROI_shp, out_dir, ROI_state)


kanj241/agrosoil documentation built on March 25, 2022, 12:22 a.m.