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 #87700 is a reply to message #87656] Sun, 23 February 2014 19:07 Go to previous message
devin.white is currently offline  devin.white
Messages: 50
Registered: March 2007
Member
On Thursday, February 20, 2014 11:14:22 PM UTC-5, David Fanning wrote:
> 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.")


You can also try the MODIS Conversion Toolkit (MCTK). It's written in IDL, leverages ENVI, and works with every known product. It used to be available in the Exelis VIS code library. When that went down a few months ago, I moved all of my plugins over to GitHub:

https://github.com/dawhite/ENVIPlugins

MCTK is the first entry on the list. The user guide that comes in the zip file will walk you through how to drive it.
[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 19:27:22 PDT 2025

Total time taken to generate the page: 0.00447 seconds