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

from ......utils import path
from logging import info
        
[docs] def make_endconcs(self, datastore, ddi, ddf, runsubdir, mode): """Link the ICON-ART restart file into the period run directory for chaining. Symlinks ``restart_ATMO_DOM01.nc`` (the ICON-ART restart file from the previous period) into *runsubdir*. Does nothing when ``self.dont_run=True``. Args: self: ICON-ART model plugin instance. datastore (dict): tracer-ID-keyed data-store entries with ``fileorig`` restart paths. ddi (datetime): period start date. ddf (datetime): period end date (unused). runsubdir (str): path to the period run directory. mode (str): ``'fwd'``, ``'tl'``, or ``'adj'`` (unused here). """ if self.dont_run: return for trid in datastore: fileorig = datastore[trid]["data"][ddi]["fileorig"] fileout = f"{runsubdir}/restart_ATMO_DOM01.nc" path.link(fileorig, fileout)