Downloads and processes WaPOR (Water Productivity Open-access portal) and AgERA5 raster data from the FAO GIS Manager API. Provides functions for extracting time series, calculating zonal statistics for regions and polygons, downloading raster maps, unit conversion, and seasonal crop water productivity analysis. Supports WaPOR Level 1, Level 2, Level 3 data products and AgERA5 climate variables. Includes an interactive Shiny dashboard for data exploration and analysis with crop mask integration and seasonal indicator computation.
Options
Rwapor.verbosePrint progress messages (default
TRUE). Warnings are always shown.Rwapor.disk_checkCheck free disk space before file-backed processing (default
TRUE).Rwapor.memory_budget_mbMemory budget in MB for processing; by default half of available memory is used.
Rwapor.cache_ttlURL metadata cache lifetime in seconds (default
86400).Rwapor.remote_fallbackRemote-read fallback mode (default
"stream"; use"download"for the local cache).Rwapor.configure_gdalConfigure GDAL on package load when needed (default
TRUE).Rwapor.fix_projPoint PROJ to the database shipped with sf or terra on package load when a foreign one (for example PostGIS) is on the path (default
TRUE).Rwapor.remote_extension_filterWhile Rwapor reads remote rasters, limit
/vsicurl/to.tiffiles to avoid failing side-file requests (defaultTRUE).Rwapor.max_season_profilesMaximum number of per-pixel season profiles (default
64).Rwapor.plan_thresholdsOptional named processing-mode thresholds; defaults are calculated from the memory budget.
Rwapor.remote_cache_dirDirectory for cached remote rasters; by default the R user cache directory is used.
Author
Maintainer: Almutaz Mohammed almutaz.mohammed@fao.org [copyright holder]