-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
819d59d
commit ee128da
Showing
8 changed files
with
37 additions
and
54 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 |
---|---|---|
|
@@ -147,15 +147,15 @@ def aerosol_init(self): | |
deps.append(rocoto.add_dependency(dep_dict)) | ||
|
||
# Calculate offset based on RUN = gfs | gdas | ||
interval = None | ||
interval = 0 | ||
if self.run in ['gfs']: | ||
interval = self._base['INTERVAL_GFS'] | ||
elif self.run in ['gdas']: | ||
interval = self._base['INTERVAL'] | ||
offset = timedelta_to_HMS(-interval) | ||
|
||
# Files from previous cycle | ||
files = [f'@Y@m@[email protected]_core.res.nc'] + \ | ||
files = ['@Y@m@[email protected]_core.res.nc'] + \ | ||
[f'@Y@m@[email protected]_core.res.tile{tile}.nc' for tile in range(1, self.n_tiles + 1)] + \ | ||
[f'@Y@m@[email protected]_tracer.res.tile{tile}.nc' for tile in range(1, self.n_tiles + 1)] | ||
|
||
|
@@ -431,27 +431,6 @@ def atmanlfinal(self): | |
task = rocoto.create_task(task_dict) | ||
|
||
return task | ||
|
||
def prep_emissions(self): | ||
deps = [] | ||
dep_dict = {'type': 'task', 'name': f'stage_ic'} | ||
deps.append(rocoto.add_dependency(dep_dict)) | ||
dependencies = rocoto.create_dependency(dep=deps) | ||
|
||
resources = self.get_resource('prep_emissions') | ||
task_name = 'prep_emissions' | ||
task_dict = {'task_name': task_name, | ||
'resources': resources, | ||
'envars': self.envars, | ||
'cycledef': 'gefs', | ||
'command': f'{self.HOMEgfs}/jobs/rocoto/prep_emissions.sh', | ||
'job_name': f'{self.pslot}_{task_name}_@H', | ||
'log': f'{self.rotdir}/logs/@Y@m@d@H/{task_name}.log', | ||
'maxtries': '&MAXTRIES;' | ||
} | ||
task = rocoto.create_task(task_dict) | ||
|
||
return task | ||
|
||
def prepobsaero(self): | ||
deps = [] | ||
|
@@ -534,7 +513,7 @@ def aeroanlvar(self): | |
|
||
deps = [] | ||
dep_dict = { | ||
'type': 'task', 'name': f'gdasaeroanlgenb', | ||
'type': 'task', 'name': 'gdasaeroanlgenb', | ||
'offset': f"-{timedelta_to_HMS(self._base['cycle_interval'])}", | ||
} | ||
deps.append(rocoto.add_dependency(dep_dict)) | ||
|
@@ -635,9 +614,9 @@ def snowanl(self): | |
def esnowrecen(self): | ||
|
||
deps = [] | ||
dep_dict = {'type': 'task', 'name': f'{self.run.replace("enkf","")}prepsnowobs'} | ||
dep_dict = {'type': 'task', 'name': f'{self.run.replace("enkf", "")}prepsnowobs'} | ||
deps.append(rocoto.add_dependency(dep_dict)) | ||
dep_dict = {'type': 'task', 'name': f'{self.run.replace("enkf","")}snowanl'} | ||
dep_dict = {'type': 'task', 'name': f'{self.run.replace("enkf", "")}snowanl'} | ||
deps.append(rocoto.add_dependency(dep_dict)) | ||
dep_dict = {'type': 'metatask', 'name': f'{self.run}epmn', 'offset': f"-{timedelta_to_HMS(self._base['cycle_interval'])}"} | ||
deps.append(rocoto.add_dependency(dep_dict)) | ||
|
@@ -897,7 +876,7 @@ def _fcst_forecast_only(self): | |
self.run in self.app_config.aero_fcst_runs and \ | ||
not self._base['EXP_WARM_START']: | ||
# Calculate offset based on RUN = gfs | gdas | ||
interval = None | ||
interval = 0 | ||
if self.run in ['gfs']: | ||
interval = self._base['INTERVAL_GFS'] | ||
elif self.run in ['gdas']: | ||
|
@@ -2373,7 +2352,7 @@ def cleanup(self): | |
# Start of ensemble tasks | ||
def eobs(self): | ||
deps = [] | ||
dep_dict = {'type': 'task', 'name': f'{self.run.replace("enkf","")}prep'} | ||
dep_dict = {'type': 'task', 'name': f'{self.run.replace("enkf", "")}prep'} | ||
deps.append(rocoto.add_dependency(dep_dict)) | ||
dep_dict = {'type': 'metatask', 'name': 'enkfgdasepmn', 'offset': f"-{timedelta_to_HMS(self._base['cycle_interval'])}"} | ||
deps.append(rocoto.add_dependency(dep_dict)) | ||
|
@@ -2483,7 +2462,7 @@ def eupd(self): | |
|
||
def atmensanlinit(self): | ||
deps = [] | ||
dep_dict = {'type': 'task', 'name': f'{self.run.replace("enkf","")}prepatmiodaobs'} | ||
dep_dict = {'type': 'task', 'name': f'{self.run.replace("enkf", "")}prepatmiodaobs'} | ||
deps.append(rocoto.add_dependency(dep_dict)) | ||
dep_dict = {'type': 'metatask', 'name': 'enkfgdasepmn', 'offset': f"-{timedelta_to_HMS(self._base['cycle_interval'])}"} | ||
deps.append(rocoto.add_dependency(dep_dict)) | ||
|
@@ -2664,7 +2643,7 @@ def _get_ecengroups(): | |
return grp, dep, lst | ||
|
||
deps = [] | ||
dep_dict = {'type': 'task', 'name': f'{self.run.replace("enkf","")}analcalc'} | ||
dep_dict = {'type': 'task', 'name': f'{self.run.replace("enkf", "")}analcalc'} | ||
deps.append(rocoto.add_dependency(dep_dict)) | ||
if self.app_config.do_jediatmens: | ||
dep_dict = {'type': 'task', 'name': f'{self.run}atmensanlfinal'} | ||
|
@@ -2710,7 +2689,7 @@ def esfc(self): | |
# eupd_run = 'gdas' if 'gdas' in self.app_config.eupd_runs else 'gfs' | ||
|
||
deps = [] | ||
dep_dict = {'type': 'task', 'name': f'{self.run.replace("enkf","")}analcalc'} | ||
dep_dict = {'type': 'task', 'name': f'{self.run.replace("enkf", "")}analcalc'} | ||
deps.append(rocoto.add_dependency(dep_dict)) | ||
if self.app_config.do_jediatmens: | ||
dep_dict = {'type': 'task', 'name': f'{self.run}atmensanlfinal'} | ||
|
@@ -2788,7 +2767,7 @@ def echgres(self): | |
self._is_this_a_gdas_task(self.run, 'echgres') | ||
|
||
deps = [] | ||
dep_dict = {'type': 'metatask', 'name': f'{self.run.replace("enkf","")}fcst'} | ||
dep_dict = {'type': 'metatask', 'name': f'{self.run.replace("enkf", "")}fcst'} | ||
deps.append(rocoto.add_dependency(dep_dict)) | ||
dep_dict = {'type': 'task', 'name': f'{self.run}fcst_mem001'} | ||
deps.append(rocoto.add_dependency(dep_dict)) | ||
|
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