Skip to content

Commit

Permalink
remove restart options F and G #40
Browse files Browse the repository at this point in the history
  • Loading branch information
gmao-rreichle authored May 6, 2024
2 parents ea8256c + 8a97ed3 commit c4f0df5
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 119 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Removed

- Remove restart options F and G

### Deprecated

-----------------------------
Expand Down
1 change: 0 additions & 1 deletion GEOSldas_App/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ ecbuild_add_executable (

set (scripts
process_hist.csh
remap_config_ldas.py
ens_forcing/average_ensemble_forcing.py
ens_forcing/ensemble_forc.py
ens_forcing/regrid_forc.csh
Expand Down
41 changes: 26 additions & 15 deletions GEOSldas_App/ldas_setup
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ from collections import OrderedDict
from dateutil.relativedelta import relativedelta
from remap_utils import *
from remap_catchANDcn import *
from remap_config_ldas import *
from lenkf_j_template import *
"""
This script is intended to be run from any installed directory with GEOSldas.x and ldas_setup
Expand Down Expand Up @@ -881,8 +880,31 @@ class LDASsetup:
config['output']['surface']['surflay'] = dzsf
config['output']['surface']['wemin'] = wemin_out

config = remap_config_ldas( config, RESTART_str, self.rqdExeInp['RESTART_PATH'], self.rqdExeInp['RESTART_ID'])

if RESTART_str == "M" : # restart from merra2
yyyymm = int(YYYYMMDDHH[0:6])
merra2_expid = "d5124_m2_jan10"
if yyyymm < 197901 :
exit("Error. MERRA-2 data < 1979 not available\n")
elif (yyyymm < 199201):
merra2_expid = "d5124_m2_jan79"
elif (yyyymm < 200106):
merra2_expid = "d5124_m2_jan91"
elif (yyyymm < 201101):
merra2_expid = "d5124_m2_jan00"
elif (yyyymm < 202106):
merra2_expid = "d5124_m2_jan10"
# There was a rewind in MERRA2 from Jun 2021 to Sept 2021
elif (yyyymm < 202110):
merra2_expid = "d5124_m2_jun21"
config['input']['shared']['expid'] = merra2_expid
config['input']['shared']['rst_dir'] = mk_outdir+ '/merra2_tmp_'+ YYYYMMDDHH
config['input']['surface']['wemin'] = 26
config['input']['shared']['bc_base'] = '/discover/nobackup/projects/gmao/bcs_shared/fvInput/ExtData/esm/tiles'
config['input']['shared']['bc_version'] = 'GM4'
config['input']['shared']['agrid'] = 'C180'
config['input']['shared']['ogrid'] = '1440x720'
config['input']['shared']['omodel'] = 'data'

catch_obj = catchANDcn(config_obj = config)
catch_obj.remap()

Expand Down Expand Up @@ -1444,12 +1466,6 @@ def _printExeInputKeys(rqdExeInpKeys):
print ('# RESTART: M #')
print ('# Re-tile from archived MERRA-2 restart file. #')
print ('# #')
print ('# RESTART: F #')
print ('# Re-tile from FP (Forward Processing) restart file. #')
print ('# #')
print ('# RESTART: G #')
print ('# Re-tile from any AGCM catch[cnclmxx]_internal_rst file.#')
print ('# #')
print ('# -------------------------------------------------------- #')
print ('# IMPORTANT: #')
print ('# Except for RESTART=1, SPIN-UP is REQUIRED in almost #')
Expand All @@ -1464,15 +1480,10 @@ def _printExeInputKeys(rqdExeInpKeys):
print ('# restarts stored as follows: #')
print ('# RESTART_PATH/RESTART_ID/output/RESTART_DOMAIN/rs/ #')
print ('# #')
print ('# For RESTART=0 or RESTART=M or RESTART=F: #')
print ('# For RESTART=0 or RESTART=M: #')
print ('# There is no need to specify RESTART_ID, RESTART_PATH, #')
print ('# and RESTART_DOMAIN. #')
print ('# #')
print ('# For RESTART=G: #')
print ('# RESTART_ID : full_path_to_AGCM_experiment_directory #')
print ('# RESTART_PATH : full_path_of_the_AGCM_restart_file #')
print ('# RESTART_DOMAIN is NOT required. #')
print ('# #')
print ('############################################################')
print ()
print ('RESTART:')
Expand Down
103 changes: 0 additions & 103 deletions GEOSldas_App/remap_config_ldas.py

This file was deleted.

0 comments on commit c4f0df5

Please sign in to comment.