Source code for pycif.plugins.models.wrfchem.io.outputs.endconcs
[docs]
def fetch_end(self, data2dump, runsubdir, mode, ddi, ddf):
"""Stub for registering WRF-Chem restart paths after a run.
WRF-Chem manages end-concentrations through ``wrfrst`` restart files
which are handled directly in ``run.py`` and ``make_endconcs``.
This function returns an empty ``fileorig`` entry for each tracer to
maintain API compatibility.
Args:
self: WRF-Chem model plugin instance.
data2dump (dict): tracer-ID-keyed data-store entries to update.
runsubdir (str): path to the period run directory (unused).
mode (str): ``'fwd'``, ``'tl'``, or ``'adj'`` (unused).
ddi (datetime): period start date (unused).
ddf (datetime): period end date (unused).
Returns:
dict: data2dump with empty dicts for each tracer.
"""
# Nothing to do - endconcs are passed by wrfrst files,
# and those are handled in run.py and inputs/make_endconcs
dataout = {}
# if self.domain.max_dom>1:
# raise NotImplementedError("Can't work with nested domains yet.")
# fileorig = ddf.strftime("{}/../chain/wrfrst_d01_%Y-%m-%d_%H:%M:S".format(runsubdir))
for trid in data2dump:
# dataout[trid] = {"fileorig": fileorig}
dataout[trid] = {}
return dataout