-
Notifications
You must be signed in to change notification settings - Fork 262
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
Segmentation fault when reading string variable over DAP4 #3042
Comments
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:
|
I am also getting the same error with these versions:
And
|
Unfortunately, my attempt register fails repeatedly on a recapture invalid key failure. |
Hi, Dennis -- I'm not sure what 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.
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 |
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. |
Thanks @DennisHeimbigner and everyone for the engagement! We built the With python >>> import netCDF4 as nc4
>>> nc4.getlibversion()
'4.9.4-development of Oct 7 2024 10:41:37 $' With ncdump $ ncdump -h
ncdump [-c|-h] [-v ...] [[-b|-f] [c|f]] [-l len] [-n name] [-p n[,n]] [-k] [-x] [-s] [-t|-i] [-g ...] [-w] [-F] [-Ln] file
...
...
netcdf library version 4.9.4-development of Nov 13 2024 20:48:37 $ I am guessing that Thanks again everyone! |
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
The text was updated successfully, but these errors were encountered: