You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The FY24 gNATSGO mukey grid was incorrectly exported as INT32 vs. UINT32, with NODATA encoded as -2147483648. WCS specifications are hard-coded in soilDB, but should be hosted server-side, ideally in a JSON file for each suite of WCS variables.
I'll work on making the JSON files on soilweb, then make changes here.
Accidentally found an INT32 NODATA in ND.
library(terra)
library(soilDB)
library(sf)
# https://casoilresource.lawr.ucdavis.edu/gmap/?loc=48.01037,-98.31562,z15bb<-'-98.3466 47.9967,-98.3466 48.0232,-98.2844 48.0232,-98.2844 47.9967,-98.3466 47.9967'## assemble AOI polygon into WKTwkt<- sprintf('POLYGON((%s))', bb)
## init sf polygon# WGS84 GCSx<- vect(wkt, crs='epsg:4326')
gnatsgo<- mukey.wcs(x, db='gNATSGO', res=30)
rss<- mukey.wcs(x, db='rss', res=30)
# RAT has a bogus entry, due to INT32 coded NA value (-2147483648)
head(cats(gnatsgo)[[1]])
# note single pixel with bogus NA
par(bg='red')
plot(gnatsgo)
# what about the little missing pixel, does it exist in RSS?
plot(rss)
# what is going on with that little pixel?
plot(gnatsgo-rss)
The text was updated successfully, but these errors were encountered:
The FY24 gNATSGO mukey grid was incorrectly exported as INT32 vs. UINT32, with NODATA encoded as
-2147483648
. WCS specifications are hard-coded in soilDB, but should be hosted server-side, ideally in a JSON file for each suite of WCS variables.I'll work on making the JSON files on soilweb, then make changes here.
Accidentally found an INT32 NODATA in ND.
The text was updated successfully, but these errors were encountered: