-
Notifications
You must be signed in to change notification settings - Fork 33
aigefs: add a new component and prep scripts #915
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
Open
GwenChen-NOAA
wants to merge
4
commits into
NOAA-EMC:feature/add_ai
Choose a base branch
from
GwenChen-NOAA:aigefs
base: feature/add_ai
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,45 @@ | ||
| #PBS -N jevs_prep_aigefs_atmos | ||
| #PBS -j oe | ||
| #PBS -S /bin/bash | ||
| #PBS -q dev | ||
| #PBS -A VERF-DEV | ||
| #PBS -l walltime=01:30:00 | ||
| #PBS -l place=vscatter,select=2:ncpus=48:mem=400GB:prepost=true | ||
| #PBS -l debug=true | ||
|
|
||
| set -x | ||
| export OMP_NUM_THREADS=1 | ||
| export HOMEevs=/lfs/h2/emc/vpppg/noscrub/${USER}/EVS | ||
| source $HOMEevs/versions/run.ver | ||
|
|
||
| export envir=prod | ||
| export NET=evs | ||
| export STEP=prep | ||
| export COMPONENT=aigefs | ||
| export RUN=atmos | ||
| export MODELNAME=aigefs | ||
|
|
||
| module reset | ||
| module load prod_envir/${prod_envir_ver} | ||
| source $HOMEevs/dev/modulefiles/$COMPONENT/${COMPONENT}_${STEP}.sh | ||
|
|
||
| evs_ver_2d=$(echo $evs_ver | cut -d'.' -f1-2) | ||
|
|
||
| export vhr=00 | ||
|
|
||
| export COMIN=/lfs/h2/emc/vpppg/noscrub/${USER}/$NET/$evs_ver_2d | ||
| export COMOUT=/lfs/h2/emc/vpppg/noscrub/${USER}/$NET/$evs_ver_2d | ||
| export DATAROOT=/lfs/h2/emc/stmp/${USER}/evs/$envir/tmp | ||
|
|
||
| export job=${PBS_JOBNAME:-jevs_${STEP}_${COMPONENT}_${RUN}} | ||
| export jobid=$job.${PBS_JOBID:-$$} | ||
|
|
||
| export KEEPDATA=NO | ||
| export SENDMAIL=NO | ||
| export MAILTO='alicia.bentley@noaa.gov,lichuan.chen@noaa.gov' | ||
|
|
||
| if [ -z "$MAILTO" ]; then | ||
| echo "MAILTO variable is not defined. Exiting without continuing." | ||
| else | ||
| ${HOMEevs}/jobs/JEVS_PREP_AIGEFS | ||
| fi | ||
This file contains hidden or 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,28 @@ | ||
| #!/bin/bash | ||
| # modulefile for EVS aigefs component, prep step | ||
|
|
||
| set -x | ||
|
|
||
| module load PrgEnv-intel/${PrgEnvintel_ver} | ||
| module load intel/${intel_ver} | ||
| module load ve/evs/${ve_evs_ver} | ||
| module load gsl/${gsl_ver} | ||
| module load prod_util/${prod_util_ver} | ||
| module load libjpeg/${libjpeg_ver} | ||
| module load libpng/${libpng_ver} | ||
| module load zlib/${zlib_ver} | ||
| module load jasper/${jasper_ver} | ||
| module load udunits/${udunits_ver} | ||
| module load grib_util/${grib_util_ver} | ||
| module load wgrib2/${wgrib2_ver} | ||
| module load cray-pals/${craypals_ver} | ||
| module load cfp/${cfp_ver} | ||
| module load cdo/${cdo_ver} | ||
| module load met/${met_ver} | ||
| module load metplus/${metplus_ver} | ||
| module load bufr/${bufr_ver} | ||
|
|
||
| module list | ||
|
|
||
AndrewBenjamin-NOAA marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| set -x | ||
|
|
||
This file contains hidden or 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 hidden or 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,65 @@ | ||
| #PBS -N evs_prep_aigefs_atmos | ||
| #PBS -j oe | ||
| #PBS -S /bin/bash | ||
| #PBS -q %QUEUE% | ||
| #PBS -A %PROJ%-%PROJENVIR% | ||
| #PBS -l walltime=01:30:00 | ||
| #PBS -l place=vscatter,select=2:ncpus=48:mem=400GB:prepost=true | ||
| #PBS -l debug=true | ||
|
|
||
| export model=evs | ||
| %include <head.h> | ||
| %include <envir-p1.h> | ||
|
|
||
| ############################################################ | ||
| # Load modules | ||
| ############################################################ | ||
| set -x | ||
| export STEP=prep | ||
| export COMPONENT=aigefs | ||
|
|
||
| module load PrgEnv-intel/${PrgEnvintel_ver} | ||
| module load intel/${intel_ver} | ||
| module load ve/evs/${ve_evs_ver} | ||
| module load gsl/${gsl_ver} | ||
| module load libjpeg/${libjpeg_ver} | ||
| module load libpng/${libpng_ver} | ||
| module load zlib/${zlib_ver} | ||
| module load jasper/${jasper_ver} | ||
| module load udunits/${udunits_ver} | ||
| module load grib_util/${grib_util_ver} | ||
| module load wgrib2/${wgrib2_ver} | ||
| module load cray-pals/${craypals_ver} | ||
| module load cfp/${cfp_ver} | ||
| module load cdo/${cdo_ver} | ||
| module load met/${met_ver} | ||
| module load metplus/${metplus_ver} | ||
| module load bufr/${bufr_ver} | ||
AliciaBentley-NOAA marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| module list | ||
|
|
||
| ############################################################ | ||
| # Specify environment variables | ||
| ############################################################ | ||
| if [ -n "%VHR:%" ]; then | ||
| export vhr=${vhr:-%VHR:%} | ||
| else | ||
| export vhr=00 | ||
| fi | ||
| export OMP_NUM_THREADS=1 | ||
| export NET=evs | ||
| export RUN=atmos | ||
| export MODELNAME=aigefs | ||
|
|
||
| ############################################################ | ||
| # Execute j-job | ||
| ############################################################ | ||
| ${HOMEevs}/jobs/JEVS_PREP_AIGEFS | ||
| if [ $? -ne 0 ]; then | ||
| ecflow_client --msg="***JOB ${ECF_NAME} ERROR RUNNING J-SCRIPT ***" | ||
| ecflow_client --abort | ||
| exit | ||
| fi | ||
|
|
||
| %include <tail.h> | ||
| %manual | ||
| %end | ||
This file contains hidden or 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,109 @@ | ||
| #!/bin/bash | ||
| # JOB card created for aigefs prep jobs | ||
| # Updated by L. Gwen Chen (lichuan.chen@noaa.gov), 10/03/2025 | ||
|
|
||
| ######################################## | ||
| # Preliminary data setup step | ||
| ######################################## | ||
| set -x | ||
|
|
||
| #################################### | ||
| # SET SHELL PROCESSING VARIABLES | ||
| #################################### | ||
| export PS4='$SECONDS + ' | ||
| date | ||
|
|
||
| ########################################################### | ||
| # obtain unique LSF id (jobid) and make temp directories | ||
| ########################################################### | ||
| export pid=$$ | ||
| export DATA=${DATA:-${DATAROOT:?}/${jobid:?}} | ||
| mkdir -p $DATA | ||
| cd $DATA | ||
|
|
||
| #################################### | ||
| # Define NET/RUN variables | ||
| #################################### | ||
| export NET=${NET:-evs} | ||
| export STEP=${STEP:-prep} | ||
| export COMPONENT=${COMPONENT:-aigefs} | ||
| export RUN=${RUN:-atmos} | ||
| export MODELNAME=${MODELNAME:-aigefs} | ||
| export MODNAM=echo $MODELNAME | tr '[a-z]' '[A-Z]' | ||
| export OBTYPE=${OBTYPE:-GDAS} | ||
|
|
||
| #################################### | ||
| # Set EVS directories | ||
| #################################### | ||
| export HOMEevs=${HOMEevs:-${PACKAGEROOT}/${NET}.${evs_ver}} | ||
| export EXECevs=${EXECevs:-${HOMEevs}/exec} | ||
| export PARMevs=${PARMevs:-${HOMEevs}/parm} | ||
| export SCRIPTSevs=${SCRIPTSevs:-${HOMEevs}/scripts} | ||
| export USHevs=${USHevs:-${HOMEevs}/ush} | ||
| export FIXevs=${FIXevs:-${HOMEevs}/fix} | ||
|
|
||
| ########################################## | ||
| # Run setpdy and initialize PDY variables | ||
| ########################################## | ||
| export vhr=${vhr:-00} | ||
| export cycle=${cycle:-t${vhr}z} | ||
| setpdy.sh 20 | ||
| . ./PDY | ||
|
|
||
| export INITDATE=${INITDATE:-${PDYm2}} | ||
|
|
||
| ################################################## | ||
| ### SENDCOM - Copy Files From TMPDIR to $COMOUT | ||
| ### SENDDBN - Issue DBNet Client Calls | ||
| ### SENDECF - Flag Events on ecFLOW | ||
| ### SENDMAIL - Send email if file is missing | ||
| ################################################## | ||
| export SENDCOM=${SENDCOM:-YES} | ||
| export SENDDBN=${SENDDBN:-YES} | ||
| export SENDECF=${SENDECF:-YES} | ||
| export SENDMAIL=${SENDMAIL:-NO} | ||
|
|
||
| #################################### | ||
| # Define COMIN/COMOUT variables | ||
| #################################### | ||
| export COMIN=${COMIN:-$(compath.py ${envir}/com/${NET}/${evs_ver})} | ||
| export COMINgfs=${COMINgfs:-$(compath.py $envir/com/gfs/${gfs_ver})} | ||
| export COMINgefs=${COMINgefs:-$(compath.py ${envir}/com/gefs/${gefs_ver})} | ||
| export COMINaigefs=${COMINaigefs:-$(compath.py ${envir}/com/aigefs/${aigefs_ver})} | ||
| export COMINhgefs=${COMINhgefs:-$(compath.py ${envir}/com/hgefs/${hgefs_ver})} | ||
| export DCOMIN=${DCOMIN:-${DCOMROOT}} | ||
| export COMINccpa=${COMINccpa:-$(compath.py $envir/com/ccpa/${ccpa_ver})} | ||
| export COMINobsproc=${COMINobsproc:-$(compath.py $envir/com/obsproc/${obsproc_ver})} | ||
| export DCOMINnohrsc=${DCOMINnohrsc:-$DCOMROOT} | ||
| export DCOMINosi_saf=${DCOMINosi_saf:-$DCOMROOT} | ||
| export DCOMINghrsst=${DCOMINghrsst:-$DCOMROOT} | ||
|
|
||
| export EVSINgefs=${COMIN}/${STEP}/${COMPONENT}/atmos.${INITDATE}/gefs | ||
| export EVSINaigefs=${COMIN}/${STEP}/${COMPONENT}/atmos.${INITDATE}/aigefs | ||
| export EVSINhgefs=${COMIN}/${STEP}/${COMPONENT}/atmos.${INITDATE}/hgefs | ||
|
|
||
| export COMOUT=${COMOUT:-$(compath.py -o $NET/${evs_ver})}/$STEP/${COMPONENT} | ||
| mkdir -p $COMOUT | ||
|
|
||
| export COMOUTgefs=${COMOUTgefs:-${COMOUT}/${RUN}.${INITDATE}/gefs} | ||
| export COMOUTaigefs=${COMOUTaigefs:-${COMOUT}/${RUN}.${INITDATE}/aigefs} | ||
| export COMOUThgefs=${COMOUThgefs:-${COMOUT}/${RUN}.${INITDATE}/hgefs} | ||
| export COMOUTcompleted=${COMOUTcompleted:-${COMOUT}/${RUN}.${INITDATE}/completed} | ||
|
|
||
| if [ "${RUN}" == "atmos" ]; then | ||
| mkdir -p $COMOUTgefs $COMOUTaigefs $COMOUThgefs $COMOUTcompleted | ||
| fi | ||
|
|
||
| #################################### | ||
| # Execute the script | ||
| #################################### | ||
| $HOMEevs/scripts/${STEP}/${COMPONENT}/exevs_${STEP}_${COMPONENT}_${RUN}.sh | ||
| export err=$?; err_chk | ||
|
|
||
| if [ "${KEEPDATA}" != "YES" ]; then | ||
| cd ${DATAROOT} | ||
| rm -rf ${DATA} | ||
| fi | ||
|
|
||
| date | ||
|
|
37 changes: 37 additions & 0 deletions
37
parm/metplus_config/prep/aigefs/atmos_grid2grid/PcpCombine_fcstAIGEFS_APCP24h.conf
This file contains hidden or 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,37 @@ | ||
| [config] | ||
|
|
||
| LOG_METPLUS = | ||
|
|
||
| OUTPUT_BASE = {ENV[output_base]} | ||
|
|
||
| PROCESS_LIST = PCPCombine | ||
|
|
||
| LOOP_BY = INIT | ||
| INIT_TIME_FMT = %Y%m%d%H | ||
| INIT_BEG = {ENV[vday]}{ENV[ihour]} | ||
| INIT_END = {ENV[vday]}{ENV[ihour]} | ||
| INIT_INCREMENT = 1H | ||
|
|
||
| LEAD_SEQ = {ENV[lead]} | ||
|
|
||
| STAT_ANALYSIS_RUNTIME_FREQ = RUN_ONCE_PER_INIT_OR_VALID | ||
|
|
||
| FCST_PCP_COMBINE_CONSTANT_INIT = True | ||
| FCST_PCP_COMBINE_RUN = True | ||
| FCST_PCP_COMBINE_METHOD = ADD | ||
|
|
||
| FCST_PCP_COMBINE_INPUT_DIR = {ENV[modelpath]} | ||
| FCST_PCP_COMBINE_INPUT_TEMPLATE = {ENV[model]}.ens{ENV[mb]}.t{init?fmt=%H}z.grid3.f{lead?fmt=%3H}.grib2 | ||
|
|
||
| FCST_PCP_COMBINE_OUTPUT_DIR = {OUTPUT_BASE} | ||
| FCST_PCP_COMBINE_OUTPUT_TEMPLATE = {ENV[model]}.ens{ENV[mb]}.t{init?fmt=%H}z.grid3.24h.f{lead?fmt=%3H}.nc | ||
|
|
||
| FCST_IS_PROB = false | ||
|
|
||
| FCST_PCP_COMBINE_INPUT_DATATYPE = GRIB | ||
| FCST_PCP_COMBINE_INPUT_ACCUMS = 6H | ||
| FCST_PCP_COMBINE_INPUT_NAMES = APCP | ||
| FCST_PCP_COMBINE_INPUT_LEVELS = A06 | ||
|
|
||
| FCST_PCP_COMBINE_OUTPUT_ACCUM = 24H | ||
| FCST_PCP_COMBINE_OUTPUT_NAME = |
37 changes: 37 additions & 0 deletions
37
parm/metplus_config/prep/aigefs/atmos_grid2grid/PcpCombine_fcstGEFS_APCP24h.conf
This file contains hidden or 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,37 @@ | ||
| [config] | ||
|
|
||
| LOG_METPLUS = | ||
|
|
||
| OUTPUT_BASE = {ENV[output_base]} | ||
|
|
||
| PROCESS_LIST = PCPCombine | ||
|
|
||
| LOOP_BY = INIT | ||
| INIT_TIME_FMT = %Y%m%d%H | ||
| INIT_BEG = {ENV[vday]}{ENV[ihour]} | ||
| INIT_END = {ENV[vday]}{ENV[ihour]} | ||
| INIT_INCREMENT = 1H | ||
|
|
||
| LEAD_SEQ = {ENV[lead]} | ||
|
|
||
| STAT_ANALYSIS_RUNTIME_FREQ = RUN_ONCE_PER_INIT_OR_VALID | ||
|
|
||
| FCST_PCP_COMBINE_CONSTANT_INIT = True | ||
| FCST_PCP_COMBINE_RUN = True | ||
| FCST_PCP_COMBINE_METHOD = ADD | ||
|
|
||
| FCST_PCP_COMBINE_INPUT_DIR = {ENV[modelpath]} | ||
| FCST_PCP_COMBINE_INPUT_TEMPLATE = {ENV[model]}.ens{ENV[mb]}.t{init?fmt=%H}z.grid3.f{lead?fmt=%3H}.grib2 | ||
|
|
||
| FCST_PCP_COMBINE_OUTPUT_DIR = {OUTPUT_BASE} | ||
| FCST_PCP_COMBINE_OUTPUT_TEMPLATE = {ENV[model]}.ens{ENV[mb]}.t{init?fmt=%H}z.grid3.24h.f{lead?fmt=%3H}.nc | ||
|
|
||
| FCST_IS_PROB = false | ||
|
|
||
| FCST_PCP_COMBINE_INPUT_DATATYPE = GRIB | ||
| FCST_PCP_COMBINE_INPUT_ACCUMS = 6H | ||
| FCST_PCP_COMBINE_INPUT_NAMES = APCP | ||
| FCST_PCP_COMBINE_INPUT_LEVELS = A06 | ||
|
|
||
| FCST_PCP_COMBINE_OUTPUT_ACCUM = 24H | ||
| FCST_PCP_COMBINE_OUTPUT_NAME = |
37 changes: 37 additions & 0 deletions
37
parm/metplus_config/prep/aigefs/atmos_grid2grid/PcpCombine_fcstHGEFS_APCP24h.conf
This file contains hidden or 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,37 @@ | ||
| [config] | ||
|
|
||
| LOG_METPLUS = | ||
|
|
||
| OUTPUT_BASE = {ENV[output_base]} | ||
|
|
||
| PROCESS_LIST = PCPCombine | ||
|
|
||
| LOOP_BY = INIT | ||
| INIT_TIME_FMT = %Y%m%d%H | ||
| INIT_BEG = {ENV[vday]}{ENV[ihour]} | ||
| INIT_END = {ENV[vday]}{ENV[ihour]} | ||
| INIT_INCREMENT = 1H | ||
|
|
||
| LEAD_SEQ = {ENV[lead]} | ||
|
|
||
| STAT_ANALYSIS_RUNTIME_FREQ = RUN_ONCE_PER_INIT_OR_VALID | ||
|
|
||
| FCST_PCP_COMBINE_CONSTANT_INIT = True | ||
| FCST_PCP_COMBINE_RUN = True | ||
| FCST_PCP_COMBINE_METHOD = ADD | ||
|
|
||
| FCST_PCP_COMBINE_INPUT_DIR = {ENV[modelpath]} | ||
| FCST_PCP_COMBINE_INPUT_TEMPLATE = {ENV[model]}.ens{ENV[mb]}.t{init?fmt=%H}z.grid3.f{lead?fmt=%3H}.grib2 | ||
|
|
||
| FCST_PCP_COMBINE_OUTPUT_DIR = {OUTPUT_BASE} | ||
| FCST_PCP_COMBINE_OUTPUT_TEMPLATE = {ENV[model]}.ens{ENV[mb]}.t{init?fmt=%H}z.grid3.24h.f{lead?fmt=%3H}.nc | ||
|
|
||
| FCST_IS_PROB = false | ||
|
|
||
| FCST_PCP_COMBINE_INPUT_DATATYPE = GRIB | ||
| FCST_PCP_COMBINE_INPUT_ACCUMS = 6H | ||
| FCST_PCP_COMBINE_INPUT_NAMES = APCP | ||
| FCST_PCP_COMBINE_INPUT_LEVELS = A06 | ||
|
|
||
| FCST_PCP_COMBINE_OUTPUT_ACCUM = 24H | ||
| FCST_PCP_COMBINE_OUTPUT_NAME = |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think
cd $PBS_O_WORKDIRis needed after the set -x so that the job launches in the directory from which is was submitted?CC: @malloryprow @AliciaBentley-NOAA
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure it's necessary. Global_ens driver scripts do not have it.