Answers.Body: <p>You have first to select Data source in the Filter module tab.</p>
  <p>Without doing that you will get the error you described.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-15T23:53:27.003Z
Answers.Text: Thank you, this worked!
Answers.UserDisplayName: HajnalRinyu
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-16T06:13:06.543Z
Answers.Text: if it solved your problem, please accept the answer
Answers.UserDisplayName: WMXZ
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-27T06:19:36.327Z
Answers.Text: Just did so! Apologies for the delay, I'm pretty new to this.
Answers.UserDisplayName: HajnalRinyu
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-15T06:12:42.183Z
Answers.LastActivityDate: 2023-03-15T06:12:42.183Z
Answers.UserDisplayName: WMXZ
Answers.Body: <p>It looks to me as though your data are sampled at 48kHz, so the maximum usable frequency in the data is 24kHz. The study you refer to sample data at 256kHz, so filtering data for them may have made sense. They searched for whistles up to 30kHz, which you clearly can't do with your data. Whether this matters or not, I cannot say, but you'll certainly have to modify some of the signal pre-processing stages to get data into a similar format and can't expect the same results with different equipment.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-06-13T02:52:24.073Z
Answers.Text: The main issue here ended up being that I didn't have select my audio file for "Data Source", as the selected answer above said. But you're correct, I do have to adjust my high pass parameters because of my hydrophone's lower sampling rate compared to the study. So far, my approach has been just to set the high pass as the Nyquist frequency, and that seems to be working well.
Answers.UserDisplayName: HajnalRinyu
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-06-11T14:17:47.283Z
Answers.LastActivityDate: 2023-06-11T14:17:47.283Z
Answers.UserDisplayName: Doug Gillespie
Body: <p>I'm working on a project with detecting killer whale vocalizations using PAMGuard, and am basing my approach off of the methodology in <a href="https://www.researchgate.net/publication/365298581_Southern_Resident_Killer_Whale_Orcinus_orca_summer_distribution_and_habitat_use_in_the_southern_Salish_Sea_and_the_Swiftsure_Bank_area_2009_to_2020" rel="nofollow noreferrer">&quot;Southern Resident Killer Whale (Orcinus orca) summer distribution and habitat use in the southern Salish Sea and the Swiftsure Bank area (2009 to 2020)&quot;</a>.
  Namely, I'm attempting to use the same settings for PAMGuard as the authors did, but I'm having problems with the IIR Chebyshev filter.</p>
  <p><a href="https://i.sstatic.net/Uc1uP.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Uc1uP.jpg" alt="enter image description here" /></a></p>
  <p>I've added the filter module, but when I go to add my values for the frequencies, I get a popup that says &quot;the low pass cut off frequency is too high&quot;.
  I've adjusted the values, and this happens with any value inputted, even when the low pass cutoff is as low as 1 Hz.
  The only time I don't get the popup is when it's at 0 Hz... and then if I have anything besides 0 Hz for the <em>high-pass</em> frequency cutoff, I get a popup that says</p>
  <blockquote>
  <p>the high pass cut off frequency is too high.</p>
  </blockquote>
  <p>This also occurs when I switch to an IIR Butterworth filter, since someone suggested trying that out.
  <a href="https://i.sstatic.net/xcMkL.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/xcMkL.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.sstatic.net/YQZhk.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/YQZhk.png" alt="enter image description here" /></a></p>
  <p>I'm very new to using PAMGuard, and I'm just baffled of what to do here. I've done this adjustment on the filter both before and after I loaded my audio files into the program just to see if it makes a difference (it doesn't). I read through the PAMGuard manual for how the filters work, and the only thing it says about restrictions is</p>
  <blockquote>
  <p>For Butterworth, Chebychev and FIR Filters using the Window Method,
  select either a High pass, Band Pass, Band Stop or Low Pass response
  and the filter cut off frequencies in Hz. Note that these should be
  greater than 0 and less than half of the sample rate.</p>
  </blockquote>
  <p>I downloaded PAMGuard in fall of last year, so this is the latest version as far as I know. The audio files were recorded in the Salish Sea using a SoundTrap hydrophone, with a sampling rate of 48 kHz and using a single channel.</p>
  <p>I'd appreciate any help, I have no idea of what the underlying issue may be here.</p>
  
