Source code for pycif.plugins.models.iconart.io.outputs.endconcs


[docs] def fetch_end(self, data2dump, runsubdir, mode, ddi, ddf): """Register the ICON-ART restart file path after a run. Records the path to the chained restart file (``chain/restart_YYYYMMDDHH.nc``) in *data2dump* so the next period can link it as its initial conditions. Args: self: ICON-ART model plugin instance. data2dump (dict): tracer-ID-keyed data-store entries to update. runsubdir (str): path to the period run directory. mode (str): ``'fwd'``, ``'tl'``, or ``'adj'`` (unused). ddi (datetime): period start date. ddf (datetime): period end date (unused). Returns: dict: updated *data2dump* with ``fileorig`` set. """ dataout = {} fileorig = ddi.strftime(f"{runsubdir}/../chain/restart_%Y%m%d%H.nc") for trid in data2dump: dataout[trid] = {"fileorig": fileorig} return dataout