vertical-eigenmodes v3.2.3¶
Mercurial revision 5770:c90c3015e72d | 2026-05-22
Description¶
vertical-eigenmodes computes vertical modes, spectral decomposition, and barotropic/baroclinic energy fluxes from harmonic data. It supports multiple ocean models and datasets, allowing for flexible configurations of input variables and grid definitions.
Usage¶
vertical-eigenmodes [OPTIONS]
Options¶
Standard Options¶
Option |
Description |
Default |
|---|---|---|
|
Display help and exit. |
- |
|
Specify the model. Supported models: |
- |
|
Root name for output files. |
Same as the model name |
`–compute-modes=[yes |
no]` |
Whether to (re)compute vertical modes. |
`–decomposition=[yes |
no]` |
Whether to (re)compute spectral decomposition. |
`–recomposition=[yes |
no]` |
Whether to (re)compute spectral recomposition. |
|
Number of vertical modes to compute. |
|
|
Number of modes to project during recomposition. |
|
|
Number of saved modes for snapshot models. |
|
|
Tidal wave to analyze. |
|
Grid and Variable Definitions¶
Option |
Description |
Format |
|---|---|---|
|
Grid information. |
|
|
Mean density for vertical modes. |
|
|
Mean temperature for vertical modes. |
|
|
Mean salinity for vertical modes. |
|
|
Temperature anomaly. |
|
|
Salinity anomaly. |
|
|
Density anomaly. |
|
|
Zonal velocity anomaly. |
|
|
Meridional velocity anomaly. |
|
|
Vertical velocity anomaly. |
|
Note: For complex variables, use:
"dataFile=<path> mask=<var> amplitude=<var> phaselag=<var>".
Warning: Relative paths must start with./.
Additional Options¶
Option |
Description |
Default |
|---|---|---|
|
Discretization for unstructured grids. |
- |
|
Additional bathymetry file (not needed for models). |
- |
|
Compression level for output files ( |
|
|
Enable debug mode. |
- |
|
Enable verbose mode. |
- |
`–normalisation=[yes |
no]` |
Whether to normalize vertical modes. |
|
Number of processes to use. |
- |
Examples¶
Basic Usage with NEMO Model¶
Compute vertical modes for the NEMO model with default settings:
vertical-eigenmodes -m NEMO -r NEMO_output
Custom Vertical Modes and Decomposition¶
Compute 15 vertical modes and enable spectral decomposition for the SYMPHONIE model:
vertical-eigenmodes -m SYMPHONIE \
-nmodes 15 \
--compute-modes=yes \
--decomposition=yes \
-r SYMPHONIE_output
Specify Grid and Ambient Variables¶
Define grid and ambient variables for NEMO:
vertical-eigenmodes -m NEMO \
--grid "gridFile=grid.nc maskFile=mask.nc e3t=e3t e3u=e3u e3v=e3v e3w=e3w" \
--ambient-density "dataFile=rhop.nc maskFile=mask.nc variable=rhop mask=tmask" \
--ambient-temperature "dataFile=temp.nc maskFile=mask.nc variable=temp mask=tmask" \
--ambient-salinity "dataFile=sal.nc maskFile=mask.nc variable=sal mask=tmask" \
-r NEMO_custom
Analyze a Specific Tidal Wave¶
Compute vertical modes for the M2 tidal wave with WOA2009 data:
vertical-eigenmodes -m WOA2009 \
-w M2 \
-t_var "dataFile=./temp_annual_1deg.nc mask=tmask variable=t_an" \
-s_var "dataFile=./salinity_annual_1deg.nc mask=tmask variable=s_an" \
-r WOA2009_M2
Recompute Only Spectral Decomposition¶
Skip vertical modes computation and only recompute spectral decomposition:
vertical-eigenmodes -m NEMO-spectral \
--compute-modes=no \
--decomposition=yes \
-r NEMO_decomp
Use Compression for Output Files¶
Enable compression (level 5) for output files:
vertical-eigenmodes -m SYMPHONIE \
-deflate 5 \
-r SYMPHONIE_compressed
Unstructured Grid¶
Specify discretization for an unstructured grid:
vertical-eigenmodes -m SYMPHONIE-snapshot-hybrid \
-unstructured "discretization=FV" \
-r SYMPHONIE_unstructured
Monthly Processing with ORCA12¶
Process monthly data for the ORCA12 model:
vertical-eigenmodes -m ORCA12-monthly \
-r ORCA12_monthly \
-nmodes 12
Environment Variables¶
vertical-eigenmodes 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 vertical-eigenmodes -m NEMO -r NEMO_parallel
Note: If running on a busy machine, limit threads to the number of free CPUs to avoid performance degradation.
Notes¶
Model-Specific Configurations:
Many file or variable names are model-dependent. Refer to the documentation of your specific model for details.
The
STANDARD_FILE_DEFINITIONformat allows flexible configuration of input files, masks, and variables.
Output Files:
Vertical modes are saved in
<rootname>.vertical-modes.nc.Spectral decomposition results are saved in
<wave>-modal-decomposition.nc.Spectral recomposition results are saved in
<wave>-modal-recomposition.nc.
Performance:
Use
-nprocsto control the number of processes for parallel computation.Adjust
OMP_NUM_THREADSbased on available CPU resources.
Debugging:
Use
--debugand--verbosefor troubleshooting.
Deprecated Options:
-tfile,-sfile,-rfile,-pfile,-ufile,-mfileare deprecated. Use-t_var,-s_var,-r_var,-p_var,-u_var,--gridinstead.
See Also¶
Model-specific documentation (e.g., NEMO, SYMPHONIE, ORCA).