extract-nf-v1 v3.2.3¶
Mercurial revision 5770:c90c3015e72d | 2026-05-22
Description¶
extract-nf-v1 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(andelevation_detided)ubar(andubar_detided)vbar(andvbar_detided)Pa(inverse barometer)
Specificity: Supports binary input files in addition to NetCDF.
Output Format:
The output ASCII files contain 5 columns:
Time
Elevation
Zonal velocity
Meridional velocity
Inverse barometer
Usage¶
extract-nf-v1 [OPTIONS]
Options¶
Option |
Description |
|---|---|
|
Show help and exit. |
|
Output format. If specified, output will be in NetCDF; otherwise, it defaults to binary. |
|
Input file name convention (NetCDF format only). |
|
Input mesh file (required if mesh is not present in data files). |
|
Directory of archive files (binary format). Default: |
|
Root name for analysis files (binary format). Default: |
|
Root name for forcing files (binary format). Default: |
|
Station list file (as produced by |
|
Path to translation file. Default: |
|
Output directory. Default: |
|
Scale output values to centimeters. |
|
Enable LGP1 interpolation to exact position. Note: Only supported for binary format. |
|
Start date in |
|
End date in |
|
Sampling period in seconds. Default: |
Examples¶
Extract Time Series in Binary Format¶
extract-nf-v1 -i ../h4_list_stat -s 3600 -cm \
-r ~/tugo/data/archives/global-MR/ \
-start 01/2001 -end 01/2001
Extract Time Series in NetCDF Format¶
extract-nf-v1 -format NETCDF -i ../h4_list_stat -s 3600 -cm \
-c /models/tugo/global-MR/global-MR.YYYY.MM.nc \
-start 01/2001 -end 01/2001
Use Custom Output Directory and Translation File¶
extract-nf-v1 -i station_list.txt -d /output/path/ \
-t custom_translation.txt -start 06/2020 -end 12/2020
Enable LGP1 Interpolation (Binary Only)¶
extract-nf-v1 -i station_list.txt -e \
-r ~/data/archives/ -start 01/2022 -end 06/2022
Scale Output to Centimeters¶
extract-nf-v1 -i station_list.txt -cm \
-r ~/data/archives/ -start 01/2023 -end 01/2023
Environment Variables¶
None specifically required. However, ensure that:
Input files (binary or NetCDF) are accessible.
Output directories have write permissions.
Notes¶
Binary vs. NetCDF:
If
-formatis not specified, the output defaults to binary.If
-format NETCDFis used, the-coption must be provided to specify the input file naming convention.
LGP1 Interpolation (
-e):
Only works with binary format. Using
-ewith NetCDF may produce incorrect results.
Date Format:
Only
MM/YYYYis supported for-startand-end.
Sampling Period (
-s):
Defaults to
3600seconds (1 hour) if not specified.
Station List (
-i):
Required. Must be provided as a file path.
Output Files:
ASCII files contain 5 columns: time, elevation, zonal velocity, meridional velocity, and inverse barometer.
A
sample.infofile is generated with station metadata (longitude, latitude, name, code, depth, and index).
See Also¶
detidor (for generating station list files)