Exemplo n.º 1
0
def compute_VIQI(ivar, inc, onc, bf, plevs):
    iarr = inc.variables["QICE"][:]
    ovardata =  massvertint(iarr, inc)
    ovarobj = onc.createVariable(ivar, 'float32', ["Time", "south_north", "west_east"], zlib=True, complevel=4, shuffle=True)
    ovarobj[:] =  ovardata
    ovarobj.FieldType = 104
    ovarobj.MemoryOrder = "XY"
    ovarobj.description = "Vertically integrated cloud ice"
    ovarobj.units = "Kg m-2"
    ovarobj.stagger = ""
    ovarobj.coordinates = "XLONG XLAT" 
    return onc
Exemplo n.º 2
0
def compute_VIQI(ivar, inc, onc, bf, plevs):
    iarr = inc.variables["QICE"][:]
    ovardata =  massvertint(iarr, inc)
    
    dim_list = ["Time", "south_north", "west_east"]
    ovarobj = onc.createVariable(ivar, 'float32', dim_list, zlib=True, 
                                 complevel=4, shuffle=True)
    ovarobj[:] =  ovardata
    ovarobj.FieldType = 104
    ovarobj.MemoryOrder = "XY"
    ovarobj.description = "Vertically integrated cloud ice"
    ovarobj.units = "Kg m-2"
    ovarobj.stagger = ""
    ovarobj.coordinates = "XLONG XLAT" 
    return onc