altimetry-detidor v3.2.3¶
Mercurial revision 5770:c90c3015e72d | 2026-05-22
Description¶
altimetry-detidor is a tool designed to detide altimetric data series from X-TRACK inputs. It is used by CTOH (Centre de Topographie des Océans et de l’Hydrosphère).
The tool processes input files (e.g., input.nc) and generates:
input.mgr(orinput.mgr.ncif-f NETCDFis specified)input.mgr.stat(statistics file)input.res.dat(residual data file, unless-npis used)
Usage¶
altimetry-detidor OPTIONS input.nc
Options¶
General Options¶
Option |
Description |
|---|---|
|
Display help and exit. |
|
Show Rayleigh criteria for several missions and exit. |
|
Enable verbose debugging output. |
|
Set verbosity level (e.g., |
Spectrum and Corrections¶
Option |
Description |
|---|---|
|
Name of the spectrum for analysis. Default: |
|
Disable GDR DAC correction. |
|
Disable GDR tide correction. Use |
|
Atlas name for tidal dealiasing spectrum. Available options: |
|
Apply custom ocean tide correction instead of GDR tide. Requires 3 parameters: convention, amplitude variable name, and phase lag variable name. |
|
Apply load tide correction (for geocentric series only). Requires 3 parameters: convention, amplitude variable name, and phase lag variable name. |
|
Apply GLORYS corrections. Requires 3 parameters: convention, amplitude variable name, and phase lag variable name. |
Date and Data Filtering¶
Option |
Description |
|---|---|
|
Start date for analysis (format: |
|
End date for analysis (format: |
|
Minimum absolute latitude to exclude (e.g., |
Analysis and Output¶
Option |
Description |
|---|---|
|
Atlas amplitude units are in centimeters (default: meters). |
|
Minimum number of elements in the time series (default: |
|
Validity range for SLA (Sea Level Anomaly). Values outside this range are blacklisted. Default: |
|
Use matrix coefficient instead of Rayleigh criterion for tidal wave separability. |
|
Cross-correlation threshold in harmonic matrix for constituent separability (default: |
|
Deprecated. Use |
|
Time integration range (in seconds) for time-averaged data (e.g., |
|
Repetitivity of measurements in days (default: |
|
Error budget type. Currently supports: |
|
Output format for tide gauge data: |
|
Save the power spectral density in |
Performance and Parallelization¶
Option |
Description |
|---|---|
|
Number of CPU cores to use. Default: |
|
Save ASCII data (time, height, DAC parameters, tidal atlas parameters, residual) in a |
Spectrum¶
The spectrum can be specified as:
Predefined spectra (run showarg
to get associated waves and the duration needed for wave separation) :
ESTUARINEESTUARINE-HFCOMODOCOASTAL(default)COASTAL-HFSHELFSHELF-HFDEEPDEEP-HFREDUCEDCURRENTS-HFFES2022cAVISO-FES-SPAVISO-FES-ADMITTANCEAVISO-FES-LPAVISO-FES-LP-PROXY
Custom spectrum:
Provide an ASCII file with the number of waves, followed by each wave’s details:
An integer (≠ 999)
Wave name (case-insensitive)
A non-blank separator (e.g., comma
,)An ignored number (placeholder)
Examples¶
Basic Detiding¶
Detide an input file using the default COASTAL spectrum:
altimetry-detidor input.nc
Custom Spectrum and Output Format¶
Detide using the FES2014 spectrum and save output in NetCDF format:
altimetry-detidor -spectrum FES2014 -f NETCDF input.nc
Disable GDR Corrections¶
Detide without applying GDR DAC or tide corrections:
altimetry-detidor --dac=no --tide=no input.nc
Custom Ocean Tide Correction¶
Apply a custom ocean tide correction using a specific atlas:
altimetry-detidor -a FES2014 -o "/path/to/atlas/WAVE.nc" amp_var phase_var input.nc
Load Tide Correction (Geocentric Series)¶
Apply a load tide correction for geocentric data:
altimetry-detidor -l "/path/to/load/WAVE.nc" load_amp_var load_phase_var input.nc
GLORYS Corrections¶
Apply GLORYS corrections for dealiasing:
altimetry-detidor -ogcm_parameters "/path/to/ogcm/WAVE.nc" ogcm_amp_var ogcm_phase_var input.nc
Date Range and Latitude Filter¶
Process data between 01/01/2020 and 31/12/2020, excluding latitudes below 10°:
altimetry-detidor -s 01/01/2020 -e 31/12/2020 -latmin 10 input.nc
Parallel Processing¶
Use 4 CPU cores for parallel processing:
altimetry-detidor -np 4 input.nc
Save Power Spectral Density¶
Save the power spectral density for error budget analysis:
altimetry-detidor -r 10 -b psd --save_psd input.nc
Custom SLA Range¶
Blacklist SLA values outside the range [-1, 1]:
altimetry-detidor --sla-range "[-1:1]" input.nc
GNU Plot Output¶
Save data in a .gnu file for plotting with gnuplot:
altimetry-detidor -gnu=yes input.nc
Environment Variables¶
altimetry-detidor uses OpenMP (version 201511) for parallelization. Key environment variables:
Variable |
Description |
|---|---|
|
Number of threads to use. |
|
Runtime schedule type and chunk size. |
|
Enable/disable dynamic thread adjustment. |
|
Enable/disable nested parallelism. |
Example:
OMP_NUM_THREADS=6 altimetry-detidor input.nc
Note: If running on a busy machine, limit threads to the number of free CPUs to avoid performance degradation.
Notes¶
Input Files:
Must be X-TRACK SLA reference files (e.g.,
input.nc).
Output Files:
input.mgrorinput.mgr.nc: Tidal constants and analysis results.input.mgr.stat: Statistics for each track (mean, std, etc.).input.res.dat: Residual data (disabled if-npis used).
Conventions for Atlas Files:
The convention path must include the term
WAVEas a placeholder for the tidal wave name.Example:
/home/softs/data/climatology/GLORYS-v2/WAVE.GLORYS.nc
Error Budgets:
Requires
-r(repetitivity) and-b(budget type, e.g.,psd).--save_psdsaves the power spectral density for further analysis.
Parallelization:
Using
-np > 1enables OpenMP and disables residual output.-gnu=yesis disabled if-npis used.
Deprecated Options:
-satellite: No longer used (ignored if provided).