powered by
Calculate zonal statistics. Alternative to fnAggRadRast using GDAL. Faster for large polygons. Modified from http://www.guru-gis.net/efficient-zonal-statistics-using-r-and-gdal/
fnAggRadGdal(ctryCode, ctryPoly, nlPeriod, fnStats = pkgOptions("stats"), nlType)
character string the ISO3 country code to be processed
Polygon the loaded country polygon layer
character string the nlPeriod to be processed
character vector The stats to calculate
the nlType of interest
data.frame of polygon attributes and the calculated stats
# NOT RUN { validNlMonthNum("01","VIIRS") # } # NOT RUN { #returns TRUE # }
Run the code above in your browser using DataLab