quebecTide
Overview
quebecTide converts 81-byte fixed-width tide gauge records (containing 12 fifteen-minute centimeter tide readings per 3-hour record) into the 4-column JHC ASCII tide format (jday hour min tide_m). It is a variant of transTide.
Syntax & CLI Options
quebecTide [OPTIONS] -tide <tidefilename> <outfilename>
| Option | Description | Default |
|---|---|---|
-tide <filename> | Required. Input fixed-record (81-byte) tide file. | None |
<outfilename> | Required. Output 4-column JHC ASCII tide file (jday hour min tide_m). | None |
-v | Enable verbose output of parsed record headers and 15-minute values. | Disabled |
How It Works
- Reads 81-byte fixed-length records from
-tide. - Extracts 2-digit
year(bytes11..12),month(bytes13..14),day(bytes15..16), andhourindex (bytes18..19). - Converts
(month, day)to leap-year Julian day (1..366). - Loops over 12 three-character integer fields starting at byte offset
22(22 + 5 * ifori = 0..11), divides each integer centimeter reading by100.0, and writesday (hour + i)/4 15*(i%4) tide_mto<outfilename>.
Examples
Convert an 81-byte fixed-record tide file to JHC ASCII:
quebecTide -tide quebec_raw.dat quebec_tide.asc
binTide -year 1992 quebec_tide.asc quebec_tide.bin
Workflow Context
- See Also:
transTide(which parses the same 81-byte record structure without the initialgetcharloop) andconvCHSpredTide. - Downstream:
binTide$\rightarrow$mergeTide.