Skip to content

Commit 1f8ca86

Browse files
committed
added streched grid items to LDAS.rc
1 parent bdc308b commit 1f8ca86

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Added
1313

14+
- Added items to LDAS.rc when it is a stretched grid
15+
1416
### Changed
1517

1618
- Revisions for handling of Nens and special nml and mwtrm path/files in coupled land-atm DAS.

GEOSldas_App/ldas_setup

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1451,6 +1451,14 @@ class LDASsetup:
14511451
valn = 'landpert'+tmpl_+'_internal_checkpoint'
14521452
ldasrcInp[keyn]= valn
14531453

1454+
# add items for sretched grid
1455+
if 'SG0' in self.rqdExeInp['BCS_RESOLUTION']:
1456+
pos_ = self.rqdExeInp['BCS_RESOLUTION'].find('SG0')
1457+
SG = self.rqdExeInp['BCS_RESOLUTION'][pos_:pos_+5] # get SG001 or SG002
1458+
ldasrcInp['STRETCH_FACTOR'] = STRETCH_GRID[SG][0]
1459+
ldasrcInp['TARGET_LAT'] = STRETCH_GRID[SG][1]
1460+
ldasrcInp['TARGET_LON'] = STRETCH_GRID[SG][2]
1461+
14541462
# write LDAS.rc
14551463
fout =open(self.rundir+'/'+shortfile,'w')
14561464
# ldasrcInp['NUM_LDAS_ENSEMBLE']=ldasrcInp.pop('NUM_ENSEMBLE')

0 commit comments

Comments
 (0)