Hi SAC users,
Does SAC provide a library function to decimate a time series (similar to
the functionality of the decimate command) that can be used in C/Fortran
codes similar to functions provided to cross-correlate (crscor) and filter (
xapiir) waveforms ? Is there an alternative C library that is as good as
SAC for this ? I think it would involve two steps - an anti-aliasing filter
and then the actual decimation.
Thanks for your help.
Regards,
Avinash
--
Avinash Nayak,
Postdoctoral Scholar (Geophysics),
Earth and Environmental Sciences Area,
Lawrence Berkeley National Laboratory, CA
Does SAC provide a library function to decimate a time series (similar to
the functionality of the decimate command) that can be used in C/Fortran
codes similar to functions provided to cross-correlate (crscor) and filter (
xapiir) waveforms ? Is there an alternative C library that is as good as
SAC for this ? I think it would involve two steps - an anti-aliasing filter
and then the actual decimation.
Thanks for your help.
Regards,
Avinash
--
Avinash Nayak,
Postdoctoral Scholar (Geophysics),
Earth and Environmental Sciences Area,
Lawrence Berkeley National Laboratory, CA
-
Hi,
You can to find the C routine of decimate in the source SAC distribution,
untar it, and in src/scm/xdecimate.c
HTH,
Milton
************************************
Milton P. PLASENCIA LINARES
Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - OGS
Borgo Grotta Gigante 42/C
(34010) Sgonico - Trieste - Italia
Tel: +39 040 2140 156 (Udine)
Tel: +39 040 2140 256 (Trieste)
Cell.: +39 331 6481 935
E-mail: mplasencia<at>inogs.it
Antarctic Seismographic Argentinean Italian Network (ASAIN)
**************************************
On Thu, 2 Jul 2020 at 21:44, Avinash (via IRIS) <
sac-help-8966.45720-bounce<at>lists.ds.iris.edu> wrote:
Hi SAC users,
Does SAC provide a library function to decimate a time series (similar to
the functionality of the decimate command) that can be used in C/Fortran
codes similar to functions provided to cross-correlate (crscor) and
filter (xapiir) waveforms ? Is there an alternative C library that is as
good as SAC for this ? I think it would involve two steps - an
anti-aliasing filter and then the actual decimation.
Thanks for your help.
Regards,
Avinash
--
Avinash Nayak,
Postdoctoral Scholar (Geophysics),
Earth and Environmental Sciences Area,
Lawrence Berkeley National Laboratory, CA
----------------------
SAC Help
Topic home: http://ds.iris.edu/message-center/topic/sac-help/ |
Unsubscribe: sac-help-unsubscribe<at>lists.ds.iris.edu
Sent from the IRIS Message Center (http://ds.iris.edu/message-center/)
Update subscription preferences at http://ds.iris.edu/account/profile/