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

Home » Public Forums » archive » Gridded MODIS lat/lon array
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
Gridded MODIS lat/lon array [message #88176] Wed, 26 March 2014 03:20 Go to next message
dm_gty88 is currently offline  dm_gty88
Messages: 8
Registered: October 2013
Junior Member
hi,

Is there a way I could do this: http://www.idlcoyote.com/map_tips/pixel_to_ll.html for a MODIS gridded product? I'm trying to avoid converting the images to geotiff so is it possible to do it for an HDF file? Thanks.
Re: Gridded MODIS lat/lon array [message #88177 is a reply to message #88176] Wed, 26 March 2014 05:42 Go to previous messageGo to next message
Andy Sayer is currently offline  Andy Sayer
Messages: 127
Registered: February 2009
Senior Member
Which specific 'MODIS gridded product' are you looking at? The various level 1, 2, and 3 MODIS products for atmospheres, oceans, and land have a variety of different gridding formats and conventions so the answer is likely to be (to an extent) dataset-specific.

Andy

On Wednesday, March 26, 2014 6:20:52 AM UTC-4, ddt88 wrote:
> hi,
>
>
>
> Is there a way I could do this: http://www.idlcoyote.com/map_tips/pixel_to_ll.html for a MODIS gridded product? I'm trying to avoid converting the images to geotiff so is it possible to do it for an HDF file? Thanks.
Re: Gridded MODIS lat/lon array [message #88178 is a reply to message #88176] Wed, 26 March 2014 06:05 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
ddt88 writes:

> Is there a way I could do this: http://www.idlcoyote.com/map_tips/pixel_to_ll.html for a MODIS gridded product? I'm trying to avoid converting the images to geotiff so is it possible to do it for an HDF file?

You probably could. The real question is why would you want to? In any
case, it is a reasonably good bet this information is already in the HDF
file.

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.")
Re: Gridded MODIS lat/lon array [message #88186 is a reply to message #88177] Wed, 26 March 2014 18:44 Go to previous messageGo to next message
dm_gty88 is currently offline  dm_gty88
Messages: 8
Registered: October 2013
Junior Member
On Wednesday, March 26, 2014 8:42:07 PM UTC+8, AMS wrote:
> Which specific 'MODIS gridded product' are you looking at? The various level 1, 2, and 3 MODIS products for atmospheres, oceans, and land have a variety of different gridding formats and conventions so the answer is likely to be (to an extent) dataset-specific.
>
>
>
> Andy
>
>
>
> On Wednesday, March 26, 2014 6:20:52 AM UTC-4, ddt88 wrote:
>
>> hi,
>
>>
>
>>
>
>>
>
>> Is there a way I could do this: http://www.idlcoyote.com/map_tips/pixel_to_ll.html for a MODIS gridded product? I'm trying to avoid converting the images to geotiff so is it possible to do it for an HDF file? Thanks.

Hi Andy, I'm looking at surface reflectance (MOD09GQ), land surface temperature and vegetation indices. They're gridded to a sinusoidal projection.
Re: Gridded MODIS lat/lon array [message #88187 is a reply to message #88178] Wed, 26 March 2014 18:46 Go to previous messageGo to next message
dm_gty88 is currently offline  dm_gty88
Messages: 8
Registered: October 2013
Junior Member
On Wednesday, March 26, 2014 9:05:47 PM UTC+8, David Fanning wrote:
> ddt88 writes:
>
>
>
>> Is there a way I could do this: http://www.idlcoyote.com/map_tips/pixel_to_ll.html for a MODIS gridded product? I'm trying to avoid converting the images to geotiff so is it possible to do it for an HDF file?
>
>
>
> You probably could. The real question is why would you want to? In any
>
> case, it is a reasonably good bet this information is already in the HDF
>
> file.
>
>
>
> 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.")

Hello David, I'm working with a large number of files so I want to avoid having to convert each hdf to geotiff for processing efficiency. I'm quite confused with the geotiff info and can't understand how I could extract the same information from the metadata of HDF files.
Re: Gridded MODIS lat/lon array [message #88190 is a reply to message #88186] Thu, 27 March 2014 06:06 Go to previous messageGo to next message
Andy Sayer is currently offline  Andy Sayer
Messages: 127
Registered: February 2009
Senior Member
Ah, sadly that's one of the MODIS products I don't have much experience with.

I found this older thread of yours on the group, did this not work? Or is it a different problem? https://groups.google.com/forum/#!topic/comp.lang.idl-pvwave /2EiVqFZn1So

On Wednesday, March 26, 2014 9:44:18 PM UTC-4, ddt88 wrote:
> On Wednesday, March 26, 2014 8:42:07 PM UTC+8, AMS wrote:
>
>> Which specific 'MODIS gridded product' are you looking at? The various level 1, 2, and 3 MODIS products for atmospheres, oceans, and land have a variety of different gridding formats and conventions so the answer is likely to be (to an extent) dataset-specific.
>
>>
>
>>
>
>>
>
>> Andy
>
>>
>
>>
>
>>
>
>> On Wednesday, March 26, 2014 6:20:52 AM UTC-4, ddt88 wrote:
>
>>
>
>>> hi,
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>> Is there a way I could do this: http://www.idlcoyote.com/map_tips/pixel_to_ll.html for a MODIS gridded product? I'm trying to avoid converting the images to geotiff so is it possible to do it for an HDF file? Thanks.
>
>
>
> Hi Andy, I'm looking at surface reflectance (MOD09GQ), land surface temperature and vegetation indices. They're gridded to a sinusoidal projection.
Re: Gridded MODIS lat/lon array [message #88191 is a reply to message #88187] Thu, 27 March 2014 06:13 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
ddt88 writes:

> Hello David, I'm working with a large number of files so I want to avoid having to convert each hdf to geotiff for processing efficiency. I'm quite confused with the geotiff info and can't understand how I could extract the same information from the metadata of HDF files.

The information to navigate the image is in the metadata of the HDF
file. You are given the projection information (Sinusodial with
spherical datum) and the projected XY meter locations of the upper left
point and the lower right point of the image. Then, you are told the
dimensions of the image (4800x4800 in my case). This is everything you
need to know to navigate the image. For example, for the MOD09GQ image I
have here, I set the map coordinate object up like this:


IDL> map =cgmap('sinusoidal', ellipsoid=9, $
xrange=[6671703.118000d, 7783653.637667d], $
yrange=[3335851.559000d, 4447802.078667d], $
position=[0,0,1,1])
IDL> cgDisplay, 800, 800
IDL> cgImage, image, Stretch=2
IDL> cgMap_Grid, /Label, /cgGrid, Color='goldenrod', Map=map

I'm not sure why you think you need to make a GeoTiff file out of it for
"processing efficiency".

I read the information out of the file with NCDF_Browser. But, I'm sure
it is possible to read the metadata out of the file directly, too.

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.")
Re: Gridded MODIS lat/lon array [message #88198 is a reply to message #88191] Thu, 27 March 2014 07:06 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> I read the information out of the file with NCDF_Browser. But, I'm sure
> it is possible to read the metadata out of the file directly, too.

You will find this page helpful in accessing the map projection
information in your file:

http://www.idlcoyote.com/map_tips/eosgrid.php

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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Function syntax for any object class
Next Topic: CGMAP_GRID: Lattitude lines

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

Current Time: Wed Oct 08 13:44:15 PDT 2025

Total time taken to generate the page: 0.00545 seconds