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 #84788 is a reply to message #84787] Tue, 11 June 2013 06:23 Go to previous messageGo to previous message
rjp23 is currently offline  rjp23
Messages: 97
Registered: June 2010
Member
On Tuesday, June 11, 2013 2:04:57 PM UTC+1, David Fanning wrote:
> I think it is the Where function that is slowing you down. I've always
>
> used the formulas on this page to do the conversion. I've never noticed
>
> them being slow. :-)
>
>
>
> http://www.idlcoyote.com/map_tips/lonconvert.html
>
>
>
> Cheers,
>
>
>
> David
>


Hi David,

I put some timestamps in and it seems that the WHERE is near instantaneous (thousandths of a second) but it is the SHIFT that's slow.

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!)

Cheers

Rob
[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: Sat Oct 11 10:22:07 PDT 2025

Total time taken to generate the page: 1.05131 seconds