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

Modify ROTDIR setting #434

Merged

Conversation

WenMeng-NOAA
Copy link
Collaborator

Modify RODIR setting in JGLOBAL_ATMOS_NCEPPOST.

@WenMeng-NOAA
Copy link
Collaborator Author

@KateFriedman-NOAA In JGLOBAL_ATMOS_NCEPPOST, both COMIN/COMOUT point to ROTDIR as root path,
export COMIN=${COMIN:-$ROTDIR/$RUN.$PDY/$cyc/$COMPONENT}
export COMOUT=${COMOUT:-$ROTDIR/$RUN.$PDY/$cyc/$COMPONENT}

There is no need for modifying them, right?

@KateFriedman-NOAA
Copy link
Member

@KateFriedman-NOAA In JGLOBAL_ATMOS_NCEPPOST, both COMIN/COMOUT point to ROTDIR as root path, export COMIN=${COMIN:-$ROTDIR/$RUN.$PDY/$cyc/$COMPONENT} export COMOUT=${COMOUT:-$ROTDIR/$RUN.$PDY/$cyc/$COMPONENT}

There is no need for modifying them, right?

Correct, you don't need to modify those COM* lines now that ROTDIR is being set with compath.py at the configuration level.

Copy link
Member

@KateFriedman-NOAA KateFriedman-NOAA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change to remove the RUN_ENVIR=nco ROTDIR block looks good, thanks @WenMeng-NOAA!

@WenMeng-NOAA
Copy link
Collaborator Author

@KateFriedman-NOAA In JGLOBAL_ATMOS_NCEPPOST:

if [ $RUN_ENVIR = "nco" ]; then
    export COMIN=${COMIN:-$ROTDIR/$RUN.$PDY/$cyc/$COMPONENT}
    export COMOUT=${COMOUT:-$ROTDIR/$RUN.$PDY/$cyc/$COMPONENT}
else
    export COMIN="$ROTDIR/$CDUMP.$PDY/$cyc/$COMPONENT"
    export COMOUT="$ROTDIR/$CDUMP.$PDY/$cyc/$COMPONENT"
fi

Do you think they could be unified as the following for both NCO and EMC parallel run:

export COMIN=${COMIN:-$ROTDIR/$RUN.$PDY/$cyc/$COMPONENT}
export COMOUT=${COMOUT:-$ROTDIR/$RUN.$PDY/$cyc/$COMPONENT}

@KateFriedman-NOAA
Copy link
Member

@KateFriedman-NOAA In JGLOBAL_ATMOS_NCEPPOST:

if [ $RUN_ENVIR = "nco" ]; then
    export COMIN=${COMIN:-$ROTDIR/$RUN.$PDY/$cyc/$COMPONENT}
    export COMOUT=${COMOUT:-$ROTDIR/$RUN.$PDY/$cyc/$COMPONENT}
else
    export COMIN="$ROTDIR/$CDUMP.$PDY/$cyc/$COMPONENT"
    export COMOUT="$ROTDIR/$CDUMP.$PDY/$cyc/$COMPONENT"
fi

Do you think they could be unified as the following for both NCO and EMC parallel run:

export COMIN=${COMIN:-$ROTDIR/$RUN.$PDY/$cyc/$COMPONENT}
export COMOUT=${COMOUT:-$ROTDIR/$RUN.$PDY/$cyc/$COMPONENT}

Yes, actually I think that would be fine. Please made that consolidation and I can double check it's fine in my current test. Thanks!

@KateFriedman-NOAA
Copy link
Member

@WenMeng-NOAA I made that change locally in my clone and am rerunning some gdaspost jobs. It looks like it's working fine:

Kate.Friedman@dlogin03> grep COMIN= logs/2021122700/gdaspost001.log                                      
0.183 + COMIN=/lfs/h2/emc/ptmp/Kate.Friedman/comrot/testcyc768l/com/gfs/v16.2/gdas.20211227/00/atmos
COMIN=/lfs/h2/emc/ptmp/Kate.Friedman/comrot/testcyc768l/com/gfs/v16.2/gdas.20211227/00/atmos
Kate.Friedman@dlogin03> grep COMOUT= logs/2021122700/gdaspost001.log                                       
0.183 + COMOUT=/lfs/h2/emc/ptmp/Kate.Friedman/comrot/testcyc768l/com/gfs/v16.2/gdas.20211227/00/atmos
COMOUT=/lfs/h2/emc/ptmp/Kate.Friedman/comrot/testcyc768l/com/gfs/v16.2/gdas.20211227/00/atmos

Here is my git diff:

Kate.Friedman@dlogin03:/lfs/h2/emc/global/noscrub/Kate.Friedman/git/feature-ops-wcoss2/sorc/gfs_post.fd> git diff jobs/JGLOBAL_ATMOS_NCEPPOST
diff --git a/jobs/JGLOBAL_ATMOS_NCEPPOST b/jobs/JGLOBAL_ATMOS_NCEPPOST
index 66c8135..d134ec0 100755
--- a/jobs/JGLOBAL_ATMOS_NCEPPOST
+++ b/jobs/JGLOBAL_ATMOS_NCEPPOST
@@ -65,9 +65,6 @@ export g2tmpl_ver=${g2tmpl_ver:-v1.5.0}
 export CDATE=${CDATE:-${PDY}${cyc}}
 export CDUMP=${CDUMP:-${RUN:-"gfs"}}
 export COMPONENT=${COMPONENT:-atmos}
-if [ $RUN_ENVIR = "nco" ]; then
-    export ROTDIR=${COMROOT:?}/$NET/$envir
-fi
 
 
 ##############################################
@@ -81,13 +78,8 @@ export FIXCRTM=${CRTM_FIX:-${HOMECRTM}/fix}
 export PARMpost=${PARMpost:-$HOMEgfs/parm/post}
 export INLINE_POST=${WRITE_DOPOST:-".false."}
 
-if [ $RUN_ENVIR = "nco" ]; then
-    export COMIN=${COMIN:-$ROTDIR/$RUN.$PDY/$cyc/$COMPONENT}
-    export COMOUT=${COMOUT:-$ROTDIR/$RUN.$PDY/$cyc/$COMPONENT}
-else
-    export COMIN="$ROTDIR/$CDUMP.$PDY/$cyc/$COMPONENT"
-    export COMOUT="$ROTDIR/$CDUMP.$PDY/$cyc/$COMPONENT"
-fi
+export COMIN=${COMIN:-$ROTDIR/$RUN.$PDY/$cyc/$COMPONENT}
+export COMOUT=${COMOUT:-$ROTDIR/$RUN.$PDY/$cyc/$COMPONENT}
 [[ ! -d $COMOUT ]] && mkdir -m 775 -p $COMOUT
 
 if [ $RUN = gfs ];then

@WenMeng-NOAA
Copy link
Collaborator Author

@KateFriedman-NOAA Great! Please review my new commit and let me know if you have more comments. Thanks!

Copy link
Member

@KateFriedman-NOAA KateFriedman-NOAA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks @WenMeng-NOAA !

@WenMeng-NOAA WenMeng-NOAA merged commit 45feeb0 into NOAA-EMC:release/gfs_v16 Jan 12, 2022
@WenMeng-NOAA
Copy link
Collaborator Author

@KateFriedman-NOAA The tag upp_v8.1.0 was recreated.

@KateFriedman-NOAA
Copy link
Member

Awesome, thanks @WenMeng-NOAA !

@WenMeng-NOAA WenMeng-NOAA deleted the gfsv16_nco_wcoss2_1 branch March 2, 2022 14:53
EricJames-NOAA pushed a commit to EricJames-NOAA/UPP that referenced this pull request Dec 14, 2022
Added scripts to combine surface and atmosphere grib2 files when uses
GEFS forecast as initial condition on wcoss2.

Co-authored-by: ming hu <ming.hu@clogin03.cactus.wcoss2.ncep.noaa.gov>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants