Skip to content

Commit

Permalink
adress comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yichengt900 authored Dec 20, 2024
1 parent 77c3b1f commit 4c6531a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tools/boundary/glorys_obc_workflow/mom6_obc_workflow.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/bin/bash
set -eu

# Load required modules and environments
source $MODULESHOME/init/sh
module load miniforge
conda activate /nbhome/role.medgrp/.conda/envs/uwtools || { echo "Error activating conda environment. Exiting."; exit 1; }

set -eu

# Helper functions
print_usage() {
echo "Usage: $0 START_DATE END_DATE [--ncrcat] [--adjust-timestamps]"
Expand Down Expand Up @@ -85,11 +86,11 @@ cat <<EOF > config.yaml
_WALLTIME: "1440"
_NPROC: "1"
_EMAIL_NOTIFACTION: "fail"
_USER_EMAIL: "yi-cheng.teng@noaa.gov"
_USER_EMAIL: "$USER@noaa.gov"
_LOG_PATH: "./log/$CURRENT_DATE/%x.o%j"
_UDA_GLORYS_DIR: "/uda/Global_Ocean_Physics_Reanalysis/global/daily"
_UDA_GLORYS_FILENAME: "mercatorglorys12v1_gl12_mean"
_REGIONAL_GLORYS_ARCHIVE: "/archive/ynt/datasets/glorys"
_REGIONAL_GLORYS_ARCHIVE: "/archive/$USER/datasets/glorys"
_BASIN_NAME: "NWA12"
_OUTPUT_PREFIX: "GLORYS"
_VARS: "thetao so uo vo zos"
Expand All @@ -100,7 +101,7 @@ _LAT_MAX: "60.0"
_PYTHON_SCRIPT: "$PYTHON_SCRIPT"
first_date: "$START_DATE"
last_date: "$END_DATE"
glorys_dir: "/archive/ynt/datasets/glorys/NWA12/filled"
glorys_dir: "/archive/$USER/datasets/glorys/NWA12/filled"
output_dir: "./outputs"
hgrid: './ocean_hgrid.nc'
ncrcat_names:
Expand Down

0 comments on commit 4c6531a

Please sign in to comment.