Re: help with Imagemap to display gridded data [message #77481] |
Sun, 04 September 2011 21:40  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Fanning writes:
>> Hi, I want to display some gridded data arrays using Liam Gumley's
>> Imagemap tools, but I can't figure out how to call Imagemap properly.
>> The data are in polar stereographic projection. I have arrays of
>> latitude and longitude for each grid point. My question is how to give
>> the projection information to Imagemap? I tried the following to call
>> the tool but ended up error message: % Array subscript for NEWIMAGE
>> must have same size as source expression.
>>
>> IMAGEMAP, land,lat,lon,p0lat=90,p0lon=-95,nomap=nomap
>>
>> Would it be possible to use IMAGEMAP to display gridded data?
>
> You don't want to do this. Send me the data, and
> I'll write an article on how to do this correctly. :-)
OK, the proper way to do this is now described in this
article:
http://www.idlcoyote.com/map_tips/landcover.php
I've linked the data sets and a program for displaying
the data in the article if people want to play around
with it. Like so much satellite data, this data set
was weird, probably written incorrectly, and required
the programmer to make some reasonable guesses and
assumptions to come up with something sensible. In short,
it's a real world example. :-)
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.")
|
|
|