Skip to content
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

Write a simple driver for the verify application #1345

Open
guillaumevernieres opened this issue Oct 23, 2024 · 1 comment · May be fixed by #1373
Open

Write a simple driver for the verify application #1345

guillaumevernieres opened this issue Oct 23, 2024 · 1 comment · May be fixed by #1373
Assignees
Labels

Comments

@guillaumevernieres
Copy link
Contributor

Start with something simple like this (untested):

#!/bin/bash

# Check if the right number of arguments is passed
if [ "$#" -ne 7 ]; then
    echo "Usage: $0 COM_OCEAN_ANALYSIS COM_ICE_HISTORY_PREV COM_OCEAN_HISTORY_PREV cyc RUN HOMEgfs"
    exit 1
fi

# Assign command-line arguments to environment variables
export COM_OCEAN_ANALYSIS=$1
export COM_ICE_HISTORY_PREV=$2
export COM_OCEAN_HISTORY_PREV=$3
export cyc=$4
export RUN=$5
export HOMEgfs=$6

# Optional: Print the environment variables for debugging purposes
echo "COM_OCEAN_ANALYSIS=${COM_OCEAN_ANALYSIS}"
echo "COM_ICE_HISTORY_PREV=${COM_ICE_HISTORY_PREV}"
echo "COM_OCEAN_HISTORY_PREV=${COM_OCEAN_HISTORY_PREV}"
echo "cyc=${cyc}"
echo "RUN=${RUN}"
echo "HOMEgfs=${HOMEgfs}"

# Run the Python utility script
python3 /pathto/exgdas_global_marine_analysis_vrfy.py

then figure out how to sbatch that task without the failures that @JohnSteffen-NOAA reported.

@apchoiCMD
Copy link
Collaborator

Tested with similar script and confirmed writing plots but dealing with some modules

/scratch1/NCEPDEV/da/Mindo.Choi/sandbox/marine_vrfy/gdas.20210826/00/analysis/ocean/vrfy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants