# comodo-detidor v3.2.3 **Mercurial revision 5770:c90c3015e72d | 2026-05-22** --- ## Description `comodo-detidor` is a tool designed to **detide** comodo-compliant NetCDF outputs and produce **tidal atlases**. It is used by **CTOH** (Centre de Topographie des Océans et de l'Hydrosphère). The tool performs **spectral analysis** on a given list of tidal waves and generates: - Detided output files. - Tidal atlases (amplitude and phase maps for each tidal constituent). > **Note:** The time variable in input files **must comply with the [CF conventions](http://cfconventions.org/cf-conventions/cf-conventions.html#time-coordinate)**. --- ## Usage ```bash comodo-detidor file1 [file2 ...] [OPTIONS] -d wave1 [wave2 ...] ``` --- ## Options ### **General Options** | Option | Description | | --------------------------- | ------------------------------------------------------------------------------------------------------- | | `--help`, `-h` | Display help and exit. | | `--nodal=no` | Disable nodal corrections. | | `--time-variable ` | Alternative name for the time variable (default: `time`). | | `--time-attributes ` | Alternative time attributes (e.g., `"seconds since YYYY/MM/DD"` or `"days since YYYY/MM/DD HH:MM:SS"`). | --- ### **Input/Output Options** | Option | Description | | ------------------------ | ------------------------------------------------------------------------------------------------------------------- | | `-l ` | Path to a file containing a list of input files (overrides command-line file list). | | `-g ` | Path to the grid file (required if coordinates are missing in input files and atlases/control points are used). | | `-p ` | Output directory. **Recommended:** Use a different hard drive for detiding to improve performance. | | `-v [var2 ...]` | List of variables to detide (e.g., `ssh`, `tem`, `sal`, `XE`). | | `-d [wave2 ...]` | List of tidal waves to analyze. See [Wave list and Spectra](#wave-lists-spectra2). | | `--spectrum ` | Specifies the detiding spectrum by name. See [Wave list and Spectra](#wave-lists-spectra2). | --- ### **Atlas Options** | Option | Description | | ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | | `-a` | Produce tidal atlases. | | `--only-atlases` | Produce **only** atlases (no detiding). Implies `-a`. | | `--load-atlases` | Load existing atlases (no analysis). Currently disables `--control`. | | `-1` | Store all atlases in **one file per variable**. ⚠️ **Warning:** Files produced with this option **cannot** be used with `comodo-admittance`. | --- ### **Analysis Options** | Option | Description | | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `-c `, `--control ` | Path to a file containing control points (ASCII format: number of points followed by `longitude latitude [layer]`). | | `--drying` | Account for slight variations in the mask at each time frame. Useful for cases with dynamically changing land-sea masks. | | `--take-first` | If time frames are simultaneous, use the **first** one. | | `--take-last` | If time frames are simultaneous, use the **last** one. | | `--band-cut ` | Band-cut filter: specify two frequencies (in deg/h) to exclude waves outside this range. | | `--averaging