Skip to content

UFS-Coastal Input File Generation Scripts for Workflow  #11

@mansurjisan

Description

@mansurjisan

@uturuncoglu , @janahaddad

UFS-Coastal Input File Generation Scripts for Workflow

Collection of scripts for generating input files for UFS-Coastal

Repository Link

UFS-Coastal-Inputs on GitHub

This is the continuation of this ticket oceanmodeling/ufs-weather-model#127 (comment)

Script update:

SCHISM Boundary Condition Generator (gen_bctides.py)

I updated SCHISM's boundary condition generation script (gen_bctides.py) to be used
within the UFS-Coastal for Ike Shinnecock and Duck, NC regression test cases.

Workflow diagram:

workflow

Features

  • Multiple Boundary Types:

    • Type 3: Tidal boundaries (using TPXO or FES2014)
    • Type 4: Time-elevation boundaries (from elev.th file or HYCOM data)
  • Data Sources:

    • Local time series files (elev.th)
    • HYCOM oceanographic data for:
      • Water elevation (elev2D.th.nc)
      • Temperature (TEM_3D.th.nc)
      • Salinity (SAL_3D.th.nc)
  • Automated Processing:

    • Automatic boundary detection from hgrid.ll
    • Flexible grid file format support
    • some error handling features

Usage

  1. Tidal Boundary for Ike Shinnecock Testcase:
python gen_bctides.py ../../data/hgrid.ll 2008-08-23 20 \
    --bc_mode tidal \
    --bc_type 3 \
    --constituents Q1,O1,P1,K1,N2,M2,S2,K2,Mm,Mf,M4,MN4,MS4,2N2,S1 \
    --database tpxo \
    --cutoff_depth 40 \
    --earth_tidal_potential Y
  1. Time Series Boundary for Duck, NC Testcase (requires TPXO tide database access):
python gen_bctides.py ../../data/hgrid.ll 2012-10-27 2.333 \
    --bc_mode time-elev \
    --bc_type 4 \
    --elev_th elev.th \
    --vgrid vgrid.in
  1. HYCOM Boundary:
python gen_bctides.py hgrid.ll 2024-01-01 10 \
    --bc_mode time-elev \
    --bc_type 4 \
    --elev_source hycom \
    --gen_bc elev,temp,salt \
    --vgrid vgrid.in

Required Files

  • hgrid.ll: SCHISM horizontal grid file
  • vgrid.in: Vertical grid file (for time-elevation mode)
  • elev.th: Time series file (if using time series source)

Dependencies

  • pyschism
  • netCDF4
  • numpy

schism_bc_in_ufs_coastal.pdf

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions