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

Home » Public Forums » archive » SHIFT Function
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
SHIFT Function [message #79436] Mon, 27 February 2012 23:05
zolile mtumela is currently offline  zolile mtumela
Messages: 50
Registered: September 2011
Member
Hi all
I am experiencing some problems to my program, I real need some
advice and help,

I got centre frequency(freq_centre=2.35e-3),
From the data, period (T=20), number of elements( Ny=360), data for
2hours.
freq_centre = 2.35e-3
Freqc=(freq_centre/(1/(Ny*T)))
print,freqc

;condition
For j=Ny/2, Ny-1 do filterdata(j) = 0
filterdata = 2*filterdata
spec = shift(filterdata, -freqc)
plot,freq,abs(spec)

On calculating Freqc , I supposed to get around 17 but on the program
its print infinite , i want to shift by -17 based to definition of
Freqc.
example of data
x
y z
2006-10-06 20:00:10.000 279 9.36 -14.99 15.25 99999.00
2006-10-06 20:00:30.000 279 9.84 -14.70 15.00 99999.00
2006-10-06 20:00:50.000 279 10.74 -14.69 14.75 99999.00
2006-10-06 20:01:10.000 279 11.43 -14.54 14.25 99999.00
2006-10-06 20:01:30.000 279 11.63 -13.78 15.00 99999.00
2006-10-06 20:01:50.000 279 12.04 -13.15 15.75 99999.00
2006-10-06 20:02:10.000 279 13.08 -12.93 16.50 99999.00
2006-10-06 20:02:30.000 279 14.25 -12.49 17.25 99999.00
2006-10-06 20:02:50.000 279 13.76 -11.88 17.50 99999.00
2006-10-06 20:03:10.000 279 12.99 -11.68 18.50 99999.00
But I was using y-component at the moment.
This looks easy but I am very struggling to finger out it, please
help.
Thanks in advance for your time.
Zolile
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: calling a structure tag as a variable?
Next Topic: Re: IDL arrays having more than 8 dimensions

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

Current Time: Wed Oct 08 18:52:58 PDT 2025

Total time taken to generate the page: 0.00632 seconds