index_calculator.postprocessing
- class index_calculator.postprocessing(proc_obj=None, institution_id='N/A', institution='N/A', contact='N/A', split=True, **kwargs)
Class for post-processing
index_calculator.processingobject.- Parameters:
proc_obj (index_calculator.processing) –
index_calculator.processingobjectinstitution_id (str (default: “N/A”), optional) – Short name of the institution calculating the climate indicator.
institution (str (default: “N/A”), optional) – Long name of the institution calculating the climate indicator.
contact (str (default: “N/A”), optional) – Mail contact of the institution calculating the climate indicator.
Example
Calculate a climate indicator TG from netcdf file on disk and do some post-processing:
from pyhomogenize import open_xrdataset from index_calculator import preprocessing from index_calculator import processing from index_calculator import postprocessing 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) postproc = postprocessing( project="CORDEX", proc_obj=proc, institution="Helmholtz-Zentrum hereon GmbH," "Climate Service Center Germany", institution_id="GERICS", contact="gerics-cordex@hereon.de", ) postproc_ds = postproc.postproc
- __init__(proc_obj=None, institution_id='N/A', institution='N/A', contact='N/A', split=True, **kwargs)
Methods
__init__([proc_obj, institution_id, ...])