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

Home » Public Forums » archive » contour over a map and 180 degrees off or problems with dateline
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: contour over a map and 180 degrees off or problems with dateline [message #53820 is a reply to message #53740] Wed, 02 May 2007 12:48 Go to previous messageGo to previous message
teich is currently offline  teich
Messages: 33
Registered: May 2007
Member
David, these sort of thing confuse me too!

I wonder if it's possible that contour and map_set could be made more
user friendly one day?

Thanks again,

Howie

On May 2, 3:32 pm, David Fanning <n...@dfanning.com> wrote:
> t...@atmsci.msrc.sunysb.edu writes:
>> If I keep the lon array as is (i.e., -177.5, ..., +177.5) and use your
>> field=Shift(field,36,0) then everything looks in the right location
>> and there is no problem at the dateline. Although this fixed the
>> problem, what if I had an odd number of elements for array lon? Since
>> I compare plots visually, it may be important to get the exact
>> locations. Would you suggest this type of fix (using Shift) for every
>> contour of this type?
>
> Well, I don't know. These kinds of things always confuse me. :-)
>
> It seems to me one of two things has to be wrong. (1) Your
> longitude vector does really describe the physical locations
> of your data (I.e., the left edge of your array is not
> at -177.5 degrees of longitude), or (2) the map projection
> is not centered with respect to the data (I.e., the center of
> the data and the center of the map are at two different places).
>
> I think if you resolve this problem, then shifting, which I would
> only use as a last resort, would probably go away.
>
> 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
Read Message
Read Message
Previous Topic: ENVI does a dumb thing reading a TIFF file with a palette included
Next Topic: crazy contour

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

Current Time: Sun Oct 12 02:28:57 PDT 2025

Total time taken to generate the page: 1.76050 seconds