Description Usage Arguments Examples
Plot the spatial location of a PBI farmer to determine if the geographic location of the time series corresponds with a field on the ground. Used in QA/QC for satellite data comparisons.
1 2 | plot_spatial_location(df = df, userfield = NULL, path = "~",
stack_path = "~")
|
df |
cropmonitor database dataframe |
userfield |
userfield, concated userid and field # as in user-field |
path |
path location where to output summary graphics |
stack_path |
path to subsets of the HLS images, to map the grid of the harmonized landsat sentinel data |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # no examples yet
## Not run:
# Load main data file, including all indices
df = readRDS("~/cropmonitor/cropmonitor.rds")
# screen for test sites in the US / EU
df = df[which(df$longitude > 70),]
df = df[which(as.Date(df$date) > as.Date("2016-10-01")),]
# create unique field vector
df$userfield = paste(df$uniqueuserid,df$uniquecropsiteid,sep = "-")
# plot spatial location graph in home directory
plot_spatial_location(df, userfield = 430720-1, path = '~')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.