# 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 ```bash detidor FILE [OPTIONS] ``` --- ## Options ### **Input/Output Options** | Option | Description | | ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `-h`, `--help` | Display help and exit. | | `-format ` | Specify the time series format. Supported formats: `BODC`, `BODC2`, `CANADA`, `DART`, `DMY`, `FOREMAN`, `GESLA`, `GLOSS`, `GNU`, `HAWAII`, `HAWAII_NC`, `LEGEND`, `LIST`, `LIST2`, `MINH`, `NETCDF`, `PAB`, `PROFILERS`, `PUERTOS`, `RADAR`, `RADAR_RAW`, `REFMAR`, `RMN`, `SEINE`, `SONEL_HR`, `USER`, `YMD`. Default: `GLOSS` (also works for `JASL`). | | `--residual-format ` | Specify the format for residual output. Default: `GNU`. | | `-context ` | Use `ctoh` to automatically organize outputs in a structured directory. | | `--mooring=` | Input mooring information (e.g., `"lon= lat= code= name= depth="`). | | `-tides ` | Convention for tidal atlas files. If not provided, harmonic analysis is performed. | | `-o ` | Prefix for output files. | | `--no-date` | Disable dates in output file names. | | `-n ` | Number of columns in ASCII GNU format input file. Default: `1`. | --- ### **Analysis Options** | Option | Description | | ---------------------------------- | --------------------------------------------------------------------------------------------------------------- | | `-spectrum ` | Specify a predefined spectrum or a file. Default: `COASTAL`. See [Wave List and Spectra](#wave-lists-spectra4) for available spectra. | | `-w [wave2 ...]` | List of waves to predict. | | `--save-timeseries=yes/no` | Save or do not save the raw time series as the first column in the output file. Default: `yes`. | | `--FFT=yes/no` | Compute and save the FFT of the time series and its residual. Default: `yes`. | | `--save_psd` | Save the power spectral density in `psd_r1_c.py` (requires FFT). | | `-cm` | Use if the atlas is in centimeters. | | `--averaging ` | **Deprecated.** Use `--averaging-interval` instead. | | `--averaging-interval <[min:max]>` | Time integration range (in seconds) for time-averaged data (e.g., `"[-3600:0]"` for hourly averages). | --- ### **Advanced Options** | Option | Description | | ------------------------ | --------------------------------------------------------------------------------------- | | `--time