Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vsicurl and netcdf inconsistency #2412

Closed
piyushrpt opened this issue Apr 16, 2020 · 3 comments
Closed

vsicurl and netcdf inconsistency #2412

piyushrpt opened this issue Apr 16, 2020 · 3 comments

Comments

@piyushrpt
Copy link
Contributor

piyushrpt commented Apr 16, 2020

Expected behavior and actual behavior.

Reporting issue - conda-forge/gdal-feedstock#376 by @dbekaert
gdalinfo and other utilities that manipulate data on a netcdf via vsicurl reports/ uses wrong driver

This is related to #1328

This was addressed in conda-forge/gdal-feedstock#330
And latest build logs show that netcdf_mem is available and userfaultfd is enabled:
https://dev.azure.com/conda-forge/84710dde-1620-425b-80d0-4cf5baca359d/_apis/build/builds/137713/logs/26

Steps to reproduce the problem.

Using earthdata login setup via .netrc.
gdalmanage identify clearly identifies the file as netcdf whereas gdalinfo uses HDF5 driver without trying to use the netcdf driver.

  1. gdalmanage reports netcdf correctly
> GDAL_HTTP_COOKIEFILE=asf.txt GDAL_HTTP_COOKIEJAR=asf.txt  gdalmanage identify -r /vsicurl/https://grfn.asf.alaska.edu/door/download/S1-GUNW-D-R-160-tops-20190710_20190628-162436-20935N_18926N-PP-6a53-v2_0_2.nc

/vsicurl/https://grfn.asf.alaska.edu/door/download/S1-GUNW-D-R-160-tops-20190710_20190628-162436-20935N_18926N-PP-6a53-v2_0_2.nc: netCDF
  1. gdalinfo reports hdf5. With, CPL_DEBUG=ON looks like output in Inconsistent results against NETCDF-4 data #1328
GDAL_HTTP_COOKIEFILE=asf.txt GDAL_HTTP_COOKIEJAR=asf.txt gdalinfo  /vsicurl/https://grfn.asf.alaska.edu/door/download/S1-GUNW-D-R-160-tops-20190710_20190628-162436-20935N_18926N-PP-6a53-v2_0_2.nc
Driver: HDF5/Hierarchical Data Format Release 5
Files: /vsicurl/https://grfn.asf.alaska.edu/door/download/S1-GUNW-D-R-160-tops-20190710_20190628-162436-20935N_18926N-PP-6a53-v2_0_2.nc
Size is 512, 512

Operating system

Ubuntu 18.04 64 bit

> uname -r
5.3.0-7642-generic

GDAL version and provenance

3.0.4 via conda-forge

@piyushrpt
Copy link
Contributor Author

Thanks @rouault for the quick fix.

@dbekaert
Copy link

dbekaert commented Apr 16, 2020

@rouault i understand correctly that this has been back ported to version 2.4 and 3?
I can reach out to the conda-forge channel developers to incorporate this.

@rouault
Copy link
Member

rouault commented Apr 16, 2020

that this has been back ported to version 2.4 and 3?

yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants