fre.app.mask_atmos_plevel module

This script contains the refineDiags that produce data at the same frequency as the input data (no reduction) such as surface albedo, masking fields,… It can accept any file and will only compute refineDiags in fields are present.

fre.app.mask_atmos_plevel.mask_field_above_surface_pressure(ds, var, ds_ps)

mask data with pressure larger than surface pressure

fre.app.mask_atmos_plevel.post_write(filename, var_with_bounds, bounds_variables)

fix a posteriori attributes that xarray.to_netcdf did not do properly using low level netcdf lib

fre.app.mask_atmos_plevel.preprocess(ds)

add needs_atmos_masking attribute if var ends with _unmsk

fre.app.mask_atmos_plevel.pressure_coordinate(ds, varname)

check if dataArray has pressure coordinate fitting requirements and return it

fre.app.mask_atmos_plevel.set_netcdf_encoding(ds, pressure_vars)

set preferred options for netcdf encoding

fre.app.mask_atmos_plevel.write_dataset(ds, template, outfile)

prepare the dataset and dump into netcdf file