-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UFS-Coastal Input File Generation Scripts for Workflow #11
Comments
@josephzhang8 , @feiye-vims , @saeed-moghimi-noaa , @SorooshMani-NOAA , As we're integrating PySCHISM functionality into UFS-Coastal and other operational systems, I believe we should discuss the future development and maintenance of PySCHISM. Some discussion points:
Would appreciate your insights on the best path forward for development and operational support. |
@mansurjisan Let me know if scripts are ready to port into workflow. |
Thx @mansurjisan. Currently VIMS team is maintaining pySCHISM, but due to sever manpower shortage we were only able to do bug fixes in the past years or so. Development of new capabilities is out of question. I would appreciate it if other teams can take charge. |
@josephzhang8 I remember we had this discussion about PySCHISM vs PyLibs a while ago. We understand that it's not feasible to maintain two separate packages which do the same thing in the long run, especially given the developer availability; so we wanted to make sure we understand what the plans are for PySCHISM and PyLibs, and if we, for example, need to switch to PyLibs more instead of SCHISM. If I remember correctly, at some point you mentioned VIMS wants to keep PySCHISM for its downloading capabilities, while PyLibs is better for its setup capabilities. We just wanted to double check before either side invest more time and energy (i.e. scripting) on one or the other tool. |
It's not easy to merge the 2 packages due to very different starting points:
I personally use both depending on what tasks I want to accomplish. For model setup using HYCOM, atmos forcing, I use pySCHISM as it's more developed in those areas. I use pyLibs (schismview, schismcheck, pload) to viz inputs/outputs and also load from DEMs and generating b.c. part for hgrid. I'm sure there are other usages for either tool that I have not used. It'd be good to have a meeting involving developers of the two tools. I did that a few years ago and the consensus was that it's premature to discuss merging. pyLibs developer has been reluctant to add HYCOM and atmos capabilities if doing so would mean he has to add dependencies; at the moment pyLibs has a very small core lib that proved to be powerful for what we are doing. Maybe you all have good ideas in this regard. |
Hi @uturuncoglu , the script to generate the boundary condition for SCHISM is ready to be used within UFS-Coastal workflow. The script is located here: https://github.com/mansurjisan/UFS-Coastal-Inputs/blob/main/scripts/coastal_ike_shinnecock_atm2sch/gen_bctides.py Also, i attached a PDF file at the end of this comment: #11 (comment) We can talk about it more during our Monday meeting. |
@mansurjisan Okay. Let me try to use it under workflow. I'll update you soon. |
Thanks @uturuncoglu . I forgot to mention that the script requires to have the TPXO data located in /home/$username/.local/share/tpxo directory. Please give it a try and let me know if any additional changes need to be made. |
I've developed a script to generate meteorological forcing for UFS-Coastal data atmospheric cap using the pySCHISM library. While the script successfully downloads and processes GFS and HRRR data from AWS, I discovered a limitation for historical test cases:
The AWS archive only contains:
Alternative data sources for historical cases:
I plan to extend the script to include ERA5 data download functionality for historical cases in the next update. The current script is available at: Usage examples: # HRRR data
python download_met.py --start-date "2025-01-03 12:00" --rnday 1 --model hrrr --var uwind vwind prmsl --hgrid ../../data/hgrid.gr3
# GFS data
python download_met.py --start-date "2025-01-03 12:00" --rnday 1 --model gfs --var uwind vwind prmsl --hgrid ../../data/hgrid.gr3
# For Grib2 data format
python download_met.py --start-date "2025-01-03 12:00" --rnday 1 --model gfs --format grib2
--var uwind vwind prmsl --hgrid ../../data/hgrid.gr3 |
There is a script for ERA5 under examples/Sflux. It requires users to download a key from ECMWF site. |
@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:
Data Sources:
Automated Processing:
Usage
Required Files
Dependencies
schism_bc_in_ufs_coastal.pdf
The text was updated successfully, but these errors were encountered: