-
Notifications
You must be signed in to change notification settings - Fork 83
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
Maybe support hdf4 #494
Maybe support hdf4 #494
Conversation
This has now some interesting features In [324]: tags, root = kerchunk.hdf.HDF4ToZarr("/Users/mdurant/data/MOD14.hdf4").translate()
In [326]: root
Out[326]: {('VG', 614)}
In [327]: tags[('VG', 614)]
Out[327]:
{'number_of_scan_lines': 2030,
'pixels_per_scan_line': 1354,
'number_of_active_fires': 0,
'cmg_cells_night': 6390,
'cmg_values': 8,
'fire mask': {'number_of_scan_lines': 2030,
'pixels_per_scan_line': 1354, The two variables in here are actually "fire_mask" and "algorithm QA" in a single group, which were not shown by rasterio/xarray. The additional coordinates reported by rasterio/xarray are not in the data: "band", "spatial_ref" - I suppose rasterio wants everything to be geo-like and makes these up; there is a warning to say it is doing this:
|
Latest:
|
Working: