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

Home » Public Forums » archive » Re: Function Graphics Map Projection Woes
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: Function Graphics Map Projection Woes [message #77673 is a reply to message #77672] Mon, 19 September 2011 08:43 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> I have *COMPLETELY* regularly spaced longitude and latitude
> vectors.
>
> IDL> help, lon,lat
> LON DOUBLE = Array[96]
> LAT DOUBLE = Array[73]
>
> IDL> print, lon
> 0.00000000 3.7500000 7.5000000 11.250000
> 15.000000 18.750000 22.500000 26.250000
> 30.000000...
> IDL> print, lat
> 90.000000 87.500000 85.000000 82.500000
> 80.000000 77.500000 75.000000 72.500000
> 70,000000 ...
>
> I try to display this image in a map projection like this:
>
> imgObj = Image(tnmin, lon, lat, limit=[-90,-180,90, 180], $
> grid_units=2, map_projection='Cylindrical')
>
> And I get this error:
>
> % IMAGE: X and Y parameters must be evenly spaced
>
> What the @*%$!

OK, that error message sucks! What it means is that
the vectors have to go from small values to large
values. Sheesh!

This code *finally* give me what I want:

imgObj = Image(tnmin, lon, Reverse(lat), limit=[-90,0,90,360], $
grid_units=2, map_projection='Cylindrical')

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[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: IDL 8.1 Graphics Window Rearrange Content
Next Topic: Good IDL 8 guide?

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

Current Time: Fri Oct 10 13:37:39 PDT 2025

Total time taken to generate the page: 1.04042 seconds