makeTideSeries
Overview
makeTideSeries generates a synthetic OMG binary jcu_nav_rec file at a fixed geographic coordinate (-lalo <lat> <lon>) over a specified UTC start/end time range (-start to -end) at a uniform time step (-timestep_min).
It is designed to create a regular fixed-station time series template that can then be populated by a tidal prediction engine (such as tidecor or WebTide) and subsequently merged into survey lines with mergeTide.
Syntax & CLI Options
makeTideSeries -lalo <lat> <lon> -start <yr> <jday> <hr> <min> -end <yr> <jday> <hr> <min> [-timestep_min <min>] -out <tide.bin>
| Option | Description | Default |
|---|---|---|
-lalo <lat> <lon> | Fixed station decimal latitude and longitude (N positive, E positive). | 45.0 -65.0 |
-start <yr> <jday> <hr> <min> | Required. Start UTC timestamp: 4-digit year, Julian day (1..366), hour (0..23), and minute (0..59). | None |
-end <yr> <jday> <hr> <min> | Required. End UTC timestamp: 4-digit year, Julian day (1..366), hour (0..23), and minute (0..59). | None |
-timestep_min <minutes> | Time interval in minutes between consecutive output records. | 5.0 |
-out <filename> | Required. Output binary jcu_nav_rec filename. | None |
-v | Enable verbose flag. | Disabled |
How It Works
- Converts
-startand-end(year, jday, hour, min, 0)into 1970 UTC epoch seconds (starttimeandendtime) usingstdtime_from_jul_day. - Sets
tide_rec.lat = latandtide_rec.lon = lon. - Loops from
the_time = starttimewhilethe_time < endtime, incrementing bytimestep_min * 60.0seconds on each step, and writes binaryjcu_nav_recrecords vianav_write.
Examples
Create a 5-minute station template in the Bay of Fundy for Julian Day 180:
makeTideSeries \
-lalo 45.15 -66.05 \
-start 2007 180 00 00 \
-end 2007 181 00 00 \
-timestep_min 5 \
-out fundy_station_template.bin
Workflow Context
- Downstream: Used as input to tidal constituent predictors (
tidecor) to evaluate predicted tides at a fixed virtual gauge, followed bymergeTide.