<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Scott,<br>
</p>
<div class="moz-cite-prefix">Le 03/12/2023 à 03:09, Scott Staniewicz
via gdal-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAN4_TO-CKzFuYPzhRO+ro44EXL9pffPjSE4LUeMmAg+dzwJ6Zw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>
<div>Are there any known limitations that prevent NetCDF
datasets from being read using `/vsis3/`?<br>
</div>
</div>
</div>
</blockquote>
<p>Yes. This requires Linux + sufficient permissions to run the
userfaultfd Linux system call, which can be an issue when running
in a container. Cf
<a class="moz-txt-link-freetext" href="https://gdal.org/drivers/raster/netcdf.html#vsi-virtual-file-system-api-support">https://gdal.org/drivers/raster/netcdf.html#vsi-virtual-file-system-api-support</a>.</p>
<p>The following works for me:<br>
</p>
<p>$ 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</p>
<p>Driver: netCDF/Network Common Data Format<br>
Files: /vsis3/my_bucket/longitude_latitude.nc<br>
Size is 4, 3<br>
Origin = (-180.041666666666657,-79.791679382324219)<br>
Pixel Size = (0.083333333333333,-0.083328247070312)<br>
Corner Coordinates:<br>
Upper Left (-180.0416667, -79.7916794) <br>
Lower Left (-180.0416667, -80.0416641) <br>
Upper Right (-179.7083333, -79.7916794) <br>
Lower Right (-179.7083333, -80.0416641) <br>
Center (-179.8750000, -79.9166718) <br>
Band 1 Block=4x1 Type=Float32, ColorInterp=Undefined<br>
NoData Value=9.96921e+36<br>
Metadata:<br>
NETCDF_VARNAME=myvar<br>
<br>
</p>
<span style="white-space: pre-wrap">Even
</span>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>