Tags: <pamguard><filter>
Title: Why aren't any cutoff frequencies accepted for my IIR Chebyshev filter in PAMGuard?
ThreadText: # Why aren't any cutoff frequencies accepted for my IIR Chebyshev filter in PAMGuard?
  
  (Asked by: username_0 on 2023-03-15)
  
  I'm working on a project with detecting killer whale vocalizations using PAMGuard, and am basing my approach off of the methodology in ["Southern Resident Killer Whale (Orcinus orca) summer distribution and habitat use in the southern Salish Sea and the Swiftsure Bank area (2009 to 2020)"](https://www.researchgate.net/publication/365298581_Southern_Resident_Killer_Whale_Orcinus_orca_summer_distribution_and_habitat_use_in_the_southern_Salish_Sea_and_the_Swiftsure_Bank_area_2009_to_2020).
  Namely, I'm attempting to use the same settings for PAMGuard as the authors did, but I'm having problems with the IIR Chebyshev filter.
  
  [![enter image description here](https://i.sstatic.net/Uc1uP.jpg)](https://i.sstatic.net/Uc1uP.jpg)
  
  I've added the filter module, but when I go to add my values for the frequencies, I get a popup that says "the low pass cut off frequency is too high".
  I've adjusted the values, and this happens with any value inputted, even when the low pass cutoff is as low as 1 Hz.
  The only time I don't get the popup is when it's at 0 Hz... and then if I have anything besides 0 Hz for the *high-pass* frequency cutoff, I get a popup that says
  
  > the high pass cut off frequency is too high.
  
  This also occurs when I switch to an IIR Butterworth filter, since someone suggested trying that out.
  [![enter image description here](https://i.sstatic.net/xcMkL.png)](https://i.sstatic.net/xcMkL.png)
  
  [![enter image description here](https://i.sstatic.net/YQZhk.png)](https://i.sstatic.net/YQZhk.png)
  
  I'm very new to using PAMGuard, and I'm just baffled of what to do here. I've done this adjustment on the filter both before and after I loaded my audio files into the program just to see if it makes a difference (it doesn't). I read through the PAMGuard manual for how the filters work, and the only thing it says about restrictions is
  
  > For Butterworth, Chebychev and FIR Filters using the Window Method,
  > select either a High pass, Band Pass, Band Stop or Low Pass response
  > and the filter cut off frequencies in Hz. Note that these should be
  > greater than 0 and less than half of the sample rate.
  
  I downloaded PAMGuard in fall of last year, so this is the latest version as far as I know. The audio files were recorded in the Salish Sea using a SoundTrap hydrophone, with a sampling rate of 48 kHz and using a single channel.
  
  I'd appreciate any help, I have no idea of what the underlying issue may be here.
  
  **Tags:** pamguard, filter
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2023-03-15. Score: 2 | Accepted answer
  
  You have first to select Data source in the Filter module tab.
  
  Without doing that you will get the error you described.
  
  > **Comments:**
  > **username_0**: Thank you, this worked!  
  > **username_1**: if it solved your problem, please accept the answer  
  > **username_0**: Just did so! Apologies for the delay, I'm pretty new to this.  
  
  ---
  
  ### Answer by username_2 on 2023-06-11. Score: 1
  
  It looks to me as though your data are sampled at 48kHz, so the maximum usable frequency in the data is 24kHz. The study you refer to sample data at 256kHz, so filtering data for them may have made sense. They searched for whistles up to 30kHz, which you clearly can't do with your data. Whether this matters or not, I cannot say, but you'll certainly have to modify some of the signal pre-processing stages to get data into a similar format and can't expect the same results with different equipment.
  
  > **Comments:**
  > **username_0**: The main issue here ended up being that I didn't have select my audio file for "Data Source", as the selected answer above said. But you're correct, I do have to adjust my high pass parameters because of my hydrophone's lower sampling rate compared to the study. So far, my approach has been just to set the high pass as the Nyquist frequency, and that seems to be working well.  
  
  ---
  
  