[gdal-dev] Reading NetCDF on S3 with /vsis3/
Even Rouault
even.rouault at spatialys.com
Sun Dec 3 05:28:58 PST 2023
Scott,
Le 03/12/2023 à 03:09, Scott Staniewicz via gdal-dev a écrit :
> Are there any known limitations that prevent NetCDF datasets from
> being read using `/vsis3/`?
Yes. This requires Linux + sufficient permissions to run the userfaultfd
Linux system call, which can be an issue when running in a container. Cf
https://gdal.org/drivers/raster/netcdf.html#vsi-virtual-file-system-api-support.
The following works for me:
$ docker run --rm -it --security-opt seccomp=unconfined -e
CPL_AWS_CREDENTIALS_FILE=/path/to/.aws/credentials -v $HOME:$HOME
ghcr.io/osgeo/gdal:alpine-normal-3.8.1 gdalinfo
/vsis3/my_bucket/longitude_latitude.nc
Driver: netCDF/Network Common Data Format
Files: /vsis3/my_bucket/longitude_latitude.nc
Size is 4, 3
Origin = (-180.041666666666657,-79.791679382324219)
Pixel Size = (0.083333333333333,-0.083328247070312)
Corner Coordinates:
Upper Left (-180.0416667, -79.7916794)
Lower Left (-180.0416667, -80.0416641)
Upper Right (-179.7083333, -79.7916794)
Lower Right (-179.7083333, -80.0416641)
Center (-179.8750000, -79.9166718)
Band 1 Block=4x1 Type=Float32, ColorInterp=Undefined
NoData Value=9.96921e+36
Metadata:
NETCDF_VARNAME=myvar
Even
--
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20231203/60b2bee9/attachment.htm>
More information about the gdal-dev
mailing list