Closed calvinke closed 4 years ago
Hi @calvinke
Please try to pass na.rm=TRUE
as an argument to sum. You can do this by specifying the nlStat as nlStats=list("sum", "na.rm=TRUE")
. I believe that error is temporary but I will try to track it down.
You should be able to speed this up a bit more by increasing the pkgOption numThreads
. The default is 2 which means 2 (sub)polygons are processed in parallel. Hopefully, we get the gdal option to work for you since I believe it will be significantly faster.
That works now, thanks!
Hello, I tried to run this without gdal and aria2. It seems to run, and took about 5 hours. However, I got a bunch of errors and the resulting dataset has N/A for all the nighttime light values:
2019-12-12 00:16:16: Masking the raster 2019-12-12 00:16:16: Mask using rasterize Error in x$.self$finalize() : attempt to apply non-function In addition: Warning message: In RGEOSBinPredFunc(spgeom1, spgeom2, byid, func) : spgeom1 and spgeom2 have different proj4 strings Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function Error in x$.self$finalize() : attempt to apply non-function 2019-12-12 04:49:48: Writing the raster to disk 2019-12-12 04:50:07: Crop and mask using rasterize ... Done 2019-12-12 04:50:07: Begin extracting data from the raster |============================================================================================================| 100% 2019-12-12 05:10:46: Saving nlStat 'sum()' ... 2019-12-12 05:10:47: sum() already saved 2019-12-12 05:10:47: Saving nlStat 'sum' ... DONE 2019-12-12 05:10:47: DONE processing IND 2015 2019-12-12 05:10:47: COMPLETE. Writing data to disk 2019-12-12 05:10:47: Deleting tile TIF: C:/Users/Documents/.Rnightlights/tiles/NL_TILE_VIIRS.Y_VCM-ORM-NTL_2015_75N060E.tif 2019-12-12 05:10:48: Deleting tile ZIP: C:/Users/Documents/.Rnightlights/tiles/NL_TILE_VIIRS.Y_VCM-ORM-NTL_2015_75N060E.tgz 2019-12-12 05:10:48: ** COMPLETED PROCESSING :ctryCodes=IND, admLevels=0_IAGE71FL_Buffer, nlTypes=VIIRS.Y, configNames=VCM-ORM-NTL, multiTileStrategy=all, multiTileMergeFun=mean, removeGasFlares=TRUE, nlPeriods=2015, nlStats=sum, custPolyPath=C://Users/Documents/Data/alan/India.zip, gadmVersion=3.6, gadmPolyType=shpZip, downloadMethod=auto, cropMaskMethod=rast, extractMethod=rast**** 2019-12-12 05:10:48: All stats exist 2019-12-12 05:10:48: Retrieving requested data