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

Home » Public Forums » archive » Re: Read particular band from air temperature image among MOD07 air products
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: Read particular band from air temperature image among MOD07 air products [message #54452] Fri, 15 June 2007 13:38 Go to previous message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
DirtyHarry wrote:
> Goodday, Everyone! I would like to ask how to process MODIS 07 air
> product.
>
> I am working on 3D-MOD07 image. As most of you may know, the dimension
> of this file is, at least in my knowledge....
>
> sample number(ns): 270, Line number(nl): 406, 그리고 band number(nb): 20
>
> In order to get the map of band20, I wrote a source code below, but
> this procedure is not working properly.
>
> -----------------------------
> pro test
> close, /all
> ns = 270
> nl = 406
> nb =20
> file = 'MOD072003001.0130_Ta_5km.img'
> openr, 1, file
>
> image = bytarr(ns, nl, nb)
> readu, 1, image
> close, 1
>
> tvscl, image(*, *, 19)
>
> end
>
> -----------------------
> In my opinion, there must be something wrong at this line shown
> below...
>
> "image = bytarr(ns, nl, nb)"
>
> However, I don't know how to solve this problem... I tried read_jpg,
> and read_gif instead of bytarr, but all of these trials were not so
> successful.

Like all MODIS products, MOD07 is in HDF-EOS format, which is built on
top of HDF. IDL provides wrappers for all of the HDF and HDF-EOS
library functions, and you should be using those routines to read this
file. It's format is laid out at <http://modis-atmos.gsfc.nasa.gov/
MOD07_L2/format.html>. You'll see that it's far more complicated than
just a simple multi-dmensional array of a single data type.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Yikes! Time for a blow-out party!
Next Topic: marker controlled watershed

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

Current Time: Thu Oct 09 11:02:28 PDT 2025

Total time taken to generate the page: 0.72176 seconds