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

Home » Public Forums » archive » Faster way to "shift" array?
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: Faster way to "shift" array? [message #84790 is a reply to message #84789] Tue, 11 June 2013 06:35 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

>
> rjp23@le.ac.uk writes:
>
>> The problem with doing it by a conversion method is that I have a data array that corresponds to the longitude array and things like contour don't like the discontinuities that introduces (e.g. it'd go 179, 180, -180, -179, etc) so I think I need to actually manipulate the positions in the array, rather than the values... (happy to be corrected!)
>
> Well, I don't know. I've worked with map projections for a long time and
> have never felt a need to shift any data. I'm probably doing it wrong.
> ;-)

I do occasionally, not often, have to add a column to a longitude and
data array to eliminate a gap in a filled contour plot. But, shifting
the data is not going to make any difference when you put the data on a
map projection. If it did, you would never be able to move the center of
a map projection without shifting the data. And, clearly, you can shift
the center of a map projection without changing anything at all about
the data.

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("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
Previous Topic: IDL Array Question
Next Topic: logarithmic Y axis in cgContour

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

Current Time: Fri Nov 28 12:31:33 PST 2025

Total time taken to generate the page: 0.47847 seconds