vapour icon indicating copy to clipboard operation
vapour copied to clipboard

some zarr examples

Open mdsumner opened this issue 3 years ago • 1 comments

Sys.setenv(AWS_NO_SIGN_REQUEST="YES")
Sys.setenv(AWS_VIRTUAL_HOSTING="FALSE")
Sys.setenv(AWS_DEFAULT_REGION="us-west-2")
#library(stars)
src <- "/vsis3/cboettig-shared/SpeciesRichness_Vertebrates.zarr"
#y <- stars::read_stars(src)
#plot(y)


library(whatarelief)
info <- vapour::vapour_raster_info(src)
x <- elevation(source = src, extent = info$extent, dimension = dev.size("px"), projection = info$projection)
library(ximage)
ximage(x, extent = info$extent)


bucket <- "https://minio.cirrus.carlboettiger.info/shared-data/"
f <- "SpeciesRichness_Vertebrates.tif"
download.file(paste0(bucket, f), f)



export AWS_NO_SIGN_REQUEST="YES"
export AWS_DEFAULT_REGION="us-west-2"
export AWS_VIRTUAL_HOSTING="FALSE"
gdalinfo  ZARR:"/vsis3/mur-sst/zarr":/analysed_sst



vapour::vapour_raster_info("/vsis3/mur-sst/zarr")
vapour::vapour_sds_names("/vsis3/mur-sst/zarr")
https://podaac.jpl.nasa.gov/dataset/MUR-JPL-L4-GLOB-v4.1



library(vapour)
sst <- vapour_warp_raster("ZARR:\"/vsis3/mur-sst/zarr\":/analysed_sst:6442", 
                              extent = c(140, 147, -50, -42), projection = "OGC:CRS84", dimension = c(256, 256))




mdsumner avatar Aug 08 '22 02:08 mdsumner

see mursst() in hypertidy/dsn

mdsumner avatar Apr 11 '23 12:04 mdsumner