gridit-cdf v3.2.3¶
Mercurial revision 5770:c90c3015e72d | 2026-05-22
Description¶
gridit-cdf converts unstructured tidal atlases into structured grids. It is designed to process tidal data and generate structured outputs for further analysis or visualization.
Usage¶
gridit-cdf input [OPTIONS] wave1 [wave2 ...]
Options¶
General Options¶
Option |
Description |
|---|---|
|
Display help and exit. |
Grid Definition Options¶
Option |
Description |
|---|---|
|
Define grid mapping as |
|
Zone name or global resolution. |
Input/Output Options¶
Option |
Description |
|---|---|
|
NetCDF input atlas file name convention. |
|
Directory containing the atlas files. Default: Current directory ( |
|
Output root convention. Default: |
|
Frame index to process. Default: |
|
Use ASCII input format. |
Variable and Wave Options¶
Option |
Description |
|---|---|
|
Up to 6 variable names for amplitudes and phases of |
|
Grid file followed by up to 3 gridded variable names for |
|
Discretization pair for NetCDF input atlas. Used for default variable names if not explicitly provided. |
|
Separator between variable name list and wave names. |
Mesh and Notebook Options¶
Option |
Description |
|---|---|
|
Notebook file. |
|
Mesh file. |
Advanced Options¶
Option |
Description |
|---|---|
|
Number of iterations for growth of unmasked pixels. |
|
Subsampling factor. Default: |
Examples¶
Basic Conversion with Global Zone¶
Convert tidal atlas for wave M2 using the DNP1xLGP2 discretization:
gridit-cdf -z global -c WAVE.spectral.nc -o WAVE.FES2012 M2 -discretisation DNP1xLGP2
Custom Mapping and Variable¶
Convert tidal atlas with a custom mapping and variable WaveDragRow:
gridit-cdf --mapping [:1m:,:1m:] -c WAVE.spectral.energy.nc -v WaveDragRow -o energy-RG M2
Specify Grid Resolution¶
Convert tidal atlas with a resolution of 0.5 degrees:
gridit-cdf -dx 0.5 -dy 0.5 -c WAVE.spectral.nc -o WAVE.output M2 S2
Use ASCII Input¶
Convert ASCII-formatted tidal atlas:
gridit-cdf --ascii -m mesh_file.nc -c WAVE.ascii -o WAVE.output M2
Process Multiple Waves¶
Convert tidal atlas for multiple waves (M2, S2, K1):
gridit-cdf -z global -c WAVE.spectral.nc -o WAVE.FES2012 M2 S2 K1
Custom Grid Span¶
Convert tidal atlas with a custom grid span:
gridit-cdf -xmin -10 -xmax 10 -ymin -5 -ymax 5 -c WAVE.spectral.nc -o WAVE.output M2
Environment Variables¶
gridit-cdf does not explicitly rely on environment variables for its core functionality. However, if used in a parallelized environment (e.g., with OpenMP), standard environment variables like OMP_NUM_THREADS may influence performance.
Notes¶
Conventions for File Naming:
WAVEis replaced by the uppercase wave name (e.g.,M2).waveis replaced by the lowercase wave name (e.g.,m2).Waveis replaced by the capitalized wave name (e.g.,M2).If the file exists without replacements, no substitution is performed.
Variable Naming:
If
-vis not specified, variable names are computed from the discretization.Up to 6 variables can be specified for amplitudes and phases.
Grid Files:
If
-gis used, up to 3 gridded variables can be specified fore,u, andv.
Subsampling:
Use
--subsamplingto reduce the resolution of the output grid.
Persistence:
--persistencecontrols the iterative growth of unmasked pixels, useful for filling gaps in the data.
See Also¶
tides-converter(for additional tidal data processing tools)