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

Home » Public Forums » archive » Re: Reprojecting an image file derived from Level 1B MODIS HDF
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: Reprojecting an image file derived from Level 1B MODIS HDF [message #74199 is a reply to message #74197] Sun, 02 January 2011 17:42 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Kasia writes:

> I have an image file that I created using IDL from a Level 1B MODIS
> HDF file. I now need to reproject this image file to display in Google
> Earth, but I'm having a hard time figuring out how to do this. The
> code that generated the image file also outputs a lat/lon for each
> value so I thought that would help since there is geographic
> information contained in the image file. But, that hasn't helped me.
>
> I've tried applying the header information from the original HDF file
> to the new image file using ENVI because I know it can read these
> MODIS files, but that hasn't worked too well. ENVI can reproject the
> MODIS HDF file beautifully but I also need it to do the same for the
> new image file.
>
> All of the projection and lat/lon information in the new image file is
> identical to that of the original MODIS HDF file that I can easily
> reproject in ENVI. I just can't figure out how to add that information
> to the image file so ENVI can do the same sort of magic on the new
> file.

Google Earth wants everything in a simple cylindrical
projection with a WGS84 datum. I would just use Map_Proj_Image
to warp your image, in its native projection, to a
Cylindrical projection.

Here is an article that describes how this can be done:

http://www.dfanning.com/map_tips/warpimage.html

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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: array handling
Next Topic: Random NetCDF I/O error

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

Current Time: Thu Oct 09 07:21:22 PDT 2025

Total time taken to generate the page: 0.56311 seconds