timeseries-validate v3.2.3¶
Mercurial revision 5770:c90c3015e72d | 2026-05-22
Description¶
timeseries-validate is a tool for performing operations on time series data. It supports three main tasks:
Validation: Compare time series between
--dataand--simulationinputs.Ocean-zero: Compute statistics for
[(msl - mdt) over geoid(s)]for each station, each year.Operation: Add time series from
--dataand--simulationinputs.
Usage¶
timeseries-validate <file> [options]
Options¶
General Options¶
Option |
Description |
|---|---|
|
Display help and exit. |
Task Options¶
Option |
Description |
|---|---|
|
Specify the task to perform. Options: |
Task Details:
validation: Compares time series between--dataand--simulationinputs.
ocean-zero: Computes[(msl - mdt) over geoid(s)]statistics for each station, each year.
operation: Adds time series from--dataand--simulationinputs.
Input/Output Options¶
Option |
Description |
|---|---|
|
Input file to process. |
|
Start date for the time series. |
|
End date for the time series. |
|
Prefix for output files. |
|
Sea level offset in meters. |
|
Data input information. Format: |
|
Model input information. Format: |
Deprecated Options¶
Note: These options are deprecated and may not be fully supported.
Option |
Description |
|---|---|
|
Input information about mooring (e.g., |
|
Format to decode mooring info from file. |
|
Number of columns for input GNU format (default: |
|
Split time series per |
|
Additional time to add to timestamps, in seconds. |
|
Always set to |
Examples¶
Validation Task¶
Compare data and simulation time series:
timeseries-validate \
--task validation \
--data "file=/path/to/data.gnu column=1 format=GNU units=m" \
--simulation "file=/path/to/simulation.gnu column=1 format=GNU units=m" \
-s 01/01/2020 \
-f 31/12/2020 \
-o output_prefix
Ocean-Zero Task¶
Compute ocean-zero statistics for a specific period:
timeseries-validate \
--task ocean-zero \
-s 01/01/2020 \
-f 31/12/2020 \
--offset 0.5
Note: For
ocean-zero, stations must be predefined in the code and the tool must be recompiled.
Operation Task¶
Add two time series:
timeseries-validate \
--task operation \
--data "file=/path/to/data1.gnu column=0 format=GNU units=m" \
--simulation "file=/path/to/data2.gnu column=0 format=GNU units=m" \
-s 01/01/2020 \
-f 31/12/2020 \
-o sum_output
Using Custom Date Range¶
Process time series for a custom date range:
timeseries-validate \
input.gnu \
-s 15/06/2020 \
-f 15/08/2020 \
--offset 0.2
Splitting Time Series¶
Split time series into chunks of 2 years:
timeseries-validate \
input.gnu \
--step=2y \
-o split_output
Environment Variables¶
This tool does not require specific environment variables. However, ensure your system has the necessary permissions to read input files and write output files.
Notes¶
Input File Formats:
Supported formats include:
GNU, DMY, YMD: ASCII with at least 2 columns (
time slv1). Use-n <ncolumns>for additional columns.SONEL_HR:
YYYY-MM-DD HH:MM:SS slv_float(e.g.,1995-08-10 11:50:00 3.050). File extension:.slv.LIST:
cnes_date float_value_of_slv(Julian date from 1950/01/01).PROFILERS: Binary format:
nbin ntime YYYY MM DD HH MM SS bin1 bin2 ...(all values are floats).Other supported formats: GLOSS, HAWAII, SEINE, RADAR, FOREMAN, MINH, LIST2, JMA, LEGEND, BODC, DART, RMN, PAB.
Time Correction:
Use--time-correctionto adjust timestamps by a fixed number of seconds.Offset:
The--offsetoption applies a constant sea level offset (in meters) to the data.Default Values:
If no
--dataor--simulationis provided, default files are used (see code for details).Default task:
validation.
Bugs:
The
ocean-zerotask requires hardcoding stations in the source code and recompiling the tool.