Skip to content

Conversation

@bkeepers
Copy link
Member

@bkeepers bkeepers commented Dec 17, 2025

This pull request adds a script to import stations from TICON-4, TIdal CONstants based on GESLA-4 sea-level records.

It includes 4,838 global stations.

$ tools/import-ticon
Done. Created 4838 stations.

TODO:

  • Resolve duplicates between NOAA/TICON. It might make sense to just skip any that are from NOAA in TICON, but I want to compare the list and see if there are any differences.
  • Implement missing constituents in tide-predictor
    • MSQM
    • EP2
    • MTM
    • LAMBDA2
    • MKS2
    • N4
    • S3
    • MA2
    • MB2
    • T3
    • R3
    • RHO1
    • SGM
    • 3L2
    • 3N2
    • 2MS6
    • 2MK5
    • 2MO5

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds functionality to import 4,838 global tide stations from the TICON-4 (TIdal CONstants based on GESLA-4) dataset. The implementation includes a bash script to download the data, a TypeScript module to parse and convert the data to the repository's station JSON schema, and a new utility module for computing tidal datums.

Key changes:

  • New import tooling for TICON-4 dataset with automatic data download and processing
  • New datum computation utilities using synthetic tidal predictions
  • Updated @neaps/tide-predictor dependency to version 0.3.0 to support additional harmonic constituents

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
tools/import-ticon Bash script that downloads TICON-4 data and invokes the TypeScript import script
tools/import-ticon.ts TypeScript module that parses TICON-4 CSV files and converts stations to JSON schema
tools/datum.ts New utility module for computing tidal datums from harmonic constituents using synthetic predictions
package.json Updates @neaps/tide-predictor dependency from 0.2.1 to 0.3.0
.gitignore Adds tmp directory to exclude downloaded data from version control

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bkeepers bkeepers mentioned this pull request Jan 9, 2026
@bkeepers bkeepers force-pushed the ticon-4 branch 3 times, most recently from 679ff9b to 5bef153 Compare January 11, 2026 16:05
@bkeepers bkeepers changed the base branch from main to stable-id January 11, 2026 16:05
Base automatically changed from stable-id to main January 12, 2026 15:13
@bkeepers
Copy link
Member Author

  • Resolve duplicates between NOAA/TICON. It might make sense to just skip any that are from NOAA in TICON, but I want to compare the list and see if there are any differences.

I'm going to leave this for now. Later I can add a way to load data by source or filter out likely.

@bkeepers bkeepers marked this pull request as ready for review January 12, 2026 19:13
@bkeepers bkeepers merged commit cd22468 into main Jan 12, 2026
2 checks passed
@bkeepers bkeepers deleted the ticon-4 branch January 12, 2026 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants