esmvaltool/diag_scripts/thermodyn_diagtool/provenance_meta.py
def meta_direntr(cfg, model, inlist, flist):
    """Write metadata to components of the direct entropy prod maps.

    Arguments:r
    - model: the name of the model;
    - inlist: the list of the input filenames;
    - flist: the list of the entropy filenames;

    @author: Valerio Lembo, University of Hamburg, 2019.
    """
    with ProvenanceLogger(cfg) as provlog:
        attr = ['sensible heat entropy production', model]
        ancestor = [
            inlist[1], inlist[2], inlist[5], inlist[15], inlist[17], inlist[19]
            ]
        record = get_prov_map(attr, ancestor)
        provlog.log(flist[0], record)
        attr = ['evaporation entropy production', model]
        ancestor = [inlist[0], inlist[2], inlist[5], inlist[15]]
        record = get_prov_map(attr, ancestor)
        provlog.log(flist[1], record)
        attr = ['rainfall precipitation entropy production', model]
        ancestor = [inlist[2], inlist[3], inlist[5], inlist[15]]
        record = get_prov_map(attr, ancestor)
        provlog.log(flist[2], record)
        attr = ['snowfall precipitation entropy production', model]
        ancestor = [inlist[2], inlist[4], inlist[5], inlist[15]]
        record = get_prov_map(attr, ancestor)
        provlog.log(flist[3], record)
        attr = ['snow melt entropy production', model]
        ancestor = [inlist[4], inlist[15]]
        record = get_prov_map(attr, ancestor)
        provlog.log(flist[4], record)
        attr = ['potential energy entropy production', model]
        ancestor = [
            inlist[2], inlist[3], inlist[4], inlist[5], inlist[8], inlist[15]
            ]
        record = get_prov_map(attr, ancestor)
        provlog.log(flist[5], record)
Write metadata to components of the direct entropy prod maps.

    Arguments:r
    - model: the name of the model;
    - inlist: the list of the input filenames;
    - flist: the list of the entropy filenames;

    @author: Valerio Lembo, University of Hamburg, 2019.
    
Write metadata to components of the direct entropy prod maps.
Arguments:r
model: the name of the model;
inlist: the list of the input filenames;
flist: the list of the entropy filenames.
Write metadata to components of the direct entropy prod maps . Arguments : r model : the name of the model ; inlist : the list of the input filenames ; flist : the list of the entropy filenames .
def meta_direntr(cfg, model, inlist, flist):
    with ProvenanceLogger(cfg) as provlog:
        attr = ['sensible heat entropy production', model]
        ancestor = [
            inlist[1], inlist[2], inlist[5], inlist[15], inlist[17], inlist[19]
            ]
        record = get_prov_map(attr, ancestor)
        provlog.log(flist[0], record)
        attr = ['evaporation entropy production', model]
        ancestor = [inlist[0], inlist[2], inlist[5], inlist[15]]
        record = get_prov_map(attr, ancestor)
        provlog.log(flist[1], record)
        attr = ['rainfall precipitation entropy production', model]
        ancestor = [inlist[2], inlist[3], inlist[5], inlist[15]]
        record = get_prov_map(attr, ancestor)
        provlog.log(flist[2], record)
        attr = ['snowfall precipitation entropy production', model]
        ancestor = [inlist[2], inlist[4], inlist[5], inlist[15]]
        record = get_prov_map(attr, ancestor)
        provlog.log(flist[3], record)
        attr = ['snow melt entropy production', model]
        ancestor = [inlist[4], inlist[15]]
        record = get_prov_map(attr, ancestor)
        provlog.log(flist[4], record)
        attr = ['potential energy entropy production', model]
        ancestor = [
            inlist[2], inlist[3], inlist[4], inlist[5], inlist[8], inlist[15]
            ]
        record = get_prov_map(attr, ancestor)
        provlog.log(flist[5], record)
def meta_direntr ( cfg , model , inlist , flist ) : with ProvenanceLogger ( cfg ) as provlog : attr = [ 'sensible heat entropy production' , model ] ancestor = [ inlist [ 1 ] , inlist [ 2 ] , inlist [ 5 ] , inlist [ 15 ] , inlist [ 17 ] , inlist [ 19 ] ] record = get_prov_map ( attr , ancestor ) provlog . log ( flist [ 0 ] , record ) attr = [ 'evaporation entropy production' , model ] ancestor = [ inlist [ 0 ] , inlist [ 2 ] , inlist [ 5 ] , inlist [ 15 ] ] record = get_prov_map ( attr , ancestor ) provlog . log ( flist [ 1 ] , record ) attr = [ 'rainfall precipitation entropy production' , model ] ancestor = [ inlist [ 2 ] , inlist [ 3 ] , inlist [ 5 ] , inlist [ 15 ] ] record = get_prov_map ( attr , ancestor ) provlog . log ( flist [ 2 ] , record ) attr = [ 'snowfall precipitation entropy production' , model ] ancestor = [ inlist [ 2 ] , inlist [ 4 ] , inlist [ 5 ] , inlist [ 15 ] ] record = get_prov_map ( attr , ancestor ) provlog . log ( flist [ 3 ] , record ) attr = [ 'snow melt entropy production' , model ] ancestor = [ inlist [ 4 ] , inlist [ 15 ] ] record = get_prov_map ( attr , ancestor ) provlog . log ( flist [ 4 ] , record ) attr = [ 'potential energy entropy production' , model ] ancestor = [ inlist [ 2 ] , inlist [ 3 ] , inlist [ 4 ] , inlist [ 5 ] , inlist [ 8 ] , inlist [ 15 ] ] record = get_prov_map ( attr , ancestor ) provlog . log ( flist [ 5 ] , record )
Write metadata to components of the direct entropy prod maps.
Write metadata to components of the direct entropy prod maps .
"""Write metadata to components of the direct entropy prod maps.

    Arguments:r
    - model: the name of the model;
    - inlist: the list of the input filenames;
    - flist: the list of the entropy filenames;

    @author: Valerio Lembo, University of Hamburg, 2019.
    """
cfg
model
inlist
flist
author
Valerio Lembo, University of Hamburg, 2019.
Valerio Lembo University of Hamburg 2019 .