index_calculator.processing

class index_calculator.processing(index=None, preproc_obj=None, **kwargs)

Class for processing index_calculator.preprocessing object.

Parameters:
  • index (str) – Climate indicator name to be calculated.

  • preproc_obj (index_calculator.preprocessing) – index_calculator.preprocessing object

Example

Calculate a climate indicator TG from netcdf file on disk:

from pyhomogenize import open_xrdataset
from index_calculator import preprocessing
from index_calculator import processing

netcdf_file = "tas_EUR-11_MPI-M-MPI-ESM-LR_historical_r3i1p1_"
              "GERICS-REMO2015_v1_day_20010101-20051231.nc"
ds = open_xrdataset(netcdf_file)

preproc = preprocessing(ds)
proc = processing(index="TG", preproc_obj=preproc)

proc_ds = proc.proc
__init__(index=None, preproc_obj=None, **kwargs)

Methods

__init__([index, preproc_obj])