HDFGroup / hdf5-json

Specification and tools for representing HDF5 in JSON
https://hdf5-json.readthedocs.io
Other
73 stars 25 forks source link

Provide examples of variable-length of object reference attribute and compound type attribute with object reference and 32-bit integer. #9

Closed hyoklee closed 9 years ago

hyoklee commented 9 years ago

This example will be helpful for dimension scale APIs.

gheber commented 9 years ago

I've created an example and sent it onto Joe.

jreadey commented 9 years ago

Can you the example to the docs?

gheber commented 9 years ago

Sure, once it's been vetted...

hyoklee commented 9 years ago

I have a question. Does x1 (size 2) and x2 (size 2) together make the 3rd dimension of size 4 in your example? Anyway, I think this kind of dim scale cannot be supported by netCDF. Can you create another example that has only x1 (size 4)?

jreadey commented 9 years ago

There's an extraneous comma at the end of line 250 in dim_scale.json.

gheber commented 9 years ago

Joe, no x1 and x2 are two alternative scales for the third dimension of data (4x3x2). y1 (3) and z1 (4) are the other dimensions. Just deleting x2 should do the trick.

hyoklee commented 9 years ago

Thanks @gheber for clarification. That makes perfect sense.

gheber commented 9 years ago

That still leaves the question, "What does netCDF support?"

hyoklee commented 9 years ago

netCDF supports netCDF-4-Python-created files and augeos5-tool-augmented HDF-EOS5 files but not yours [1]. Here are possibilities of read failure by netCDF-Java tools:

1) Your example does not have actual data. 2) Two dim scales are attached.

Since your JSON example looks good enough for my purpose, I will not investigate further why netCDF fails to read your example data.

[1] https://confluence.hdfgroup.uiuc.edu/display/~hyoklee/2015/03/10/Dimension+Scale