Re: Function Graphics Map Projection Woes [message #77673 is a reply to message #77672] |
Mon, 19 September 2011 08:43   |
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.")
|
|
|