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 #53823 is a reply to message #53740] Wed, 02 May 2007 12:32 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
teich@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: Sat Oct 11 02:27:34 PDT 2025

Total time taken to generate the page: 1.83952 seconds