How to read field attributes in HDF-EOS [message #70700] |
Wed, 28 April 2010 20:28  |
dabin
Messages: 1 Registered: April 2010
|
Junior Member |
|
|
I'm trying to read attributes 'scale factor' and 'offset' contained
in a hdf-eos data field. But can't find any good method to do this.
Could any one give me some advise.
The attributes information are shown in the following picutre.
file:///C:/Documents%20and%20Settings/dabin/桌面/1.TIF
|
|
|
Re: How to read field attributes in HDF-EOS [message #70749 is a reply to message #70700] |
Fri, 30 April 2010 09:53  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
dabin writes:
> I'm trying to read attributes 'scale factor' and 'offset' contained
> in a hdf-eos data field. But can't find any good method to do this.
> Could any one give me some advise.
It seems exceedingly odd to me that to read attributes
from swath datafields, you have to stop what you are doing
and open a new scientific dataset operation, convert
the datafield name to a scientific dataset index, then
parse that for information you need. Too weird!
Anyway, I plan to write an article about this and
incorporate this into my ncdf_browser tool, but who
knows when that will happen. In the interim, I have
put a very preliminary piece of code that parses
HDF-EOS swath data here:
http:/www.dfanning.com/misc/examine_hdf_swath.pro
It might give you some ideas.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|