Code package for handling NEON geolocation data. Includes functions to extract spatial data from the API based on a named location, and to calculate more precise locations for select observational data products.
> library(devtools)
> install_github('NEONScience/NEON-geolocation/geoNEON', dependencies=TRUE)
Skipping install of 'geoNEON' from a github remote, the SHA1 (a26a3990) has not changed since last install.
Use `force = TRUE` to force installation
> library(geoNEON)
> d <- data.frame(namedLocation="GUAN_044.basePlot.ltr", subplotID=23, trapID="GUAN_044_385")
> def.calc.geo.os(d, "ltr_pertrap")
returns -
| | 0%
_Error in which(clipCell$clipCellNumber == subplot.loc$cellNum[i] & clipCell$pointID == :
lazy-load database 'C:/Users/kjones/Documents/R/win-library/3.4/geoNEON/R/sysdata.rdb' is corrupt
In addition: Warning messages:
1: In which(clipCell$clipCellNumber == subplot.loc$cellNum[i] & clipCell$pointID == :
restarting interrupted promise evaluation
2: In which(clipCell$clipCellNumber == subplot.loc$cellNum[i] & clipCell$pointID == :
internal error -3 in Rdecompress1
@kjones13
The example code stills runs OK on my machine. It looks like the problem is in loading the clipCell data, which comes with the package. Do you run into this problem with other package data?
returns - | | 0% _Error in which(clipCell$clipCellNumber == subplot.loc$cellNum[i] & clipCell$pointID == : lazy-load database 'C:/Users/kjones/Documents/R/win-library/3.4/geoNEON/R/sysdata.rdb' is corrupt In addition: Warning messages: 1: In which(clipCell$clipCellNumber == subplot.loc$cellNum[i] & clipCell$pointID == : restarting interrupted promise evaluation 2: In which(clipCell$clipCellNumber == subplot.loc$cellNum[i] & clipCell$pointID == : internal error -3 in Rdecompress1