python - Print out the data an hdf file contains (either to a file or as a chart) -


if i'm given *.hdf file, how can print out data contains?

>>> import h5py >>> f = h5py.file('my_file.hdf', 'r') >>> # what's next? 

all questions here describe how either create hdf file or read without printing out data in contains. don't mark duplicate.

this not proper answer question, 1 other answer bit unsatisfactory.

to have @ what's inside .hdf file, use nasa's panoply software. can downloaded here: http://www.giss.nasa.gov/tools/panoply/ , lets open, explore , plot data in sorts of geo-referenced formats, including netcdf , hdf.

then can find out name of subdataset i'm interested in , open in python script.

hope helpful tip people looking question!


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -