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

Home » Public Forums » archive » Re: ms2gt .gpd and .mpp file creation
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: ms2gt .gpd and .mpp file creation [message #71199 is a reply to message #71176] Mon, 07 June 2010 05:50 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
katb writes:

> I am hoping someone can help shed some light on this problem. I am
> trying to reproject MODIS MOD02HKM 500m hdf data to Lambert Conic
> Conformal Ellipsoid projection at 500m resolution using ms2gt. The
> tutorials execute fine so my software configuration (links to IDL) are
> ok. I am having difficulties preparing .gpd and .mpp files for
> Australia as most of the examples are for Greenland or for another
> projection. I also believe the errors are related to the number of
> columns and rows I have entered for the .gpd files. I have tried
> downloading David Fanning's gpd_viewer however it does not support the
> projection I require.
>
> My gpd file is as follows:
>
> test.mpp map projection parameters
> Map Projection: Lambert Conic Conformal Ellipsoid
> Map Reference Latitude: -35.0
> Map Second Reference Latitude: -40.0
> Map Reference Longitude: 140.0
> Map Scale: 1
> Map Equatorial Radius: 6378.137
> Map Eccentricity: 0.081819190843
> Grid Map Units per Cell: 0.50
> Grid Width: 2200
> Grid Height: 1700
> Grid Map Origin Column: 1099.5
> Grid Map Origin Row: 849.5
>
> My .mpp file is as follows:
> Lambert Conic Conformal Ellipsoid
> -36.5 147.0 lat0 lon0
> 0.0 rotation
> 0.50 scale (km/pixel)
> -36.5 147.0 center lat lon
> -35.0 144.0 lat min max
> -38.0 150.0 lon min max
> 1753 760 grid
> 0.00 00.00 label lat lon
> 1 0 0 cil bdy riv
>
> The error I recieve when I execute ms2gt for two adjacent hdf files in
> the listfile.txt is as follows:
>
> fornav: ReadImage: error reading tester_cols_02708_00406_00000_20.img

Sigh... These GPD files always confuse me. I think there are
only two or three people in the world who understand them.
Fortunately, they work with me, so I can check later.

But that said, I would make a couple of changes here. You
don't need an mpp file here, so you can eliminate that
complication. And I would express your distances in meters
(this may be a personal preference). But I would try a GPD
file like this:

Map Projection: Lambert Conic Conformal Ellipsoid
Map Reference Latitude: -35.0
Map Second Reference Latitude: -40.0
Map Reference Longitude: 140.0
Map Equatorial Radius: 6378137.0
Map Eccentricity: 0.081819190843
Map Origin Latitude: -27.0
Map Origin Longitude: 140.0
Map Origin X: -550000
Map Origin Y: 425000
Grid Map Units per Cell: 500
Grid Width: 2200
Grid Height: 1700
Grid Map Origin Column: -0.5
Grid Map Origin Row: -0.5


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
Read Message
Previous Topic: Problem running an IDL VM application
Next Topic: Re: Problem running an IDL VM application

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

Current Time: Sat Oct 11 04:44:15 PDT 2025

Total time taken to generate the page: 0.31971 seconds