Closed hyoklee closed 9 years ago
Agreed, unless the empty string is the fill value.
My understanding is that zero is the default fill value. If so, there is always going to be a fill value specified. The above case would then be indeed interpreted as having an empty string for the fill value.
HDFView says 'Fill value: NONE'.
On the other hand, h5dump -p says:
FILLVALUE {
FILL_TIME H5D_FILL_TIME_IFSET
VALUE ""
}
So, I'm confused. Is such dataset considered to have fill value specified?
HDFView says 'Fill value: NONE'. -> means that none was specified, i.e., the default will be used.
So we are saying if the Fill Value is the default (0 for numeric type, "" for string type), don't specify the fill value.
What about other creation properties? Are there defaults that should be suppressed?
Don't specify the fill value unless the user specified it.
Checkout this fix: https://github.com/HDFGroup/hdf5-json/pull/21.
Fix is merged to master.
I think fillValue should not appear if it is not specified.
The JSON output is form the following file: ftp://ftp.hdfgroup.uiuc.edu/pub/outgoing/NASAHDF/GSSTF_NCEP.3.2008.12.31.he5