Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 8 additions & 70 deletions gcm_forecast.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -563,37 +563,10 @@ endif
set yearc = `echo $nymdc | cut -c1-4`
set yearf = `echo $nymdf | cut -c1-4`

# Which ExtData are we using
set EXTDATA2G_TRUE = `grep -i '^\s*USE_EXTDATA2G:\s*\.TRUE\.' CAP.rc | wc -l`

# Select proper AMIP GOCART Emission RC Files
# -------------------------------------------
if( ${EMISSIONS} == AMIP_EMISSIONS) then
if( $EXTDATA2G_TRUE == 0 ) then
set AMIP_Transition_Date = 20000301

# Before 2000-03-01, we need to use AMIP.20C which has different
# emissions (HFED instead of QFED) valid before 2000-03-01. Note
# that if you make a change to anything in $EXPDIR/RC/AMIP or
# $EXPDIR/RC/AMIP.20C, you might need to make a change in the other
# directory to be consistent. Some files in AMIP.20C are symlinks to
# that in AMIP but others are not.

if( $nymdc < ${AMIP_Transition_Date} ) then
set AMIP_EMISSIONS_DIRECTORY = $EXPDIR/RC/AMIP.20C
if( $nymdf > ${AMIP_Transition_Date} ) then
set nymdf = ${AMIP_Transition_Date}
set oldstring = `grep '^\s*END_DATE:' CAP.rc`
set newstring = "END_DATE: $nymdf $nhmsf"
/bin/mv CAP.rc CAP.tmp
cat CAP.tmp | sed -e "s?$oldstring?$newstring?g" > CAP.rc
endif
else
set AMIP_EMISSIONS_DIRECTORY = $EXPDIR/RC/AMIP
endif
else
set AMIP_EMISSIONS_DIRECTORY = $EXPDIR/RC/AMIP
endif
set AMIP_EMISSIONS_DIRECTORY = $EXPDIR/RC/AMIP

