Skip to content

fix: modify crosswalk script to use full schism mesh#75

Merged
dylanlee merged 5 commits intomainfrom
feat/crosswalk-redux
Mar 31, 2026
Merged

fix: modify crosswalk script to use full schism mesh#75
dylanlee merged 5 commits intomainfrom
feat/crosswalk-redux

Conversation

@dylanlee
Copy link
Copy Markdown

@dylanlee dylanlee commented Mar 31, 2026

The original icefabric crosswalk tool script extracted centroids from previously crosswalked schism mesh elements. The new tool is designed to work with schism meshes directly and doesn't need an upstream crosswalk file.

This tool finds locations where NHF flowpaths cross the mesh boundary and then uses the SCHISM mesh element closest to the crossing to assign a crosswalk point.

Below you can see the boundary line in green, flowpaths in blue, and nexuses in grey. The cross-walked points are blue points that are assigned to a divide where a flowpath crosses the boundary.

image

The original icefabric crosswalk tool script extracted centroids from
previously crosswalked schism mesh elements. The new tool is designed to
work with schism meshes directly and doesn't need an upstream crosswalk
file.
Previously flowpaths crossing schism boundary were only being
crosswalked to the mesh if the crossing happened in the downstream part
of the flowpath. This was leading to some crossings not being
crosswalked.
@dylanlee dylanlee requested a review from quercoak March 31, 2026 15:40
Copy link
Copy Markdown

@quercoak quercoak left a comment

Choose a reason for hiding this comment

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

Ran code. Output and logic look good. Approved.

@dylanlee dylanlee merged commit d33e398 into main Mar 31, 2026
9 checks passed
@dylanlee dylanlee deleted the feat/crosswalk-redux branch March 31, 2026 16:26
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