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

Home » Public Forums » archive » Implementing a DIMENSION keyword
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Implementing a DIMENSION keyword [message #83858] Thu, 11 April 2013 15:30 Go to next message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
I would like to write a wrapper function for the FFT routine and implement a sliding window. I want to keep the functionality of the DIMENSION keyword to FFT, but am not sure of the best way. I know about Craig Markwardt's CMAPPLY, but was going for something a little more straight-forward.

What I am doing now is transposing the array so that the desired dimension is the leading dimension, then applying the FFT as in the following pseudo-code

array = put_dimension_first(array, dimension)
result = fft(array[start_index:end_index, *, *, *, *, *, *], DIMENSION=1)
result = put_dimension_first(result, dimension, /UNDO)


This works because IDL ignores the extra "*"s for dimensions that do not exist. Not sure if this is a good idea or not...
Re: Implementing a DIMENSION keyword [message #84002 is a reply to message #83858] Thu, 11 April 2013 15:34 Go to previous message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
There should be an extra * in there... the maximum number of dimensions in IDL is 8, so this would work in general...
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: CMIP5 model output
Next Topic: plotting vertical lines

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

Current Time: Wed Oct 08 13:40:05 PDT 2025

Total time taken to generate the page: 0.00470 seconds