Description Usage Arguments Value Author(s) Examples
Extract data from PhenoRice mosaics
1 | pr_extract(main_folder, region)
|
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")) |
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")
Lorenzo Busetto, phD (2017) lbusett@gmail.com
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## 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")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.