forked from NOAA-EMC/GDASApp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into feature/ss_180
* origin/develop: Turn on OMA diagnostics after JEDI minimization (NOAA-EMC#1274) Adding AHI and SEVIRI satwnd thinning, enrolling AHI-H9, SEVIRI-M9, SEVIRI-M10 (NOAA-EMC#1263) add ctest to create yaml for lgetkf observer ctest (NOAA-EMC#1272) add soca fix yaml file for 1deg (NOAA-EMC#1270) Fix to marine post and archiving (NOAA-EMC#1266) Add JPSSRR sea-ice product to ioda converter (NOAA-EMC#1259) enable atmospheric lgetkf ctests to run in combined and split modes (NOAA-EMC#1262)
- Loading branch information
Showing
28 changed files
with
1,882 additions
and
5 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
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
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
Submodule jcb-gdas
updated
6 files
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
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,25 @@ | ||
# TODO(AFE): make resolution dependent | ||
mkdir: | ||
- "{{ DATA }}/INPUT" | ||
###################################### | ||
# fix files to copy | ||
###################################### | ||
copy: | ||
- ["{{ SOCA_INPUT_FIX_DIR }}/rossrad.nc", "{{ DATA }}/rossrad.nc"] | ||
- ["{{ SOCA_INPUT_FIX_DIR }}/field_table", "{{ DATA }}/field_table"] | ||
- ["{{ SOCA_INPUT_FIX_DIR }}/diag_table", "{{ DATA }}/diag_table"] | ||
- ["{{ SOCA_INPUT_FIX_DIR }}/MOM_input", "{{ DATA }}/MOM_input"] | ||
- ["{{ SOCA_INPUT_FIX_DIR }}/INPUT/grid_spec.nc", "{{ DATA }}/INPUT/grid_spec.nc"] | ||
- ["{{ SOCA_INPUT_FIX_DIR }}/INPUT/hycom1_75_800m.nc", "{{ DATA }}/INPUT/hycom1_75_800m.nc"] | ||
- ["{{ SOCA_INPUT_FIX_DIR }}/INPUT/layer_coord.nc", "{{ DATA }}/INPUT/layer_coord.nc"] | ||
- ["{{ SOCA_INPUT_FIX_DIR }}/INPUT/ocean_hgrid.nc", "{{ DATA }}/INPUT/ocean_hgrid.nc"] | ||
- ["{{ SOCA_INPUT_FIX_DIR }}/INPUT/ocean_mosaic.nc", "{{ DATA }}/INPUT/ocean_mosaic.nc"] | ||
- ["{{ SOCA_INPUT_FIX_DIR }}/INPUT/topog.nc", "{{ DATA }}/INPUT/topog.nc"] | ||
- ["{{ SOCA_INPUT_FIX_DIR }}/INPUT/vgrid_75_2m.nc", "{{ DATA }}/INPUT/vgrid_75_2m.nc"] | ||
- ["{{ SOCA_INPUT_FIX_DIR }}/INPUT/KH_background_2d.nc", "{{ DATA }}/INPUT/KH_background_2d.nc"] | ||
- ["{{ SOCA_INPUT_FIX_DIR }}/INPUT/tidal_amplitude.nc", "{{ DATA }}/INPUT/tidal_amplitude.nc"] | ||
- ["{{ SOCA_INPUT_FIX_DIR }}/INPUT/interpolate_zgrid_40L.nc", "{{ DATA }}/INPUT/interpolate_zgrid_40L.nc"] | ||
- ["{{ SOCA_INPUT_FIX_DIR }}/INPUT/interpolate_zgrid_46L.nc", "{{ DATA }}/INPUT/interpolate_zgrid_46L.nc"] | ||
- ["{{ SOCA_INPUT_FIX_DIR }}/INPUT/topo_edits_011818.nc", "{{ DATA }}/INPUT/topo_edits_011818.nc"] | ||
- ["{{ SOCA_INPUT_FIX_DIR }}/INPUT/MOM_channels_SPEAR", "{{ DATA }}/INPUT/MOM_channels_SPEAR"] | ||
- ["{{ SOCA_INPUT_FIX_DIR }}/INPUT/seawifs_1998-2006_smoothed_2X.nc", "{{ DATA }}/INPUT/seawifs_1998-2006_smoothed_2X.nc"] |
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
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
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,122 @@ | ||
#! /usr/bin/env bash | ||
|
||
set -x | ||
bindir=$1 | ||
srcdir=$2 | ||
|
||
# Set g-w HOMEgfs | ||
topdir=$(cd "$(dirname "$(readlink -f -n "${bindir}" )" )/../../.." && pwd -P) | ||
export HOMEgfs=$topdir | ||
|
||
# Set variables for ctest | ||
export PSLOT=gdas_test | ||
export EXPDIR=$bindir/test/atm/global-workflow/testrun/experiments/$PSLOT | ||
export PDY=20210323 | ||
export cyc=18 | ||
export CDATE=${PDY}${cyc} | ||
export ROTDIR=$bindir/test/atm/global-workflow/testrun/ROTDIRS/$PSLOT | ||
export RUN=enkfgdas | ||
export CDUMP=enkfgdas | ||
export DATAROOT=$bindir/test/atm/global-workflow/testrun/RUNDIRS/$PSLOT | ||
export COMIN_GES=${bindir}/test/atm/bkg | ||
export pid=${pid:-$$} | ||
export jobid=$pid | ||
export COMROOT=$DATAROOT | ||
export NMEM_ENS=3 | ||
export ACCOUNT=da-cpu | ||
export COM_TOP=$ROTDIR | ||
|
||
# Set GFS COM paths | ||
source "${HOMEgfs}/ush/preamble.sh" | ||
source "${HOMEgfs}/parm/config/gfs/config.com" | ||
|
||
# Set python path for workflow utilities and tasks | ||
wxflowPATH="${HOMEgfs}/ush/python" | ||
PYTHONPATH="${PYTHONPATH:+${PYTHONPATH}:}${wxflowPATH}" | ||
export PYTHONPATH | ||
|
||
# Detemine machine from config.base | ||
machine=$(echo `grep 'machine=' $EXPDIR/config.base | cut -d"=" -f2` | tr -d '"') | ||
|
||
# Set NETCDF and UTILROOT variables (used in config.base) | ||
if [[ $machine = 'HERA' ]]; then | ||
NETCDF=$( which ncdump ) | ||
export NETCDF | ||
export UTILROOT="/scratch2/NCEPDEV/ensemble/save/Walter.Kolczynski/hpc-stack/intel-18.0.5.274/prod_util/1.2.2" | ||
elif [[ $machine = 'ORION' || $machine = 'HERCULES' ]]; then | ||
ncdump=$( which ncdump ) | ||
NETCDF=$( echo "${ncdump}" | cut -d " " -f 3 ) | ||
export NETCDF | ||
export UTILROOT=/work2/noaa/da/python/opt/intel-2022.1.2/prod_util/1.2.2 | ||
fi | ||
|
||
# Set date variables for previous cycle | ||
GDATE=`date +%Y%m%d%H -d "${CDATE:0:8} ${CDATE:8:2} - 6 hours"` | ||
gPDY=$(echo $GDATE | cut -c1-8) | ||
gcyc=$(echo $GDATE | cut -c9-10) | ||
GDUMP="gdas" | ||
|
||
# Set file prefixes | ||
gprefix=$GDUMP.t${gcyc}z | ||
oprefix=$GDUMP.t${cyc}z | ||
|
||
# Generate COM variables from templates | ||
RUN=${GDUMP} YMD=${PDY} HH=${cyc} declare_from_tmpl -rx COM_OBS | ||
RUN=${GDUMP} YMD=${gPDY} HH=${gcyc} declare_from_tmpl -rx \ | ||
COM_ATMOS_ANALYSIS_PREV:COM_ATMOS_ANALYSIS_TMPL \ | ||
|
||
# Link observations | ||
dpath=gdas.$PDY/$cyc/obs | ||
mkdir -p $COM_OBS | ||
flist="amsua_n19.$CDATE sondes.$CDATE" | ||
for file in $flist; do | ||
ln -fs $GDASAPP_TESTDATA/lowres/$dpath/${oprefix}.${file}.nc4 $COM_OBS/${oprefix}.${file}.nc | ||
done | ||
|
||
# Link radiance bias correction files | ||
dpath=gdas.$gPDY/$gcyc/analysis/atmos | ||
mkdir -p $COM_ATMOS_ANALYSIS_PREV | ||
flist="amsua_n19.satbias amsua_n19.satbias_cov" | ||
for file in $flist; do | ||
ln -fs $GDASAPP_TESTDATA/lowres/$dpath/$gprefix.${file}.nc4 $COM_ATMOS_ANALYSIS_PREV/$gprefix.${file}.nc | ||
done | ||
flist="amsua_n19.tlapse.txt" | ||
for file in $flist; do | ||
ln -fs $GDASAPP_TESTDATA/lowres/$dpath/$gprefix.$file $COM_ATMOS_ANALYSIS_PREV/$gprefix.$file | ||
done | ||
|
||
# Link member atmospheric background on tiles and atmf006 | ||
dpath=enkfgdas.$gPDY/$gcyc | ||
for imem in $(seq 1 $NMEM_ENS); do | ||
memchar="mem"$(printf %03i $imem) | ||
|
||
MEMDIR=${memchar} RUN=${RUN} YMD=${gPDY} HH=${gcyc} declare_from_tmpl -x \ | ||
COM_ATMOS_HISTORY_PREV_ENS:COM_ATMOS_HISTORY_TMPL \ | ||
COM_ATMOS_RESTART_PREV_ENS:COM_ATMOS_RESTART_TMPL | ||
COM_ATMOS_RESTART_PREV_DIRNAME_ENS=$(dirname $COM_ATMOS_RESTART_PREV_ENS) | ||
|
||
source=$GDASAPP_TESTDATA/lowres/$dpath/$memchar/model/atmos/history | ||
target=$COM_ATMOS_HISTORY_PREV_ENS | ||
mkdir -p $target | ||
rm -rf $target/enkfgdas.t${gcyc}z.atmf006.nc | ||
ln -fs $source/enkfgdas.t${gcyc}z.atmf006.nc $target/ | ||
|
||
source=$GDASAPP_TESTDATA/lowres/$dpath/$memchar/model/atmos/history | ||
target=$COM_ATMOS_HISTORY_PREV_ENS | ||
flist=("cubed_sphere_grid_atmf006.nc" "cubed_sphere_grid_sfcf006.nc") | ||
for file in "${flist[@]}"; do | ||
rm -rf $target/enkf${gprefix}.${file} | ||
ln -fs $source/enkf${gprefix}.${file} $target/ | ||
done | ||
done | ||
|
||
# Set lobsdiag_forenkf=.true. to run letkf as separate observer and solver jobs | ||
# NOTE: atmensanlinit creates input yaml for atmensanlobs and atmensanlsol jobs | ||
cp $EXPDIR/config.base_lobsdiag_forenkf_true $EXPDIR/config.base | ||
|
||
# Execute j-job | ||
if [[ $machine = 'HERA' || $machine = 'ORION' || $machine = 'HERCULES' ]]; then | ||
sbatch --ntasks=1 --account=$ACCOUNT --qos=batch --time=00:10:00 --export=ALL --wait --output=atmensanlinit-%j.out ${HOMEgfs}/jobs/JGLOBAL_ATMENS_ANALYSIS_INITIALIZE | ||
else | ||
${HOMEgfs}/jobs/JGLOBAL_ATMENS_ANALYSIS_INITIALIZE | ||
fi |
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
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
Oops, something went wrong.