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

Home » Public Forums » archive » Re: map_set stereographic projection
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: map_set stereographic projection [message #48497 is a reply to message #48496] Fri, 28 April 2006 04:23 Go to previous messageGo to previous message
dvila is currently offline  dvila
Messages: 13
Registered: April 2006
Junior Member
Thank you, Peter. The data provider offers a little Fortran program to
calculate the lat, lon of each pixel, so it's very easy to perform an
array with the lat,lon of each point of the data array. I'll download
the routines to know which are the input data and the data format.
Thanks!!

Daniel

Peter Albert wrote:
> Hi Daniel,
>
> I found it often useful to use the 8-element limit keyword with
> map_set. You are not resticted to the corners of the mapped region then
> and have more freedom to choose the "anchor points". Moreover,
> sometimes the corners aren't actually on earth, in those cases you
> _must_ use the 8-element vector. It's a bit tricky to get used to, but
> it's worth trying. Basically, you are specifying 4 points (as lat/lon
> pairs) _anywhere_ on the left, upper, right and lower boundary of the
> area. "Anywhere, how's that supposed to work?" Well, it just does.
> Funny enough.
>
> But then this is probably not the right way for your problem, as you'd
> like to get the regular lat-lon projection. What you actually need are
> the lon/lat values for each pixel. With those, you can either project
> your data in any projection (using e.g. Liam Gumleys IMAGEMAP() routine
> or our MAP_IMAGE__DEFINE object found at
> http://wew.met.fu-berlin.de/idl).
>
> If you actually want to transform the data itself into regular lon /
> lat grid, e.g. for pixelwise comparison with other datasets, you might
> want to use LONLAT2REG(), found on the same website. This routine
> averages irregularly gridded lon / lat data into any regular lon / lat
> array.
>
> But now, how do you get the lon/lat values for each pixel?
>
> First try: Ask the data provider. They should have the data. Somewhere.
> Second try: Download the "proj" software and calculate them yourself.
> (http://proj.maptools.org/). proj is _not_ easy to get started with,
> but if you have to do map transformations more than once (including,
> possibly, different ellipsoids), it's well woth every minute spent
> reading the manual.
>
> I would recommend calculating all map coordinates in map space first
> (i.e. coordinates being given in x = meters east of greenwich meridian;
> y = meters from the equator) and use proj to transform those into
> lat/lon. I have to admit that I only hat to deal with sinusoidal
> projection so far, which was pretty easy, and do not know how to
> actually approach polar stereographic. But in case you don't get the
> lat/lon data from the data providers, I would recommend to give proj a
> good try. And the proj people have a quite helpful mailing list, too...
>
>
> Best regards,
>
> Peter
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: widget tutorial
Next Topic: Re: Importing data from C/C++ to IDL when type is only known at runtime

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

Current Time: Sat Oct 11 12:20:17 PDT 2025

Total time taken to generate the page: 0.64004 seconds