tides-diagnostics v3.2.3¶
Mercurial revision 5770:c90c3015e72d | 2026-05-22
Description¶
tides-diagnostics is a tool designed to validate tidal atlases based on harmonic analyses from tide gauges. It ensures the accuracy and reliability of tidal models by comparing them against observed data.
Usage¶
tides-diagnostics -g file.mgr -a WAVE-file.nc wave1 [wave2 ...]
Options¶
Option |
Description |
|---|---|
|
Bathymetry database file. |
|
Print differences between data and model outputs. |
|
Output results in LaTeX format. |
|
Deprecated. Naming convention for tidal atlases. Use |
|
Path to the directory containing tidal atlases. |
|
Output file name. |
|
Harmonic data input file. |
|
Variables to analyze. Default: |
|
Output order: |
|
Display help and exit. |
|
Specify discretization type ( |
|
Path to a file defining regions for analysis. |
|
Path to a file defining polygons for analysis. |
|
Iteration index for analysis. |
Examples¶
Basic Validation¶
Validate a tidal atlas for waves M2 and S2:
tides-diagnostics -g bathymetry.mgr -a M2-S2-atlas.nc M2 S2
Compare Data and Model¶
Print differences between observed data and model outputs:
tides-diagnostics -g bathymetry.mgr -a M2-atlas.nc M2 -d
Output in LaTeX Format¶
Generate results in LaTeX format for waves K1 and O1:
tides-diagnostics -g bathymetry.mgr -a K1-O1-atlas.nc K1 O1 -l
Custom Output File¶
Save results to a custom output file:
tides-diagnostics -g bathymetry.mgr -a M2-atlas.nc M2 -o results.txt
Specify Variables¶
Analyze custom variables amplitude and phase:
tides-diagnostics -g bathymetry.mgr -a M2-atlas.nc M2 -v amplitude phase
Unstructured NetCDF File¶
Validate an unstructured NetCDF file with LGP2 discretization:
tides-diagnostics -g bathymetry.mgr -a unstructured-atlas.nc M2 --unstructured LGP2
Custom Output Order¶
Specify the output order as LAT, LON:
tides-diagnostics -g bathymetry.mgr -a M2-atlas.nc M2 -x LAT LON
Use Regions and Polygons¶
Validate using specific regions and polygons:
tides-diagnostics -g bathymetry.mgr -a M2-atlas.nc M2 --regions regions.txt --polygons polygons.plg
Environment Variables¶
tides-diagnostics does not rely on specific environment variables. However, ensure that:
Input files (bathymetry, tidal atlases, etc.) are accessible.
Output directories have write permissions.
Notes¶
Deprecated Options:
-mis deprecated. Use-afor naming conventions instead.
Input Files:
The harmonic data input file (
-cor-g) must be in a compatible format.For unstructured NetCDF files, specify the discretization type (
LGP1orLGP2) using--unstructured.
Output:
If no output file is specified (
-o), results are printed to the standard output.Use
-lto generate LaTeX-formatted output for reports or publications.
Variables:
By default,
Ha(amplitude) andHg(phase) are used. Override with-v.
Performance:
For large datasets, ensure sufficient disk space and memory.
See Also¶
CF Conventions (for NetCDF file standards)
Tide Gauge Harmonic Analysis (for reference data)