Skip to content

Add PFS example: spectral wave nesting#954

Draft
ecomodeller wants to merge 1 commit into
mainfrom
docs/pfs-nesting-example
Draft

Add PFS example: spectral wave nesting#954
ecomodeller wants to merge 1 commit into
mainfrom
docs/pfs-nesting-example

Conversation

@ecomodeller

@ecomodeller ecomodeller commented Mar 28, 2026

Copy link
Copy Markdown
Member

Summary

The docs/examples section has no PFS examples. The PFS user guide covers the mechanics but only with a generic concat.mzt file — there's no real-world example showing how to automate setup file modifications.

This adds an example that reads a North Sea spectral wave setup, copies an existing line output, modifies it for spectral output across the Thames Estuary (for model nesting), and writes the updated setup. The mesh is plotted with the nesting boundary overlaid.

Before merging

The modified .sw file needs to be loaded and run in MIKE Zero to verify that the output type/format values (type=4, format=1) and line coordinates produce a valid spectral line output.

Add a new docs example showing how to programmatically add a spectral
output to a MIKE SW setup file for model nesting. The example reads
the North Sea mesh and setup, copies an existing line output, modifies
it for spectral output across the Thames Estuary, and writes the
updated setup.

Also renames template.sw to NorthSea.sw for clarity (no test references).
@ecomodeller
ecomodeller marked this pull request as draft March 28, 2026 15:50
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.

1 participant