-
Notifications
You must be signed in to change notification settings - Fork 263
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
ncdump fails to open a particular file #1151
Comments
cc @emontgomery-usgs, who reported the problem to me. |
I am looking at it. Looks like a problem inside the DAP2 library. The File looks |
Ok, I think the failure point is the variable "Or", and its "_FillValue" attribute. |
@DennisHeimbigner, thanks for the sleuthing and this quick response! |
Ok. I see this occasionally. I do have a question: is it better to do the conversion |
How about doing the conversion if the conversion works (e.g. if they converted value has the same numeric value) and failing if it doesn't. So in this case you would fail be cause there is no way to store Does that make sense? |
Doing that check will, of course, only work for atomic types, not user types. |
re: issue #1151 Modify DAP2 and DAP4 code to handle case when _FillValue type is not same as the parent variable type. Specifically: 1. Define a parameter [fillmismatch] to allow this mismatch; default is to disallow. 2. If allowed, forcibly change the type of the _FillValue to match the parent variable. 3. If allowed Convert the values to match new type 4. Generate a log message 5. if not allowed, then fail Implementing this required some changes to ncdap_test/dapcvt.c Also added test cases. Minor Unrelated Changes: 1. There were a number of warnings about e.g. assigning a const char* to a char*. Fix these 2. In nccopy.1, replace .NP with .IP "n" (re PR #1144) 3. fix minor error in ncdump/ocprint
Fixed by pull request #1155 |
As reported by @rsignell-usgs, the following command fails using either netCDF
4.6.2-rc1
or the older4.4.1
.It returns an invalid argument error. Grabbing the file and opening it locally works just fine.
The text was updated successfully, but these errors were encountered: