X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 07 Oct 2022 08:59 AM by  Ben Castellani
Bandpass_filter error message
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

Khilav Majmudar



New Member


Posts:
New Member


--
28 Sep 2022 12:56 PM
    I have 2D time series data, which means I have values in a plane that evolve. I would like to filter the data around the 5 mHz frequency and then plot it. The command I am using is:

    bp = BANDPASS_FILTER(array,freq0-0.004,freq0+0.004,/IDEAL).

    array is a two-dimensional array of values.
    freq0 is 5 mHz.

    This command is yielding the error message I mentioned in the summary.

    Any help is appreciated. Thank you.

    Ben Castellani



    Basic Member


    Posts:130
    Basic Member


    --
    07 Oct 2022 08:59 AM
    Both LowFreq and HighFreq arguments must be between 0 and 1. Based on your error, the values you are providing are outside this range, which makes sense since you are using 5MHz (5.0?) as the value there. You need to normalize/scale the frequencies such that your frequency arguments land in the range of [0,1] (inclusive).

    You can read more about this routine here: https://www.l3harrisgeospatial.com/docs/bandpass_filter.html
    You are not authorized to post a reply.