forked from NOAA-EMC/global-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update LandDA related job post COM refactor plus other minor fixes (N…
…OAA-EMC#1564) This PR: - updates the j-jobs to accommodate post COM refactor upgrades. - minor updates to config.resources for land DA tasks - add task dependencies in the rocoto workflow - when doing LandDA, use sfc_data.tile{{ t }}.nc created by Land DA is used as input of global_cycle for the deterministic and case w/ DOIAU=NO.
- Loading branch information
Showing
20 changed files
with
141 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#! /usr/bin/env bash | ||
|
||
########## config.landanlrun ########## | ||
# Land Prep specific | ||
|
||
echo "BEGIN: config.landanlprep" | ||
|
||
# Get task specific resources | ||
. "${EXPDIR}/config.resources" landanlprep | ||
|
||
echo "END: config.landanlprep" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ class Tasks: | |
'eobs', 'eomg', 'epos', 'esfc', 'eupd', | ||
'atmensanlinit', 'atmensanlrun', 'atmensanlfinal', | ||
'aeroanlinit', 'aeroanlrun', 'aeroanlfinal', | ||
'landanlinit', 'landanlprep', 'landanlrun', 'landanlfinal', | ||
'fcst', 'post', 'ocnpost', 'vrfy', 'metp', | ||
'postsnd', 'awips', 'gempak', | ||
'wafs', 'wafsblending', 'wafsblending0p25', | ||
|
@@ -409,7 +410,12 @@ def sfcanl(self): | |
else: | ||
dep_dict = {'type': 'task', 'name': f'{self.cdump}anal'} | ||
deps.append(rocoto.add_dependency(dep_dict)) | ||
dependencies = rocoto.create_dependency(dep=deps) | ||
if self.app_config.do_jedilandda: | ||
dep_dict = {'type': 'task', 'name': f'{self.cdump}landanlfinal'} | ||
deps.append(rocoto.add_dependency(dep_dict)) | ||
dependencies = rocoto.create_dependency(dep_condition='and', dep=deps) | ||
else: | ||
dependencies = rocoto.create_dependency(dep=deps) | ||
|
||
resources = self.get_resource('sfcanl') | ||
task = create_wf_task('sfcanl', resources, cdump=self.cdump, envar=self.envars, dependency=dependencies) | ||
|
@@ -543,6 +549,60 @@ def aeroanlfinal(self): | |
|
||
return task | ||
|
||
def landanlinit(self): | ||
|
||
atm_hist_path = self._template_to_rocoto_cycstring(self._base["COM_ATMOS_HISTORY_TMPL"], {'RUN': 'gdas'}) | ||
|
||
deps = [] | ||
dep_dict = {'type': 'metatask', 'name': 'gdaspost', 'offset': '-06:00:00'} | ||
deps.append(rocoto.add_dependency(dep_dict)) | ||
data = f'{atm_hist_path}/[email protected]' | ||
dep_dict = {'type': 'data', 'data': data, 'offset': '-06:00:00'} | ||
deps.append(rocoto.add_dependency(dep_dict)) | ||
dep_dict = {'type': 'task', 'name': f'{self.cdump}prep'} | ||
deps.append(rocoto.add_dependency(dep_dict)) | ||
dependencies = rocoto.create_dependency(dep_condition='and', dep=deps) | ||
|
||
resources = self.get_resource('landanlinit') | ||
task = create_wf_task('landanlinit', resources, cdump=self.cdump, envar=self.envars, dependency=dependencies) | ||
return task | ||
|
||
def landanlprep(self): | ||
|
||
deps = [] | ||
dep_dict = {'type': 'task', 'name': f'{self.cdump}landanlinit'} | ||
deps.append(rocoto.add_dependency(dep_dict)) | ||
dependencies = rocoto.create_dependency(dep=deps) | ||
|
||
resources = self.get_resource('landanlprep') | ||
task = create_wf_task('landanlprep', resources, cdump=self.cdump, envar=self.envars, dependency=dependencies) | ||
|
||
return task | ||
|
||
def landanlrun(self): | ||
|
||
deps = [] | ||
dep_dict = {'type': 'task', 'name': f'{self.cdump}landanlprep'} | ||
deps.append(rocoto.add_dependency(dep_dict)) | ||
dependencies = rocoto.create_dependency(dep=deps) | ||
|
||
resources = self.get_resource('landanlrun') | ||
task = create_wf_task('landanlrun', resources, cdump=self.cdump, envar=self.envars, dependency=dependencies) | ||
|
||
return task | ||
|
||
def landanlfinal(self): | ||
|
||
deps = [] | ||
dep_dict = {'type': 'task', 'name': f'{self.cdump}landanlrun'} | ||
deps.append(rocoto.add_dependency(dep_dict)) | ||
dependencies = rocoto.create_dependency(dep_condition='and', dep=deps) | ||
|
||
resources = self.get_resource('landanlfinal') | ||
task = create_wf_task('landanlfinal', resources, cdump=self.cdump, envar=self.envars, dependency=dependencies) | ||
|
||
return task | ||
|
||
def ocnanalprep(self): | ||
|
||
dump_suffix = self._base["DUMP_SUFFIX"] | ||
|
@@ -750,6 +810,10 @@ def _fcst_cycled(self): | |
dep_dict = {'type': 'task', 'name': f'{self.cdump}aeroanlfinal'} | ||
dependencies.append(rocoto.add_dependency(dep_dict)) | ||
|
||
if self.app_config.do_jedilandda: | ||
dep_dict = {'type': 'task', 'name': f'{self.cdump}landanlfinal'} | ||
dependencies.append(rocoto.add_dependency(dep_dict)) | ||
|
||
dependencies = rocoto.create_dependency(dep_condition='and', dep=dependencies) | ||
|
||
if self.cdump in ['gdas']: | ||
|