What is the unit of length in the function classic_sta_lta?

I’m trying to use the function – classic_sta_lta (cft, nsta, nlta), and I was confused with the units of nsta and nlta. Is the unit second or some other things?

the unit is samples, as stated. if your sampling rate is 200 samples per second, and you want your sta to be 2 seconds, you need to select 400 samples.

1 Like

Thank you for your reply! Just as what I thought it would be!

1 Like

We also have convenience routines on Stream/Trace that work with seconds instead of samples, as outlined in the respective part of the docs.