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

Add logic for running offline IODA tools. #600

Open
wants to merge 7 commits into
base: rrfs-mpas-jedi
Choose a base branch
from
14 changes: 12 additions & 2 deletions scripts/exrrfs_ioda_bufr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,19 @@ for yaml in ${yaml_list[@]}; do
${MPI_RUN_CMD} ${execfile} ${yaml}
# some data may not be available at all cycles, so we don't check whether bufr2ioda.x runs successfully
done
ls ./ioda*nc

# run offline IODA tools
${cpreq} ${HOMErrfs}/sorc/RDASApp/rrfs-test/IODA/offline_add_var_to_ioda.py .
ioda_files=$(ls ioda*nc)
for ioda_file in ${ioda_files[@]}; do
./offline_add_var_to_ioda.py -o ${ioda_file}
base_name=$(basename "$ioda_file" .nc)
mv ${base_name}_llp.nc ${base_name}.nc
done

# file count sanity check and copy to COMOUT
ls ./ioda*nc
if (( $? == 0 )); then
# copy ioda*.nc to COMOUT
${cpreq} ${DATA}/ioda*.nc ${COMOUT}/ioda_bufr/
else
echo "WARNING: no ioda files generated."
Expand Down