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

Home » Public Forums » archive » calling MRT Swath from IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: calling MRT Swath from IDL [message #87656 is a reply to message #87652] Thu, 20 February 2014 20:14 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
lhashemi@g.harvard.edu writes:

> Gdal read the data correctly, however, the data are raw integer counts , I need to convert the data to floating-point corrected counts for my process. and I don't know how to do it? (this process needs an offset and scale, and I don't know where these data are located).
>
> as I mentioned I got some IDL codes from NASA website for reading the data and converting them to floating-point corrected counts. however the result is an array for each band without any long/lat associated. I am looking for an idl code to re-project this arrays.
>
> MOD02HKM (500 m) contains an array of long/lat (1000 m), I think it doesn't need MOD03 for re-projection (I'm not sure though). It should involve interpolation for generating long/lat for each pixel of data array or for a user defied grid.
>
> I want to read, process and write MOD02HKM. I am looking either for an idl code to re-project the data (read by some other IDL codes) or for an idl code to convert the raw integer number to floating corrected values (so I can use gdal for re-projection or MRTSwath). Any help would highly appreciated.

I happen to have one of those files here, and when I open it with
ncdf_browser (which also reads HDF files), it appears the latitude,
longitude, bands, and offsets are all present in the file. If you just
pass the file name to GDAL, it probably gets everything it needs from
the file itself.

To "calibrate" the data, you just multiply it by the scale factor and
add the offset. All this information should be available to you in the
documentation available on the MODIS web page.

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: possible cgContour bug
Next Topic: fitting using maximum likelihood

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

Current Time: Wed Oct 08 17:28:19 PDT 2025

Total time taken to generate the page: 0.00377 seconds