tides-converter v3.2.3¶
Mercurial revision 5770:c90c3015e72d | 2026-05-22
Description¶
tides-converter is a tool designed to convert and interpolate structured tidal atlases. It supports various input and output formats, allowing users to transform tidal data into different representations, apply smoothing, and adjust grid parameters.
Usage¶
tides-converter input [OPTIONS]
Options¶
General Options¶
Option |
Description |
|---|---|
|
Display help and exit. |
|
Input data is in centimeters instead of meters. |
|
Input data is in millimeters instead of meters. |
|
Input data is in 0.0001 meters (e.g., for Pa units). |
|
Set output format to BMG. |
|
Enable debug mode when reading topography or mask files. |
|
Specify the output file name. |
Input Options¶
Option |
Description |
|---|---|
|
Targeted wave if the input contains multiple waves. |
|
Input format: |
|
Read 2 buffers from the atlas (e.g., for U and V components). Implies |
|
Specify input variable names for amplitude and phase (default: |
|
Input grid file. Defaults to the input file. |
|
Grid variable name in the input grid file. Defaults to the amplitude variable. |
Output Grid Options¶
Option |
Description |
|---|---|
|
Grid span parameters in degrees. Default: input grid span. |
|
Output resolution parameters. Supported units: |
|
Output grid file. Defaults to the input grid. |
|
Grid variable name for the output grid. |
`-z <name |
resolution>` |
|
Add one column to repeat the 0/360 longitude boundary. |
Processing Options¶
Option |
Description |
|---|---|
|
Mask file to apply to the input data. |
|
Topography file. Useful as an alternative to the mask file. |
|
Smoothing factor in meters. Default: No smoothing. |
|
Use averaging interpolation (default: pointwise). |
|
Use pointwise interpolation (default). |
|
Set the compression level for NetCDF output. |
Examples¶
Convert a NetCDF Atlas to BMG Format¶
tides-converter input.nc -f netcdf -bmg -o output.bimg
Convert an ASCII Atlas with Custom Variables¶
tides-converter input.asc -f ascii -iv Ha Hg -o output.nc
Interpolate to a New Grid¶
tides-converter input.nc -g new_grid.nc -dx 0.1 -dy 0.1 -o output.nc
Apply Smoothing to the Atlas¶
tides-converter input.nc -s 10000 -o smoothed_output.nc
Convert TPXO Format to NetCDF¶
tides-converter input_tpxo.nc -f tpxo -o output.nc
Use a Mask File¶
tides-converter input.nc -m mask.nc -o masked_output.nc
Convert with Averaging Interpolation¶
tides-converter input.nc -average -o averaged_output.nc
Convert a Multi-Wave Input for a Specific Wave¶
tides-converter input.nc -w M2 -o M2_output.nc
Convert Units from Centimeters to Meters¶
tides-converter input.nc -cm -o output_in_meters.nc
Environment Variables¶
tides-converter does not rely on specific environment variables. However, it uses standard system libraries (e.g., NetCDF, OpenMP) that may be influenced by their respective environment variables.
Notes¶
Input Formats:
If the input file extension is
.nc, the default format isnetcdf.If the extension is
.asc, the default format isascii.Otherwise, the default format is
bmg.
Output Formats:
If
-bmgis specified, the output will be in BMG format.Otherwise, the output defaults to NetCDF unless another format is specified.
Grid Handling:
If no output grid is specified (
-g), the input grid is used.Use
-xmin,-xmax,-ymin,-ymax,-dx, and-dyto define a custom grid.
Smoothing:
The smoothing factor (
-s) is specified in meters and applies a spatial smoothing to the tidal data.
Interpolation Modes:
-average: Uses averaging interpolation for smoother transitions.-pointwise: Uses pointwise interpolation (default).
Multi-Buffer Input:
Use
-uvto read two buffers (e.g., for U and V components) from the atlas. This implies theasciiinput format.
See Also¶
gridit-cdf(for grid manipulation)