You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To be precise, ncdump returns an error. It does not crash.
This behavior is actually correct. The reason is that the values
in the "meal" variable are set to the default fill value, which is (short)-32767.
This is of course not a legal value for the enum, hence the error.
On the other hand, see PR #2462
and Issue #982.
It might be reasonable to check for the default fill value for the type (-32767 in this case)
and if encountered. return the value "_UNDEFINED".
We probably need to get some input on this: @edhartnett ?
My apologies @DennisHeimbigner - I see now that this is an error message. I am wondering if the invalid enum values could be handled without aborting ncdump, so that other contents of the dataset can be displayed.
ncdump
means that any subsequent contents of the dataset are not displayed._INVALID
value or a warning message be shown instead of aborting?ncdump test_enum.nc
, which crashes with the following output:meal
) is written:The text was updated successfully, but these errors were encountered: