Skip to content

Commit ec00db9

Browse files
authored
Merge pull request #441 from GEOS-ESM/feature/aelakkra/m21c_precip-correction-clim
Updates for M21C to use a new option for precip correction
2 parents f738da9 + 42a246b commit ec00db9

7 files changed

Lines changed: 36 additions & 10 deletions

File tree

‎components.yaml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ NCEP_Shared:
2828
GMAO_Shared:
2929
local: ./src/Shared/@GMAO_Shared
3030
remote: ../GMAO_Shared.git
31-
tag: v1.7.2+R21C_v1.0.5
31+
tag: v1.7.2+R21C_v1.0.6
3232
develop: R21C
3333

3434
GMAOpyobs:
@@ -65,13 +65,13 @@ FMS:
6565
GEOSana_GridComp:
6666
local: ./src/Components/@GEOSana_GridComp
6767
remote: ../GEOSana_GridComp.git
68-
tag: v1.5.5-R21C-7
68+
tag: v1.5.5-R21C-8
6969
develop: R21C
7070

7171
GEOSgcm_GridComp:
7272
local: ./src/Components/@GEOSgcm_GridComp
7373
remote: ../GEOSgcm_GridComp.git
74-
tag: v1.18.1+R21C_v1.0.4
74+
tag: v1.18.1+R21C_v1.0.5
7575
sparse: ./config/GEOSgcm_GridComp.sparse
7676
develop: R21C
7777

@@ -195,7 +195,7 @@ RRTMGP:
195195
GEOSgcm_App:
196196
local: ./src/Applications/@GEOSgcm_App
197197
remote: ../GEOSgcm_App.git
198-
tag: v1.9.6+R21C_v1.0.6
198+
tag: v1.9.6+R21C_v1.0.7
199199
develop: R21C
200200

201201
Ocean-LETKF:

‎src/Applications/GEOSdas_App/AGCMrc.pm‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ sub ed_g5agcm_rc {
305305
# uncomment precipation force except when specified
306306
# -------------------------------------------------
307307
if ( $pcp_forced ) {
308-
$uncomment{"#PRECIP_FILE"} = 1;
308+
$uncomment{"#PRECIP_FILE:"} = 1;
309309
$uncomment{"#USE_PP_TAPER"} = 1;
310310
}
311311

‎src/Applications/GEOSdas_App/GEOSdas.csm‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4004,7 +4004,18 @@ endif
40044004
echo "s/>>>REGULAR_REPLAY<<</#/1" >> sed_file
40054005
echo "s/>>>ITER<<</$Viter_/1" >> sed_file
40064006
echo "s/>>>ANA0YYYYMMDDHHMN<<</$ana0date/1" >> sed_file
4007-
4007+
4008+
# Update Precip Correction option for MERRA-21C
4009+
# to transition from IMERG to scaled_clim
4010+
set hh = `echo $nhmsb | cut -c 1-2`
4011+
set check_date = ${nymdb}${hh}
4012+
grep '^PRECIP_FILE:' ./AGCM.rc.tmpl > /dev/null
4013+
set pcp_uncommented = $status
4014+
4015+
if ( ${check_date} >= 2025093021 && $pcp_uncommented == 0 ) then
4016+
echo 's/^PRECIP_FILE:/#PRECIP_FILE:/' >> sed_file
4017+
echo 's/^#PRECIP_FILE_CLIMSCALE:/PRECIP_FILE_CLIMSCALE:/' >> sed_file
4018+
endif
40084019
if ( -e AGCM_${Viter_}.rc.tmpl ) then
40094020
sed -f sed_file ./AGCM_${Viter_}.rc.tmpl > ./AGCM.rc
40104021
else

‎src/Applications/GEOSdas_App/fvsetup‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9997,8 +9997,10 @@ sub init_agcm_rc {
99979997
# default is based on NCA settings (but line is commented since we don't want this done)
99989998
if ( $pcp_forced ) {
99999999
$pcp_fntmpl = "d5_merra/Y%y4/M%m2/d5_merra.tavg1_2d_lfo_Nx_corr.%y4%m2%d2_%h230z.nc";
10000-
if (r21c) { $pcp_fntmpl = "precip_corr_R21C/diag/Y%y4/M%m2/R21C.tavg_1hr_prcpcorr_c360_sfc.%y4%m2%d2_%h230.nc4"};
10000+
if (r21c) { $pcp_fntmpl = "precip_corr_R21C/diag/Y%y4/M%m2/R21C.tavg_1hr_prcpcorr_c360_sfc.%y4%m2%d2_%h230.nc4"};
10001+
if (r21c) { $pcp_sclim_fntmpl = "precip_corr_R21C/clim//M21CtoIMGv7BF.precip_clim_scale.8888%m2%d2.nc4"};
1000110002
} else {
10003+
$pcp_sclim_fntmpl = "/dev/null ";
1000210004
if ( $nymd < 19890101 ) {
1000310005
$pcp_fntmpl = "d5_merra_jan79/diag/Y%y4/d5_merra_jan79.tavg1_2d_lfo_Nx_corr.%y4%m2%d2_%h230z.nc";
1000410006
} elsif ( $nymd > 19890101 && $nymd < 19980101 ) {
@@ -10008,7 +10010,7 @@ sub init_agcm_rc {
1000810010
}
1000910011
}
1001010012
AGCM_label_subst("\@PRECIP_FILE", "$pcp_fntmpl");
10011-
10013+
AGCM_label_subst("\@PRECIP_FILE_CLIMSCALE", "$pcp_sclim_fntmpl");
1001210014
}
1001310015
1001410016
#=======================================================================

‎src/Applications/NCEP_Etc/NCEP_enkf/scripts/gmao/etc/AGCM.rc.tmpl‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,7 @@ PCHEM::OX
473473
# Possible REPLAY PRECIP Files:
474474
# -----------------------------
475475
#PRECIP_FILE: ExtData/PCP/@PRECIP_FILE
476+
#PRECIP_FILE_CLIMSCALE: ExtData/PCP/@PRECIP_FILE_CLIMSCALE
476477
#
477478
# Latitudinal Tapering between 42.5 and 62.5 degrees mimics NCEP's approach of using GCM-based precip at high latitudes
478479
# --------------------

‎src/Applications/NCEP_Etc/NCEP_enkf/scripts/gmao/gcm_ensset_rc.csh‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,17 @@ cd $ENSWORK/$member
345345
echo "s/>>>COUPLED<<</#/1" >> sed_file
346346
echo "s/>>>MEMBER<<</${member}/1" >> sed_file
347347
echo "s/>>>MEMIDX<<</${memidx}/1" >> sed_file
348+
349+
# Update Precip Correction option for MERRA-21C
350+
# to transition from IMERG to scaled_clim
351+
set hh = `echo $nhmsb | cut -c 1-2`
352+
set check_date = ${nymdb}${hh}
353+
set pcp_forced = `grep -c '^PRECIP_FILE:' ./AGCM.rc.tmpl`
354+
355+
if ( ${check_date} >= 2025093021 && ${pcp_forced} > 0 ) then
356+
echo 's/^PRECIP_FILE:/#PRECIP_FILE:/' >> sed_file
357+
echo 's/^#PRECIP_FILE_CLIMSCALE:/PRECIP_FILE_CLIMSCALE:/' >> sed_file
358+
endif
348359
/bin/rm -f ./AGCM.rc
349360
sed -f sed_file $myagcmrc > ./AGCM.rc
350361

‎src/Applications/NCEP_Etc/NCEP_enkf/scripts/gmao/setup_atmens.pl‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,9 @@ sub ed_agcm_rc {
536536
}
537537

538538
if ( $dopcpcor ) {
539-
if($rcd =~ /\#PRECIP_FILE/) {$rcd=~ s/\#PRECIP_FILE/PRECIP_FILE/g; }
540-
if($rcd =~ /\@PRECIP_FILE/) {$rcd=~ s/\@PRECIP_FILE/precip_corr_R21C\/diag\/Y%y4\/M%m2\/R21C.tavg_1hr_prcpcorr_c360_sfc.%y4%m2%d2_%h230.nc4/g; }
539+
if($rcd =~ /\#PRECIP_FILE\b/) {$rcd=~ s/\#PRECIP_FILE\b/PRECIP_FILE/g; }
540+
if($rcd =~ /\@PRECIP_FILE\b/) {$rcd=~ s/\@PRECIP_FILE\b/precip_corr_R21C\/diag\/Y%y4\/M%m2\/R21C.tavg_1hr_prcpcorr_c360_sfc.%y4%m2%d2_%h230.nc4/g; }
541+
if($rcd =~ /\@PRECIP_FILE_CLIMSCALE\b/) {$rcd=~ s/\@PRECIP_FILE_CLIMSCALE\b/precip_corr_R21C\/clim\/M21CtoIMGv7BF.precip_clim_scale.8888%m2%d2.nc4/g; }
541542
if($rcd =~ /\#USE_PP_TAPER/) {$rcd=~ s/\#USE_PP_TAPER/USE_PP_TAPER/g; }
542543
}
543544

0 commit comments

Comments
 (0)