Extract data from PhenoRice mosaics

pr_extract(main_folder, region)

Arguments

main_folder

location of the "Data" folder (e.g., "/home/lb/my_data/prasia/Data")

region

region to extract(e.g., "Region_3_-Central_Luzon"). If "All", all regions are extracted. Multoiple values are possible. (e.g., region = c("Region_3-_Central_Luzon", "Chippalonga"))

Value

  • Cropped rasters are stored in the Data/subsets/_region_name_/orig and Data/subsets/_region_name_/decirc folders. #'

  • Extracted data are saved in the Data/subsets/_region_name_/RData folder. One separate RData file is created for each PhenoRice parameter (e.g., "Dhaka_sos_stats.RData", "Dhaka_eos_stats.RData", "Dhaka_sos_decirc_stats.RData")

Examples

# NOT RUN {
# set the main folder ----
main_folder <- "/home/lb/my_data/prasia/Data"

# Suppose you want to extract data for Region: "Region_3_-_Central_Luzon" :
# --> extract it from the full shapefile
Region_name <- "Region_3_-_Central_Luzon"

# "1) run "pr_extract" on the region ----

pr_extract(main_folder,
          region = Region_name)
# }