extract-nf-v2 v3.2.3¶
Mercurial revision 5770:c90c3015e72d | 2026-05-22
Description¶
extract-nf-v2 produces sample files (time series at specific locations) from T-UGOm outputs, similar to what T-UGOm would generate if explicitly configured to do so. It extracts the following variables:
elevation (sea surface height)
ubar (zonal velocity)
vbar (meridional velocity)
Pa or ibd (inverse barometer)
The output is in ASCII format with 5 columns:
Time
Elevation
Zonal velocity
Meridional velocity
Inverse barometer
Specificity: Supports time averaging for processed data.
Usage¶
extract-nf-v2 [OPTIONS]
Options¶
Option |
Description |
|---|---|
|
Show this help and exit. |
|
Directory of archive files. Default: |
|
Root name for analysis files (format: |
|
Root name for forcing files (format: |
|
Path to the station list file (as produced by |
|
Output directory. Default: |
|
Activate LGP1 interpolation to exact position. ⚠️ Warning: May produce bad results. Deactivate if issues occur. |
|
Start date for extraction (format: |
|
End date for extraction (format: |
|
Sampling period in seconds. Default: Model sampling rate. |
|
Time average period in seconds. Default: |
Examples¶
Basic Extraction¶
Extract time series for stations listed in h4_list_stat with a sampling period of 1800 seconds (30 minutes) and time averaging over 1800 seconds:
extract-nf-v2 -i ../h4_list_stat -s 1800 -a 1800 -r ~/tugo/data/archives/global-MR/ -start 01/2001 -end 01/2001
Extract with Custom Archive and Forcing Files¶
Extract data using custom root names for analysis and forcing files:
extract-nf-v2 -i station_list.txt -h custom_analysis -p custom_forcing -d output/ -start 06/2020 -end 12/2020
Extract with Exact Position Interpolation¶
Enable LGP1 interpolation for precise station positions:
extract-nf-v2 -i station_list.txt -e -r ~/data/archives/ -start 01/2022 -end 12/2022
Extract with Default Settings¶
Use default directories and root names:
extract-nf-v2 -i station_list.txt -start 01/2023 -end 06/2023
Extract with High-Frequency Sampling¶
Extract data with a sampling period of 300 seconds (5 minutes):
extract-nf-v2 -i station_list.txt -s 300 -r ~/data/archives/ -start 01/2021 -end 01/2021
Environment Variables¶
extract-nf-v2 does not rely on specific environment variables. However, ensure that:
Input and output directories are accessible and writable.
The T-UGOm outputs are properly formatted and available in the specified archive directory.
Notes¶
Input Files:
The station list file (
-i) must be formatted as produced bydetidor.Archive files must follow the naming convention:
ROOTNAME-YYYY.MM.nc.
Output Files:
Output files are saved in the directory specified by
-d.Each station’s time series is saved in a separate file named
sample.<station_number>.A metadata file (
sample.info) is generated, containing station coordinates, names, and depths.
Time Averaging:
If
-ais set to a non-zero value, the tool computes time-averaged values over the specified period.The averaging is performed symmetrically around each time step.
Interpolation:
The
-eoption enables LGP1 interpolation for exact station positions.Warning: This option may produce inaccurate results in some cases. Deactivate it if unexpected behavior occurs.
Date Format:
Start (
-start) and end (-end) dates must be provided inMM/YYYYformat.
Performance:
For large datasets, ensure sufficient disk space and memory are available.
Processing time depends on the number of stations, time steps, and averaging period.
See Also¶
T-UGOm Documentation (for input file formats and conventions)
detidor(for generating station list files)