Closed mdsumner closed 2 weeks ago
I think it crashes R because of this
gdalwarp NETCDF:/vsicurl/https://archive.podaac.earthdata.nasa.gov/podaac-ops-cumulus-protected/MUR-JPL-L4-GLOB-v4.1/20240101090000-JPL-L4_GHRSST-SSTfnd-MUR-GLOB-v02.0-fv04.1.nc:analysed_sst -t_srs "+proj=laea +lon_0=180" -te -1e5 -1e5 1e5 1e5 out.tif
Creating output file that is 20000000P x 20000000L.
ERROR 3: out.tif: Free disk space available is 3931875180544 bytes, whereas 800000000000000 are at least necessary. You can disable this check by defining the CHECK_DISK_FREE_SPACE configuration option to FALSE.
(because there's no source crs, it's treating the projected extent as a longlat one so it's a massive output)
segfaulting on
dsn <- system.file("extdata/sst.tif", package = "vapour")
X3 <- gdal_raster_data(dsn, target_ext = c(-1, 1, -1, 1) * 8e6,
target_dim = c(512, 678), target_crs = "+proj=stere +lon_0=147 +lat_0=-90")
and on this
sds <- "NETCDF:/rdsi/PUBLIC/raad/data/www.ncei.noaa.gov/data/sea-surface-temperature-optimum-interpolation/v2.1/access/avhrr/198109/oisst-avhrr-v02r01.19810901.nc:sst"
vapour_warp_raster(sds, extent = c(0, 1, 0, 1), dimension = c(4, 4))
why
This should not crash, the crs is missing.