detidor v3.2.3¶
Mercurial revision 5770:c90c3015e72d | 2026-05-22
Description¶
detidor is a command-line tool designed to detide time series data from ASCII-formatted input files. It performs harmonic analysis and generates detided outputs, harmonic constants, and residual time series.
Note: The input file must be in ASCII format.
Usage¶
detidor FILE [OPTIONS]
Options¶
Input/Output Options¶
Option |
Description |
|---|---|
|
Display help and exit. |
|
Specify the time series format. Supported formats: |
|
Specify the format for residual output. Default: |
|
Use |
|
Input mooring information (e.g., |
|
Convention for tidal atlas files. If not provided, harmonic analysis is performed. |
|
Prefix for output files. |
|
Disable dates in output file names. |
|
Number of columns in ASCII GNU format input file. Default: |
Analysis Options¶
Option |
Description |
|---|---|
|
Specify a predefined spectrum or a file. Default: |
|
List of waves to predict. |
|
Save or do not save the raw time series as the first column in the output file. Default: |
|
Compute and save the FFT of the time series and its residual. Default: |
|
Save the power spectral density in |
|
Use if the atlas is in centimeters. |
|
Deprecated. Use |
|
Time integration range (in seconds) for time-averaged data (e.g., |
Advanced Options¶
Option |
Description |
|---|---|
|
Time template for output files. |
|
Delimiter for input files. Default: |
|
Sort harmonic constants by method (e.g., |
|
Target index for analysis. |
|
Maximum ratio for discrete parsing. Default: |
|
Rayleigh ratio for harmonic analysis. Default: |
|
Repetition value for discrete parsing. |
|
Center name for metadata. |
|
Enable debug mode. |
|
Prefix for output files. |
|
Suffix for output files. |
|
Split time series into multiple files. Default: |
|
Split time series into chunks of |
|
Time format for input files. |
Backward Compatibility Options¶
Option |
Description |
|---|---|
|
Use old/obsolete discrete parsing. |
|
Specify the atlas file name convention: |
|
Save the station list to |
Undocumented Options¶
Option |
Description |
|---|---|
|
(Undocumented) |
|
(Undocumented) |
|
(Undocumented) |
|
(Undocumented) |
Wave List and Spectra¶
You can specify:
Individual waves (run showarg to see the full list of available waves):
Majors ones are Q1 O1 P1 K1 N2 M2 S2 K2 M4 MS4.
Predefined spectra (run showarg
to get associated waves and the duration needed for wave separation):
ESTUARINEESTUARINE-HFCOMODOCOASTALCOASTAL-HFSHELFSHELF-HFDEEPDEEP-HFREDUCEDCURRENTS-HFFES2022cAVISO-FES-SPAVISO-FES-ADMITTANCEAVISO-FES-LPAVISO-FES-LP-PROXY
Examples¶
Basic Detiding¶
Detide a time series using the default COASTAL spectrum:
detidor input_file.txt -o output_prefix
Detiding with a Custom Spectrum¶
Detide using the COASTAL-HF spectrum:
detidor input_file.txt -spectrum COASTAL-HF -o output_prefix
Detiding with Specific Waves¶
Detide for specific waves (e.g., M2, S2, K1):
detidor input_file.txt -w M2 S2 K1 -o output_prefix
Detiding with Tidal Atlas¶
Detide using a predefined tidal atlas:
detidor input_file.txt -tides tides_atlas.nc -o output_prefix
Detiding for Altimetry Comparison¶
Detide for comparison with altimetry data:
detidor --no-date -tides $DATA_DIR/tides/FES2022/DOI/WAVE.FES2022.nc -spectrum COASTAL-HF -o output_prefix
Detiding with Time Averaging¶
Specify a time-averaging interval of [-3600:0] (1 hour backward):
detidor input_file.txt --averaging-interval "[-3600:0]" -o output_prefix
Detiding with Custom Mooring Information¶
Detide with mooring metadata:
detidor input_file.txt --mooring="lon=2.35 lat=48.85 code=STN01 name=Station1 depth=10" -o output_prefix
Detiding with Multiple Columns¶
Detide a file with 2 columns:
detidor input_file.txt -n 2 -o output_prefix
Detiding with CTOH Context¶
Organize outputs in a structured directory for CTOH:
detidor input_file.txt -context ctoh -o output_prefix
Detiding with FFT and PSD¶
Compute and save FFT and power spectral density:
detidor input_file.txt --FFT=yes --save_psd -o output_prefix
Environment Variables¶
detidor does not explicitly rely on environment variables, but its performance can be influenced by system-level settings, such as:
OMP_NUM_THREADS: Number of threads for parallel processing (if OpenMP is used internally).OMP_SCHEDULE: Runtime schedule type and chunk size for OpenMP.
Example:
OMP_NUM_THREADS=4 detidor input_file.txt -o output_prefix
Notes¶
Input Files:
Must be in ASCII format.
Supported formats include
GLOSS,GNU,BODC,NETCDF, etc.
Output Files:
Detided time series, harmonic constants (
*.mgr), and residual files are generated.Use
-oto specify the output prefix.Use
--no-dateto disable dates in output file names.
Performance:
For large datasets, consider splitting the time series using
-step(e.g.,-step 1yfor yearly chunks).Use
-context ctohto automatically organize outputs in a structured directory.
Harmonic Analysis:
The default spectrum is
COASTAL. Use-spectrumto specify a different spectrum.Use
-wto specify a custom list of waves for prediction.
Debugging:
Use
--debugto enable debug mode for troubleshooting.
Backward Compatibility:
The
--discrete_parsingoption enables old/obsolete parsing methods for compatibility.
See Also¶
showarg: List available waves for a spectrum.CF Conventions for Time Coordinates: Time formatting standards.