Example #1
0
def compute_CLH(ivar, inc, onc, bf, plevs):
    cldfra = inc.variables["CLDFRA"][:]
    ovardata = f90.clt_maxrand_levels(tr(cldfra), tr(bf.pres_field), maxpres=440, minpres=10)
    ovarobj = onc.createVariable(ivar, 'float32', ["Time", "south_north", "west_east"], zlib=True, complevel=4, shuffle=True)
    ovarobj[:] =  tr(ovardata)
    ovarobj.FieldType = 104
    ovarobj.MemoryOrder = "XY"
    ovarobj.description = "High cloud fraction (440-10 hPa)"
    ovarobj.units = "1"
    ovarobj.stagger = ""
    ovarobj.coordinates = "XLONG XLAT"
    return onc
Example #2
0
def compute_CLH(ivar, inc, onc, bf, plevs):
    cldfra = inc.variables["CLDFRA"][:]
    ovardata = f90.clt_maxrand_levels(tr(cldfra), tr(bf.pres_field), 
                                      maxpres=440, minpres=10)
    
    dim_list = ["Time", "south_north", "west_east"]
    ovarobj = onc.createVariable(ivar, 'float32', dim_list, zlib=True, 
                                 complevel=4, shuffle=True)
    ovarobj[:] =  tr(ovardata)
    ovarobj.FieldType = 104
    ovarobj.MemoryOrder = "XY"
    ovarobj.description = "High cloud fraction (440-10 hPa)"
    ovarobj.units = "1"
    ovarobj.stagger = ""
    ovarobj.coordinates = "XLONG XLAT"
    return onc