comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » How to read field attributes in HDF-EOS
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
How to read field attributes in HDF-EOS [message #70700] Wed, 28 April 2010 20:28 Go to next message
dabin is currently offline  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 Go to previous message
David Fanning is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Comments on Coding Style
Next Topic: How to convert the file which is saved using idl to fits file

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:59:36 PDT 2025

Total time taken to generate the page: 0.00548 seconds