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
Only when we have 1 band chosen does it work, when multiple or NULL (all bands) it doesn't get written into the GEOLOCATION metadata domain.
sds<-vapour::vapour_sds_names("CMIP_extract_forgdal.nc")
for (iinlist(1, 1:2, NULL)) {
## 1 is intpp variable (x, y, time), 2,3 is lon(x), lat(y)vrt1<-vapour::vapour_vrt(sds[1], geolocation=sds[3:2], bands=i)
tx<- unlist(strsplit(vrt1, "\n"))
writeLines(tx[grep("GEOLOCATION", tx) + c(0:10)])
print(i)
}
Warning1:dimension#2 (x) is not a Longitude/X dimension.Warning1:dimension#1 (y) is not a Latitude/Y dimension.<Metadatadomain="GEOLOCATION"><MDIkey="LINE_OFFSET">0</MDI><MDIkey="LINE_STEP">1</MDI><MDIkey="PIXEL_OFFSET">0</MDI><MDIkey="PIXEL_STEP">1</MDI><MDIkey="SRS">OGC:CRS84</MDI><MDIkey="X_BAND">1</MDI><MDIkey="X_DATASET">NETCDF:"CMIP_extract_forgdal.nc":lon</MDI><MDIkey="Y_BAND">1</MDI><MDIkey="Y_DATASET">NETCDF:"CMIP_extract_forgdal.nc":lat</MDI></Metadata>
[1] 1Warning1:dimension#2 (x) is not a Longitude/X dimension.Warning1:dimension#1 (y) is not a Latitude/Y dimension.
[1] 12Warning1:dimension#2 (x) is not a Longitude/X dimension.Warning1:dimension#1 (y) is not a Latitude/Y dimension.NULL
Only when we have 1 band chosen does it work, when multiple or NULL (all bands) it doesn't get written into the GEOLOCATION metadata domain.
CMIP_extract_forgdal.nc.zip
file created with
The text was updated successfully, but these errors were encountered: