fes-converter v3.2.3¶
Mercurial revision 5803:7164e00e8f3d | 2026-08-18
Description¶
fes-converter standardizes the discretization of tidal waves to a common discretization pair. By default, it uses LGP2 for equilibrium, sequential, spectral, and assimilated conventions.
This tool ensures consistency in the representation of tidal data across different input formats and discretizations.
Usage¶
fes-converter input [OPTIONS]
Options¶
Option |
Description |
|---|---|
|
Display help and exit. |
|
Input convention and 2 to 6 variable names. Defaults depend on the wave type (see Convention). |
|
Output convention and 2 to 6 variable names. Default: |
|
Deprecated. Use |
|
Output discretization pair (e.g., |
|
Input discretization pair. Required if input and output discretizations differ. |
|
Path to the mesh file. |
|
When converting from LGP0 to LGP1, use diffusion instead of projection. |
Convention¶
If -i is not specified, the tool uses the following defaults based on the wave type:
Wave Type |
Convention |
Variables |
|---|---|---|
Equilibrium |
|
|
Sequential |
|
|
Spectral |
|
|
Assimilated |
|
|
Examples¶
Basic Conversion¶
Convert input data using default discretization (DNP1xLGP2):
fes-converter M2
Specify Input and Output Conventions¶
Convert from a spectral input to a custom output:
fes-converter -i /home/data/tides/FES2014/distribution_fes2014a/HYDRO/unstructured/WAVE.spectral.nc a_eta_LGP2 G_eta_LGP2 \
-o /home/data/tides/FES2014/output.nc a_eta_LGP2 G_eta_LGP2
Custom Discretization Pairs¶
Convert using explicit input and output discretization pairs:
fes-converter -iD LGP1xLGP1 -oD DNP1xLGP2 \
-i /home/data/tides/FES2014/input.nc a_eta_LGP1 G_eta_LGP1 \
-o /home/data/tides/FES2014/output.nc a_eta_LGP2 G_eta_LGP2
Diffusion for LGP0 to LGP1 Conversion¶
Use diffusion instead of projection when converting from LGP0 to LGP1:
fes-converter --diffusion \
-i /home/data/tides/FES2014/input.nc a_eta_LGP0 G_eta_LGP0 \
-o /home/data/tides/FES2014/output.nc a_eta_LGP1 G_eta_LGP1
Convert Multiple Waves¶
Convert multiple waves (e.g., M2, S2, K1) with a custom output:
fes-converter M2 S2 K1 \
-o /home/data/tides/FES2014/output.nc a_eta_LGP2 G_eta_LGP2 a_u_DNP1 G_u_DNP1
Environment Variables¶
fes-converter does not rely on specific environment variables. However, ensure that:
Input and output file paths are accessible and writable.
The system has sufficient memory for large datasets.
Notes¶
Input/Output Variables:
The
-iand-ooptions require 3 to 7 parameters: 1 file convention + 2 to 6 variable names.If
-iis omitted, the tool uses default conventions based on the wave type.
Discretization Pairs:
If
-iDis not specified, the tool assumes the input discretization matches the output discretization (-oD).The
-doption is deprecated. Use-oDinstead.
Mesh File:
The
-moption is used to specify a mesh file for the conversion process.
Diffusion vs. Projection:
The
--diffusionoption is only relevant when converting from LGP0 to LGP1. It ensures smoother transitions in the output data.