Open lsterzinger opened 3 weeks ago
I'm not really sure if this is some issue of DAP4 encoding on the server-side, or decoding proper DAP4 on the client side (or some combination of both). Any input would be greatly appreciated. Thanks!
Forgot to include my versions:
netcdf library version 4.9.2 of Jul 5 2023 23:51:08 $
3.11.9
1.6.5
I am also getting the same error with these versions:
netcdf-c
: '4.9.3-development of Oct 24 2023 19:20:46 $'
netcdf4-python==1.6.5
3.12.5
And
netcdf-c
: '4.8.1 of Oct 10 2024 19:24:58 $'
netcdf4-python==1.6.5
3.12.7
Unfortunately, my attempt register fails repeatedly on a recapture invalid key failure. So I will not be able to help. Sorry.
Hi, Dennis -- I'm not sure what a recapture invalid key failure
means, but it might be because the URL we provided was in our testing environment (".uat." in the URL), which may not be publicly accessible. Could you please try again with the production version of the URL copied below? Note that the opendap.earthdata.nasa.gov endpoint always requires authentication with an Earthdata Login. We are struggling to support some newer data types that are not DAP2 compatible and we'd really like to promote the dap4:// protocol to our opendap users. Thank you for your help. --Jennifer Adams
dap4://opendap.earthdata.nasa.gov/collections/C2559919298-GES_DISC/granules/SNDRSNML2RMS.3%3ASNDR.SNPP.ATMS.20111210T0154.m06.g020.L2_RAMSES2_RET.std.v03_21.G.231124163951.nc
Edit: there is another data type (ubyte) that also causes a seg fault -- please also test the variable named 'obs_id'. Thanks
I finally got the urs login problem solved. I tried to replicate you problem but failed. I tried several different commands using ncdump from the current main branch. All of these appear to work:
Do any of these commands correspond with what you are doing?
Very glad to see that ncdump is working! We are using python packages (xarray/datatree and netCDF4) to open those dap4:// urls, but are struggling to find anything that is linked with the 4.9.3 release candidate. Is there a dev version of any of these python packages that we can test the 4.9.3 release candidate?
I am not alll that familiar with the python/netcdf community. My guess is that there is a way to install 4.9.3 and have python/netcdf4 use that installation. But do not know the details.
I will second Dennis' comment; @dopplershift can you provide any guidance as to how to easily hook the latest netCDF-C release candidate into a python ecosystem?
As we've discussed previously, the first step is to get a build of the RC up on the conda-forge feedstock. When I attempted this previously, I ran into numerous build issues that we didn't get solved before the official release. Happy to be a part of getting that going over there if someone is prepared to look at any issues we encounter in doing so.
Depending on how tightly pinned the conda-forge version of netcdf4-python is to a version of libnetcdf, we may be able to just install the RC and have netcdf4-python use it, but I'm not sure about that yet.
Hello Unidata/NetCDF folks! A few of us at NASA GES DISC are running into a failure in
netcdf-c
when accessing string variable over DAP4 from NASA's cloud-hosted OPeNDAP server. This seems to be an issue only when reading via DAP4, using netcdf to read the data on disk directly is not an issue.Authentication
If not already set up, an account is needed at https://uat.urs.earthdata.nasa.gov/ and the following line added to
~/.netrc
in the user's home folder:Issue
We came across this issue when accessing the following DAP4 URL via netcdf-python
dap4://opendap.uat.earthdata.nasa.gov/collections/C1256351857-GES_DISC/granules/SNDRSNML2RMS.3%3ASNDR.SNPP.ATMS.20111210T0154.m06.g020.L2_RAMSES2_RET.std.v03_21.G.231124163951.nc
One of the variables causing issues is
obs_id
, which is an array of strings.Trying to access the data from
obs_id
results in a segmentation fault:Resources:
OPeNDAP landing page for this file: https://opendap.uat.earthdata.nasa.gov/collections/C1256351857-GES_DISC/granules/SNDRSNML2RMS.3%3ASNDR.SNPP.ATMS.20111210T0154.m06.g020.L2_RAMSES2_RET.std.v03_21.G.231124163951.nc.html
Raw file (in case of authentication issues or for local testing): SNDR.SNPP.ATMS.20111210T0154.m06.g020.L2_RAMSES2_RET.std.v03_21.G.231124163951.nc.zip
I hope this is enough information but please let me know if anything else is needed.
Tagging @j-m-adams @eni-awowale