Skip to content

Commit

Permalink
turn off rdsi
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsumner committed Jun 3, 2024
1 parent f2f1d0f commit 35dcfbc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/testthat/test-crs-less-warp.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ test_that("with with no source crs works", {
ok <- vapour_warp_raster(f, dimension = info$dimension,
extent = c(0, 1, 0, 1), transformation_options = c("SRC_METHOD=NO_GEOTRANSFORM"))

if (dir.exists("/rdsi/PUBLIC/raad/data/www.ncei.noaa.gov")) {
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"
## expect no crashy crashy
expect_silent(vapour_warp_raster(sds, extent = c(0, 1, 0, 1), dimension = c(4, 4)))
expect_silent(vapour_warp_raster(sds, extent = c(0, 1, 0, 1), dimension = c(4, 4), source_projection = "+proj=laea"))
expect_warning(vapour_warp_raster(sds, extent = c(0, 1, 0, 1), dimension = c(4, 4), projection = "OGC:CRS84"))
}
# if (dir.exists("/rdsi/PUBLIC/raad/data/www.ncei.noaa.gov")) {
# 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"
# ## expect no crashy crashy
# expect_silent(vapour_warp_raster(sds, extent = c(0, 1, 0, 1), dimension = c(4, 4)))
# expect_silent(vapour_warp_raster(sds, extent = c(0, 1, 0, 1), dimension = c(4, 4), source_projection = "+proj=laea"))
# expect_warning(vapour_warp_raster(sds, extent = c(0, 1, 0, 1), dimension = c(4, 4), projection = "OGC:CRS84"))
# }


## this file is written upside down so the geoloc screws up (or something, not quite there yet)
Expand Down

0 comments on commit 35dcfbc

Please sign in to comment.