pyremo.preproc.CFPreprocessor.preprocess
- CFPreprocessor.preprocess()
Transform raw input data into forcing variables for one timestep.
- Parameters:
date (
datetime-like, optional) – Target date/time used when loading the input dataset ifdsis not provided.ds (
xarray.Dataset, optional) – Already opened input dataset. IfNoneit is loaded viaget_input_dataset().outpath (
str, optional) – Directory where output should be written. IfNonethe preprocessed dataset is returned instead of writing.initial (
boolorNone, optional) – Flag passed through to remapping indicating initial-condition specific processing. IfNonesubclasses may infer for first timestep.**kwargs – Additional keyword arguments forwarded to the
remapfunction.
- Returns:
xarray.Datasetorstr– In-memory forcing dataset (ifoutpathisNone) or path to the written file.