adcp v3.2.3¶
Mercurial revision 5770:c90c3015e72d | 2026-05-22
Description¶
adcp is a tool designed to detide comodo-compliant NetCDF data with many holes (e.g., missing or masked values) and produce tidal atlases. It 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.
Usage¶
adcp file1 [file2 ...] [OPTIONS] -d wave1 [wave2 ...]
Options¶
General Options¶
Option |
Description |
|---|---|
|
Display help and exit. |
Input/Output Options¶
Option |
Description |
|---|---|
|
Path to a file containing a list of input files (overrides command-line file list). |
|
List of variables to detide (e.g., |
|
Path to the grid file. Required if coordinates are missing in input files and you want to produce atlases or use control points. |
|
List of tidal waves to analyze (e.g., |
|
Output directory. Recommended: Use a different hard drive for detiding to improve performance. |
Atlas Options¶
Option |
Description |
|---|---|
|
Produce tidal atlases. |
|
Produce only atlases (no detiding). Implies |
|
Load existing atlases (no analysis). Currently disables |
|
Store all atlases in one file per variable. ⚠️ Warning: Files produced with this option cannot be used with |
Analysis Options¶
Option |
Description |
|---|---|
|
Path to a file containing control points (ASCII format: number of points followed by |
|
Disable nodal corrections. |
|
If time frames are simultaneous, use the first one. |
|
If time frames are simultaneous, use the last one. |
|
Band-cut filter: specify two frequencies (in deg/h) to exclude waves outside this range. |
|
Deprecated. Use |
|
Time integration range (in seconds) for time-averaged data (e.g., |
|
Save the power spectral density in |
Date Options¶
Option |
Description |
|---|---|
|
Start date for analysis. See Date Formats. |
|
End date for analysis. See Date Formats. |
|
Default date origin. See Date Formats. |
Date Formats¶
Supported formats:
yyyy/mm/dd HH:MM:SS.SSSdd/mm/yyyy HH:MM:SS.SSSmm/yyyy
Notes:
The least significant parts (seconds, minutes, hours, days, months) are optional.
The separator can be any non-numeric character (e.g.,
/,-, `` ).End dates are inclusive. Examples:
2000→2001/01/01 00:00:00
2000/01→2000/02/01 00:00:00
2000/01/01→2000/01/02 00:00:00
2000/01/01 00→2000/01/01 01:00:00
2000/01/01 00:00→2000/01/01 00:01:00
Wave Lists¶
You can specify a list of tidal waves to analyze. A good starting point is:
Q1 O1 P1 K1 N2 M2 S2 K2 M4 MS4
Examples¶
Basic Detiding¶
Detide variables ssh, tem, and sal for waves M2, S2, N2, K2:
adcp -s 15/12/2008 -f 28/02/2009 \
-l files.list \
-g grille_domconcat.nc \
-v ssh tem sal \
-a -d M2 S2 N2 K2
Detiding with Custom Waves¶
Detide variable XE for a custom set of waves:
adcp -s 02/01/2000 \
-v XE \
-a \
-d Q1 O1 P1 K1 N2 M2 S2 K2 M4 MS4
Only Generate Atlases¶
Generate atlases without detiding:
adcp -l files.list \
-g grille_domconcat.nc \
-v ssh \
--only-atlases \
-d M2 S2 N2 K2
Load Existing Atlases¶
Load precomputed atlases for detiding:
adcp -l files.list \
--load-atlases \
-v elevation \
-d M2 S2
Band-Cut Filtering¶
Exclude waves outside the frequency range [5, 20] deg/h:
adcp -l files.list \
-v ssh \
--band-cut 5 20 \
-d M2 S2 K1 O1
Time Averaging¶
Specify a time-averaging interval of [-3600:0] (1 hour backward):
adcp -l files.list \
-v ssh \
--averaging-interval "[-3600:0]" \
-d M2 S2
Save Power Spectral Density¶
Save the power spectral density for further analysis:
adcp -l files.list \
-v ssh \
--save_psd \
-d M2 S2 K1
Environment Variables¶
adcp 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 adcp -l files.list -v ssh -d M2 S2
Note: If running on a busy machine, limit threads to the number of free CPUs to avoid performance degradation.
Notes¶
Input Files:
Must be comodo-compliant NetCDF files.
The time variable must follow CF conventions.
Suitable for datasets with many holes or missing values (e.g., ADCP data).
Output:
Detided files are saved in the specified output directory (
-p).Atlases are generated if
-aor--only-atlasesis used.
Performance:
For large datasets, use
-pto output to a different hard drive to avoid I/O bottlenecks.Adjust
OMP_NUM_THREADSbased on available CPU resources.
Simultaneous Frames:
Use
--take-firstor--take-lastto handle simultaneous time frames.
Incompatible Options:
--load-atlasesis incompatible with both-aand--only-atlases.
See Also¶
comodo-ocean.fr (for additional tools and resources)