extract-vprofile v3.2.3¶
Mercurial revision 5770:c90c3015e72d | 2026-05-22
Description¶
extract-vprofile is a tool designed to extract a vertical profile from an unstructured model grid in NetCDF format. It specifically targets the following variables:
a_u3DG_u3Da_v3DG_v3DKv3D
Note: If you need support for additional variables or implementations, please contact the developers.
Usage¶
extract-vprofile -f FILE -p "lon lat" [-o OUTPUT_FILE] [-m MOORING_NAME]
Options¶
Option |
Description |
|---|---|
|
Print this help message and exit. |
|
Required. Input file in NetCDF format. |
|
Required. Longitude and latitude of the profile location for extraction. |
|
Output file name. If not specified, the output will be written to a default file. |
|
Mooring name (optional metadata for the output file). |
Examples¶
Basic Extraction¶
Extract a vertical profile at longitude 2.3522 and latitude 48.8566 from a NetCDF file:
extract-vprofile -f input.nc -p 2.3522 48.8566
Extract and Save to a Custom Output File¶
Extract a vertical profile and save it to profile_output.txt:
extract-vprofile -f input.nc -p 2.3522 48.8566 -o profile_output.txt
Extract with Mooring Name¶
Extract a vertical profile and include a mooring name in the output:
extract-vprofile -f input.nc -p 2.3522 48.8566 -o profile_output.txt -m "Mooring_01"
Environment Variables¶
This tool does not use any specific environment variables.
Notes¶
Input File Requirements:
The input file must be in NetCDF format.
The tool only processes the variables
a_u3D,G_u3D,a_v3D,G_v3D, andKv3D.
Output Format:
The output file contains the vertical profile data for the specified location.
The first line includes the mooring name (if provided), longitude, and latitude.
Subsequent lines contain the depth levels and corresponding values for each variable.
Coordinate System:
Longitude (
lon) and latitude (lat) must be provided in decimal degrees.
Deprecated Options:
The
-voption (previously used to list variables to extract) is no longer supported.