if( $AGCM_LM == 72 ) then
cp ${AMIP_EMISSIONS_DIRECTORY}/*.rc .
Expand Down Expand Up @@ -630,53 +603,18 @@ if( $AGCM_LM != 72 ) then
endif
endif

# Rename big ExtData files that are not needed
# --------------------------------------------
set SC_TRUE = `grep -i '^\s*ENABLE_STRATCHEM:\s*\.TRUE\.' GEOS_ChemGridComp.rc | wc -l`
if ( $SC_TRUE == 0 && -e StratChem_ExtData.rc ) /bin/mv StratChem_ExtData.rc StratChem_ExtData.rc.NOT_USED
set GMI_TRUE = `grep -i '^\s*ENABLE_GMICHEM:\s*\.TRUE\.' GEOS_ChemGridComp.rc | wc -l`
if ( $GMI_TRUE == 0 && -e GMI_ExtData.rc ) /bin/mv GMI_ExtData.rc GMI_ExtData.rc.NOT_USED
set GCC_TRUE = `grep -i '^\s*ENABLE_GEOSCHEM:\s*\.TRUE\.' GEOS_ChemGridComp.rc | wc -l`
if ( $GCC_TRUE == 0 && -e GEOSCHEMchem_ExtData.rc ) /bin/mv GEOSCHEMchem_ExtData.rc GEOSCHEMchem_ExtData.rc.NOT_USED
set CARMA_TRUE = `grep -i '^\s*ENABLE_CARMA:\s*\.TRUE\.' GEOS_ChemGridComp.rc | wc -l`
if ( $CARMA_TRUE == 0 && -e CARMAchem_GridComp_ExtData.rc ) /bin/mv CARMAchem_GridComp_ExtData.rc CARMAchem_GridComp_ExtData.rc.NOT_USED
set DNA_TRUE = `grep -i '^\s*ENABLE_DNA:\s*\.TRUE\.' GEOS_ChemGridComp.rc | wc -l`
if ( $DNA_TRUE == 0 && -e DNA_ExtData.rc ) /bin/mv DNA_ExtData.rc DNA_ExtData.rc.NOT_USED
set ACHEM_TRUE = `grep -i '^\s*ENABLE_ACHEM:\s*\.TRUE\.' GEOS_ChemGridComp.rc | wc -l`
if ( $ACHEM_TRUE == 0 && -e ACHEM_ExtData.rc ) /bin/mv ACHEM_ExtData.rc ACHEM_ExtData.rc.NOT_USED

@MP_TURN_OFF_WSUB_EXTDATA# 1MOM and GFDL microphysics do not use WSUB_CLIM
@MP_TURN_OFF_WSUB_EXTDATA# -------------------------------------------------
if ($EXTDATA2G_TRUE == 0 ) then
@MP_TURN_OFF_WSUB_EXTDATA/bin/mv WSUB_ExtData.rc WSUB_ExtData.tmp
@MP_TURN_OFF_WSUB_EXTDATAcat WSUB_ExtData.tmp | sed -e '/^WSUB_CLIM/ s#ExtData.*#/dev/null#' > WSUB_ExtData.rc
else
@MP_TURN_OFF_WSUB_EXTDATA/bin/mv WSUB_ExtData.yaml WSUB_ExtData.tmp
@MP_TURN_OFF_WSUB_EXTDATAcat WSUB_ExtData.tmp | sed -e '/collection:/ s#WSUB_SWclim.*#/dev/null#' > WSUB_ExtData.yaml
endif
@MP_TURN_OFF_WSUB_EXTDATA/bin/mv WSUB_ExtData.yaml WSUB_ExtData.tmp
@MP_TURN_OFF_WSUB_EXTDATAcat WSUB_ExtData.tmp | sed -e '/collection:/ s#WSUB_SWclim.*#/dev/null#' > WSUB_ExtData.yaml
@MP_TURN_OFF_WSUB_EXTDATA/bin/rm WSUB_ExtData.tmp

# Generate the complete ExtData.rc
# --------------------------------
if(-e ExtData.rc ) /bin/rm -f ExtData.rc
set extdata_files = `/bin/ls -1 *_ExtData.rc`
# Construct extdata.yaml list for all components based on RC files
# ----------------------------------------------------------------
$GEOSBIN/construct_extdata_yaml_list.py GEOS_ChemGridComp.rc

# Switch to MODIS v6.1 data after Nov 2021
if( $EXTDATA2G_TRUE == 0 ) then
set MODIS_Transition_Date = 20211101
if ( ${EMISSIONS} == OPS_EMISSIONS && ${MODIS_Transition_Date} <= $nymdc ) then
cat $extdata_files | sed 's|\(qfed2.emis_.*\).006.|\1.061.|g' > ExtData.rc
else
cat $extdata_files > ExtData.rc
endif
endif

if( $EXTDATA2G_TRUE == 1 ) then

$GEOSBIN/construct_extdata_yaml_list.py GEOS_ChemGridComp.rc
touch ExtData.rc

endif
# Keep this due to MAPL expectation of an ExtData.rc file, but it is not actually used for anything
touch ExtData.rc

@RRTMGP_RADIATION # Move GOCART to use RRTMGP Bands
@RRTMGP_RADIATION # -------------------------------
Expand Down
48 changes: 8 additions & 40 deletions gcm_regress.j
Original file line number Diff line number Diff line change
Expand Up @@ -297,23 +297,11 @@ set date = `cat cap_restart`
set nymd0 = $date[1]
set nhms0 = $date[2]

set EXTDATA2G_TRUE = `grep -i '^\s*USE_EXTDATA2G:\s*\.TRUE\.' CAP.rc | wc -l`

# Select proper AMIP GOCART Emission RC Files
# -------------------------------------------
setenv EMISSIONS @EMISSIONS
if( @EMISSIONS == AMIP_EMISSIONS ) then
if( $EXTDATA2G_TRUE == 0 ) then
set AMIP_Transition_Date = 20000301

if( $nymd0 < ${AMIP_Transition_Date} ) then
set AMIP_EMISSIONS_DIRECTORY = $EXPDIR/RC/AMIP.20C
else
set AMIP_EMISSIONS_DIRECTORY = $EXPDIR/RC/AMIP
endif
else
set AMIP_EMISSIONS_DIRECTORY = $EXPDIR/RC/AMIP
endif
set AMIP_EMISSIONS_DIRECTORY = $EXPDIR/RC/AMIP

if( $LM == 72 ) then
cp ${AMIP_EMISSIONS_DIRECTORY}/*.rc .
Expand All @@ -331,36 +319,16 @@ endif

@MP_TURN_OFF_WSUB_EXTDATA# 1MOM and GFDL microphysics do not use WSUB_CLIM
@MP_TURN_OFF_WSUB_EXTDATA# -------------------------------------------------
if ($EXTDATA2G_TRUE == 0 ) then
@MP_TURN_OFF_WSUB_EXTDATA/bin/mv WSUB_ExtData.rc WSUB_ExtData.tmp
@MP_TURN_OFF_WSUB_EXTDATAcat WSUB_ExtData.tmp | sed -e '/^WSUB_CLIM/ s#ExtData.*#/dev/null#' > WSUB_ExtData.rc
else
@MP_TURN_OFF_WSUB_EXTDATA/bin/mv WSUB_ExtData.yaml WSUB_ExtData.tmp
@MP_TURN_OFF_WSUB_EXTDATAcat WSUB_ExtData.tmp | sed -e '/collection:/ s#WSUB_SWclim.*#/dev/null#' > WSUB_ExtData.yaml
endif
@MP_TURN_OFF_WSUB_EXTDATA/bin/mv WSUB_ExtData.yaml WSUB_ExtData.tmp
@MP_TURN_OFF_WSUB_EXTDATAcat WSUB_ExtData.tmp | sed -e '/collection:/ s#WSUB_SWclim.*#/dev/null#' > WSUB_ExtData.yaml
@MP_TURN_OFF_WSUB_EXTDATA/bin/rm WSUB_ExtData.tmp

# Generate the complete ExtData.rc
# --------------------------------
if(-e ExtData.rc ) /bin/rm -f ExtData.rc
set extdata_files = `/bin/ls -1 *_ExtData.rc`
# Construct extdata.yaml list for all components based on RC files
# ----------------------------------------------------------------
$GEOSBIN/construct_extdata_yaml_list.py GEOS_ChemGridComp.rc

# Switch to MODIS v6.1 data after Nov 2021
if( $EXTDATA2G_TRUE == 0 ) then
set MODIS_Transition_Date = 20211101
if ( ${EMISSIONS} == OPS_EMISSIONS && ${MODIS_Transition_Date} <= $nymd0 ) then
cat $extdata_files | sed 's|\(qfed2.emis_.*\).006.|\1.061.|g' > ExtData.rc
else
cat $extdata_files > ExtData.rc
endif
endif

if( $EXTDATA2G_TRUE == 1 ) then

$GEOSBIN/construct_extdata_yaml_list.py GEOS_ChemGridComp.rc
touch ExtData.rc

endif
# Keep this due to MAPL expectation of an ExtData.rc file, but it is not actually used for anything
touch ExtData.rc

if( $LM != 72 ) then
set files = `/bin/ls *.yaml`
Expand Down
81 changes: 8 additions & 73 deletions gcm_run.j
Original file line number Diff line number Diff line change
Expand Up @@ -743,37 +743,10 @@ if( @OCEANtag != DE0360xPE0180 ) then
endif
endif

# Which ExtData are we using
set EXTDATA2G_TRUE = `grep -i '^\s*USE_EXTDATA2G:\s*\.TRUE\.' CAP.rc | wc -l`

# Select proper AMIP GOCART Emission RC Files
# -------------------------------------------
if( ${EMISSIONS} == AMIP_EMISSIONS ) then
if( $EXTDATA2G_TRUE == 0 ) then
set AMIP_Transition_Date = 20000301

# Before 2000-03-01, we need to use AMIP.20C which has different
# emissions (HFED instead of QFED) valid before 2000-03-01. Note
# that if you make a change to anything in $EXPDIR/RC/AMIP or
# $EXPDIR/RC/AMIP.20C, you might need to make a change in the other
# directory to be consistent. Some files in AMIP.20C are symlinks to
# that in AMIP but others are not.

if( $nymdc < ${AMIP_Transition_Date} ) then
set AMIP_EMISSIONS_DIRECTORY = $EXPDIR/RC/AMIP.20C
if( $nymdf > ${AMIP_Transition_Date} ) then
set nymdf = ${AMIP_Transition_Date}
set oldstring = `grep '^\s*END_DATE:' CAP.rc`
set newstring = "END_DATE: $nymdf $nhmsf"
/bin/mv CAP.rc CAP.tmp
cat CAP.tmp | sed -e "s?$oldstring?$newstring?g" > CAP.rc
endif
else
set AMIP_EMISSIONS_DIRECTORY = $EXPDIR/RC/AMIP
endif
else
set AMIP_EMISSIONS_DIRECTORY = $EXPDIR/RC/AMIP
endif
set AMIP_EMISSIONS_DIRECTORY = $EXPDIR/RC/AMIP

if( $AGCM_LM == 72 ) then
cp ${AMIP_EMISSIONS_DIRECTORY}/*.rc .
Expand Down Expand Up @@ -836,53 +809,18 @@ if( $AGCM_LM != 72 ) then

endif

# Rename big ExtData files that are not needed
# --------------------------------------------
set SC_TRUE = `grep -i '^\s*ENABLE_STRATCHEM:\s*\.TRUE\.' GEOS_ChemGridComp.rc | wc -l`
if ( $SC_TRUE == 0 && -e StratChem_ExtData.rc ) /bin/mv StratChem_ExtData.rc StratChem_ExtData.rc.NOT_USED
set GMI_TRUE = `grep -i '^\s*ENABLE_GMICHEM:\s*\.TRUE\.' GEOS_ChemGridComp.rc | wc -l`
if ( $GMI_TRUE == 0 && -e GMI_ExtData.rc ) /bin/mv GMI_ExtData.rc GMI_ExtData.rc.NOT_USED
set GCC_TRUE = `grep -i '^\s*ENABLE_GEOSCHEM:\s*\.TRUE\.' GEOS_ChemGridComp.rc | wc -l`
if ( $GCC_TRUE == 0 && -e GEOSCHEMchem_ExtData.rc ) /bin/mv GEOSCHEMchem_ExtData.rc GEOSCHEMchem_ExtData.rc.NOT_USED
set CARMA_TRUE = `grep -i '^\s*ENABLE_CARMA:\s*\.TRUE\.' GEOS_ChemGridComp.rc | wc -l`
if ( $CARMA_TRUE == 0 && -e CARMAchem_GridComp_ExtData.rc ) /bin/mv CARMAchem_GridComp_ExtData.rc CARMAchem_GridComp_ExtData.rc.NOT_USED
set DNA_TRUE = `grep -i '^\s*ENABLE_DNA:\s*\.TRUE\.' GEOS_ChemGridComp.rc | wc -l`
if ( $DNA_TRUE == 0 && -e DNA_ExtData.rc ) /bin/mv DNA_ExtData.rc DNA_ExtData.rc.NOT_USED
set ACHEM_TRUE = `grep -i '^\s*ENABLE_ACHEM:\s*\.TRUE\.' GEOS_ChemGridComp.rc | wc -l`
if ( $ACHEM_TRUE == 0 && -e ACHEM_ExtData.rc ) /bin/mv ACHEM_ExtData.rc ACHEM_ExtData.rc.NOT_USED

@MP_TURN_OFF_WSUB_EXTDATA# 1MOM and GFDL microphysics do not use WSUB_CLIM
@MP_TURN_OFF_WSUB_EXTDATA# -------------------------------------------------
if ($EXTDATA2G_TRUE == 0 ) then
@MP_TURN_OFF_WSUB_EXTDATA/bin/mv WSUB_ExtData.rc WSUB_ExtData.tmp
@MP_TURN_OFF_WSUB_EXTDATAcat WSUB_ExtData.tmp | sed -e '/^WSUB_CLIM/ s#ExtData.*#/dev/null#' > WSUB_ExtData.rc
else
@MP_TURN_OFF_WSUB_EXTDATA/bin/mv WSUB_ExtData.yaml WSUB_ExtData.tmp
@MP_TURN_OFF_WSUB_EXTDATAcat WSUB_ExtData.tmp | sed -e '/collection:/ s#WSUB_SWclim.*#/dev/null#' > WSUB_ExtData.yaml
endif
@MP_TURN_OFF_WSUB_EXTDATA/bin/mv WSUB_ExtData.yaml WSUB_ExtData.tmp
@MP_TURN_OFF_WSUB_EXTDATAcat WSUB_ExtData.tmp | sed -e '/collection:/ s#WSUB_SWclim.*#/dev/null#' > WSUB_ExtData.yaml
@MP_TURN_OFF_WSUB_EXTDATA/bin/rm WSUB_ExtData.tmp

# Generate the complete ExtData.rc
# --------------------------------
if(-e ExtData.rc ) /bin/rm -f ExtData.rc
set extdata_files = `/bin/ls -1 *_ExtData.rc`
# Construct extdata.yaml list for all components based on RC files
# ----------------------------------------------------------------
$GEOSBIN/construct_extdata_yaml_list.py GEOS_ChemGridComp.rc

# Switch to MODIS v6.1 data after Nov 2021
if( $EXTDATA2G_TRUE == 0 ) then
set MODIS_Transition_Date = 20211101
if ( ${EMISSIONS} == OPS_EMISSIONS && ${MODIS_Transition_Date} <= $nymdc ) then
cat $extdata_files | sed 's|\(qfed2.emis_.*\).006.|\1.061.|g' > ExtData.rc
else
cat $extdata_files > ExtData.rc
endif
endif

if( $EXTDATA2G_TRUE == 1 ) then

$GEOSBIN/construct_extdata_yaml_list.py GEOS_ChemGridComp.rc
touch ExtData.rc

endif
# Keep this due to MAPL expectation of an ExtData.rc file, but it is not actually used for anything
touch ExtData.rc

@RRTMGP_RADIATION # Move GOCART to use RRTMGP Bands
@RRTMGP_RADIATION # -------------------------------
Expand Down Expand Up @@ -1011,9 +949,6 @@ if( $REPLAY_MODE == 'Exact' | $REPLAY_MODE == 'Regular' ) then
/bin/mv -f GAAS_GridComp_ExtData.yaml GAAS_GridComp_ExtData.yaml.tmpl
cat GAAS_GridComp_ExtData.yaml.tmpl | sed -e "s?das.aod_?chem/Y%y4/M%m2/${ANA_EXPID}.aod_?g" > GAAS_GridComp_ExtData.yaml

/bin/mv -f GAAS_GridComp_ExtData.rc GAAS_GridComp_ExtData.rc.tmpl
cat GAAS_GridComp_ExtData.rc.tmpl | sed -e "s?das.aod_?chem/Y%y4/M%m2/${ANA_EXPID}.aod_?g" > GAAS_GridComp_ExtData.rc

/bin/ln -sf ${ANA_LOCATION}/chem .
/bin/ln -sf ${ANA_LOCATION}/${REPLAY_FILE_TYPE} .
/bin/ln -sf ${ANA_LOCATION}/${REPLAY_FILE09_TYPE} .
Expand Down
81 changes: 8 additions & 73 deletions gcm_run.j-new_rst_approach
Original file line number Diff line number Diff line change
Expand Up @@ -678,37 +678,10 @@ if( @OCEANtag != DE0360xPE0180 ) then
endif
endif

# Which ExtData are we using
set EXTDATA2G_TRUE = `grep -i '^\s*USE_EXTDATA2G:\s*\.TRUE\.' CAP.rc | wc -l`

# Select proper AMIP GOCART Emission RC Files
# -------------------------------------------
if( ${EMISSIONS} == AMIP_EMISSIONS ) then
if( $EXTDATA2G_TRUE == 0 ) then
set AMIP_Transition_Date = 20000301

# Before 2000-03-01, we need to use AMIP.20C which has different
# emissions (HFED instead of QFED) valid before 2000-03-01. Note
# that if you make a change to anything in $EXPDIR/RC/AMIP or
# $EXPDIR/RC/AMIP.20C, you might need to make a change in the other
# directory to be consistent. Some files in AMIP.20C are symlinks to
# that in AMIP but others are not.

if( $nymdc < ${AMIP_Transition_Date} ) then
set AMIP_EMISSIONS_DIRECTORY = $EXPDIR/RC/AMIP.20C
if( $nymdf > ${AMIP_Transition_Date} ) then
set nymdf = ${AMIP_Transition_Date}
set oldstring = `grep '^\s*END_DATE:' CAP.rc`
set newstring = "END_DATE: $nymdf $nhmsf"
/bin/mv CAP.rc CAP.tmp
cat CAP.tmp | sed -e "s?$oldstring?$newstring?g" > CAP.rc
endif
else
set AMIP_EMISSIONS_DIRECTORY = $EXPDIR/RC/AMIP
endif
else
set AMIP_EMISSIONS_DIRECTORY = $EXPDIR/RC/AMIP
endif
set AMIP_EMISSIONS_DIRECTORY = $EXPDIR/RC/AMIP

if( $AGCM_LM == 72 ) then
cp ${AMIP_EMISSIONS_DIRECTORY}/*.rc .
Expand Down Expand Up @@ -757,53 +730,18 @@ if( $AGCM_LM != 72 ) then

endif

# Rename big ExtData files that are not needed
# --------------------------------------------
set SC_TRUE = `grep -i '^\s*ENABLE_STRATCHEM:\s*\.TRUE\.' GEOS_ChemGridComp.rc | wc -l`
if ( $SC_TRUE == 0 && -e StratChem_ExtData.rc ) /bin/mv StratChem_ExtData.rc StratChem_ExtData.rc.NOT_USED
set GMI_TRUE = `grep -i '^\s*ENABLE_GMICHEM:\s*\.TRUE\.' GEOS_ChemGridComp.rc | wc -l`
if ( $GMI_TRUE == 0 && -e GMI_ExtData.rc ) /bin/mv GMI_ExtData.rc GMI_ExtData.rc.NOT_USED
set GCC_TRUE = `grep -i '^\s*ENABLE_GEOSCHEM:\s*\.TRUE\.' GEOS_ChemGridComp.rc | wc -l`
if ( $GCC_TRUE == 0 && -e GEOSCHEMchem_ExtData.rc ) /bin/mv GEOSCHEMchem_ExtData.rc GEOSCHEMchem_ExtData.rc.NOT_USED
set CARMA_TRUE = `grep -i '^\s*ENABLE_CARMA:\s*\.TRUE\.' GEOS_ChemGridComp.rc | wc -l`
if ( $CARMA_TRUE == 0 && -e CARMAchem_GridComp_ExtData.rc ) /bin/mv CARMAchem_GridComp_ExtData.rc CARMAchem_GridComp_ExtData.rc.NOT_USED
set DNA_TRUE = `grep -i '^\s*ENABLE_DNA:\s*\.TRUE\.' GEOS_ChemGridComp.rc | wc -l`
if ( $DNA_TRUE == 0 && -e DNA_ExtData.rc ) /bin/mv DNA_ExtData.rc DNA_ExtData.rc.NOT_USED
set ACHEM_TRUE = `grep -i '^\s*ENABLE_ACHEM:\s*\.TRUE\.' GEOS_ChemGridComp.rc | wc -l`
if ( $ACHEM_TRUE == 0 && -e ACHEM_ExtData.rc ) /bin/mv ACHEM_ExtData.rc ACHEM_ExtData.rc.NOT_USED

@MP_TURN_OFF_WSUB_EXTDATA# 1MOM and GFDL microphysics do not use WSUB_CLIM
@MP_TURN_OFF_WSUB_EXTDATA# -------------------------------------------------
if ($EXTDATA2G_TRUE == 0 ) then
@MP_TURN_OFF_WSUB_EXTDATA/bin/mv WSUB_ExtData.rc WSUB_ExtData.tmp
@MP_TURN_OFF_WSUB_EXTDATAcat WSUB_ExtData.tmp | sed -e '/^WSUB_CLIM/ s#ExtData.*#/dev/null#' > WSUB_ExtData.rc
else
@MP_TURN_OFF_WSUB_EXTDATA/bin/mv WSUB_ExtData.yaml WSUB_ExtData.tmp
@MP_TURN_OFF_WSUB_EXTDATAcat WSUB_ExtData.tmp | sed -e '/collection:/ s#WSUB_SWclim.*#/dev/null#' > WSUB_ExtData.yaml
endif
@MP_TURN_OFF_WSUB_EXTDATA/bin/mv WSUB_ExtData.yaml WSUB_ExtData.tmp
@MP_TURN_OFF_WSUB_EXTDATAcat WSUB_ExtData.tmp | sed -e '/collection:/ s#WSUB_SWclim.*#/dev/null#' > WSUB_ExtData.yaml
@MP_TURN_OFF_WSUB_EXTDATA/bin/rm WSUB_ExtData.tmp

# Generate the complete ExtData.rc
# --------------------------------
if(-e ExtData.rc ) /bin/rm -f ExtData.rc
set extdata_files = `/bin/ls -1 *_ExtData.rc`

# Switch to MODIS v6.1 data after Nov 2021
if( $EXTDATA2G_TRUE == 0 ) then
set MODIS_Transition_Date = 20211101
if ( ${EMISSIONS} == OPS_EMISSIONS && ${MODIS_Transition_Date} <= $nymdc ) then
cat $extdata_files | sed 's|\(qfed2.emis_.*\).006.|\1.061.|g' > ExtData.rc
else
cat $extdata_files > ExtData.rc
endif
endif
# Construct extdata.yaml list for all components based on RC files
# ----------------------------------------------------------------
$GEOSBIN/construct_extdata_yaml_list.py GEOS_ChemGridComp.rc

if( $EXTDATA2G_TRUE == 1 ) then

$GEOSBIN/construct_extdata_yaml_list.py GEOS_ChemGridComp.rc
touch ExtData.rc

endif
# Keep this due to MAPL expectation of an ExtData.rc file, but it is not actually used for anything
touch ExtData.rc

@RRTMGP_RADIATION # Move GOCART to use RRTMGP Bands
@RRTMGP_RADIATION # -------------------------------
Expand Down Expand Up @@ -924,9 +862,6 @@ if( $REPLAY_MODE == 'Exact' | $REPLAY_MODE == 'Regular' ) then
/bin/mv -f GAAS_GridComp_ExtData.yaml GAAS_GridComp_ExtData.yaml.tmpl
cat GAAS_GridComp_ExtData.yaml.tmpl | sed -e "s?das.aod_?chem/Y%y4/M%m2/${ANA_EXPID}.aod_?g" > GAAS_GridComp_ExtData.yaml

/bin/mv -f GAAS_GridComp_ExtData.rc GAAS_GridComp_ExtData.rc.tmpl
cat GAAS_GridComp_ExtData.rc.tmpl | sed -e "s?das.aod_?chem/Y%y4/M%m2/${ANA_EXPID}.aod_?g" > GAAS_GridComp_ExtData.rc

/bin/ln -sf ${ANA_LOCATION}/chem .
/bin/ln -sf ${ANA_LOCATION}/${REPLAY_FILE_TYPE} .
/bin/ln -sf ${ANA_LOCATION}/${REPLAY_FILE09_TYPE} .
Expand Down
Loading