-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Feature: UFS Replay * Some changes to documentation. Work in progress * Some doc changes * Some more doc changes * Some more doc changes * Some more doc changes * Some more doc changes * Some more doc changes * Some more doc changes * Some more doc changes * Some more doc changes * Some more doc changes * Some more doc changes * Some more doc changes * Some more doc changes * Some more doc changes * Some more doc changes * Some more doc changes * Some more doc changes * Some cleanup * Documentation changes for UFS-replay * Added YAML configuration to create SCM environment * Doc changes for YAML environment files * Initial commit * New CI test for ufs-replay * New CI test for ufs-replay * New CI test for ufs-replay * New CI test for ufs-replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update CI test for UFS replay * Update to CI * Update to CI * Update to CI * Update to CI * Update to CI * Update to CI * Update to CI * Update to CI * Update to CI * CI tests working! * Add consistent event triggers for CI tests * Address reviewers comments * Update techguide PDF
- Loading branch information
dustinswales
authored
May 2, 2023
1 parent
eb73bab
commit b89634d
Showing
15 changed files
with
4,761 additions
and
1,724 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: CI test to create SCM UFS-replay cases from UWM regression tests | ||
|
||
on: [pull_request,workflow_dispatch] | ||
|
||
jobs: | ||
run_scm_ufs_replay: | ||
|
||
# The type of runner that the job will run on | ||
runs-on: ubuntu-22.04 | ||
defaults: | ||
run: | ||
shell: bash -el {0} | ||
|
||
# Environmental variables | ||
env: | ||
dir_rt_cache: /home/runner/ufs_rts | ||
SCM_ROOT: ${{ github.workspace }} | ||
|
||
steps: | ||
|
||
####################################################################################### | ||
# Checkout SCM code, setup python. | ||
####################################################################################### | ||
|
||
- name: Checkout SCM. | ||
uses: actions/checkout@v3 | ||
|
||
- name: Initialize SCM submodules. | ||
run: git submodule update --init --recursive | ||
|
||
- name: Update system packages. | ||
run: sudo apt-get update | ||
|
||
- name: Cache conda | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/conda_pkgs_dir | ||
key: conda-pkgs | ||
|
||
- name: Setup python. | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: env_ufsreplay | ||
environment-file: environment-ufsreplay.yml | ||
use-only-tar-bz2: true | ||
auto-activate-base: true | ||
auto-update-conda: true | ||
|
||
####################################################################################### | ||
# Create UFS-replay case for SCM using UWM Regression Tests | ||
####################################################################################### | ||
|
||
- name: Cache UWM regression test output. | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${dir_rt_cache} | ||
key: ufs-rt-files | ||
|
||
- name: Download UWM regression test output from NCAR-DTC FTP site, if not cached. | ||
run: | | ||
if test ! -d "${dir_rt_cache}"; then | ||
mkdir -p ${dir_rt_cache} && cd ${dir_rt_cache} | ||
wget -q ftp://ftp.rap.ucar.edu:/pub/ccpp-scm/ufs_rts_scmreplay_ci.tar | ||
tar -xvf ufs_rts_scmreplay_ci.tar | ||
ls ${dir_rt_cache} | ||
fi | ||
- name: Create UFS-replay case. | ||
run: | | ||
cd ${SCM_ROOT}/scm/etc/scripts/ | ||
./UFS_forcing_ensemble_generator.py -d ${dir_rt_cache}/ --C_RES 192 -dt 360 -n control_c192 -lons 300 -lats 34 -sc | ||
####################################################################################### | ||
# Done | ||
####################################################################################### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: env_ufsreplay | ||
|
||
dependencies: | ||
- conda-forge::python=3.8.5 | ||
- conda-forge::netcdf4 | ||
- conda-forge::f90nml | ||
- conda-forge::xarray | ||
- conda-forge::numpy | ||
- conda-forge::shapely | ||
- conda-forge::xesmf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
name: scm_py37 | ||
|
||
dependencies: | ||
- conda-forge::python=3.7 | ||
- conda-forge::netcdf4 | ||
- conda-forge::f90nml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.