Source code for pycif.plugins.models.template.io.native2inputs_adj

import pandas as pd
import datetime
import os
import glob
from netCDF4 import Dataset
import xarray as xr
import numpy as np


[docs]def native2inputs_adj( self, datastore, input_type, datei, datef, runsubdir, mode="fwd", check_transforms=False, **kwargs ): """Read adjoint sensitivity and format them to pyCIF data format. .. warning:: This function is used only when the adjoint of the model is available. Args: self: the model Plugin input_type (str): one of 'flux' datastore: data to convert if input_type == 'flux', datei, datef: date interval of the sub-simulation mode (str): running mode: one of 'fwd', 'adj' and 'tl' runsubdir (str): sub-directory for the current simulation workdir (str): the directory of the whole pyCIF simulation """ return