monet.util package

Submodules

monet.util.combinetool module

monet.util.combinetool.combine_da_to_df(da, df, merge=True, **kwargs)

This function will combine an xarray data array with spatial information point observations in df.

Parameters:
  • da (xr.DataArray or xr.Dataset) – Description of parameter da.
  • df (pd.DataFrame) – Description of parameter df.
  • lay (iterable, default = [0]) – Description of parameter lay.
  • radius (integer or float, default = 12e3) – Description of parameter radius.
Returns:

Return type:

pandas.DataFrame

monet.util.combinetool.combine_da_to_df_xesmf(da, df, suffix=None, **kwargs)

This function will combine an xarray data array with spatial information point observations in df.

Parameters:
  • da (xr.DataArray) – Description of parameter da.
  • df (pd.DataFrame) – Description of parameter df.
  • lay (iterable, default = [0]) – Description of parameter lay.
  • radius (integer or float, default = 12e3) – Description of parameter radius.
Returns:

Return type:

pandas.DataFrame

monet.util.combinetool.combine_da_to_df_xesmf_strat(da, daz, df, **kwargs)

This function will combine an xarray data array with spatial information point observations in df.

Parameters:
  • da (xr.DataArray) – Description of parameter da.
  • daz (xr.DataArray) – Description of parameter daz.
  • df (pd.DataFrame) – Description of parameter df.
  • lay (iterable, default = [0]) – Description of parameter lay.
  • radius (integer or float, default = 12e3) – Description of parameter radius.
Returns:

Return type:

pandas.DataFrame

monet.util.combinetool.combine_da_to_height_profile(da, dset, radius_of_influence=12000.0)

This function will combine an xarray.DataArray to a 2d dataset with dimensions (time,z)

Parameters:
  • da (xarray.DataArray) – Description of parameter da.
  • dset (xarray.Dataset) – Description of parameter dset.
Returns:

returns the xarray.Dataset with the da added as an additional variable.

Return type:

xarray.Dataset

monet.util.interp_util module

Interpolation functions

monet.util.interp_util.constant_1d_xesmf(longitude=None, latitude=None)

Creates a pyreample.geometry.SwathDefinition with a constant latitude along the longitude array. Longitude can be a 1d or 2d np.array or xr.DataArray

Parameters:
  • longitude (numpy.array or xarray.DataArray) – Array of longitude values
  • latitude (float) – latitude for constant
Returns:

Return type:

pyreample.geometry.SwathDefinition

monet.util.interp_util.constant_lat_swathdefition(longitude=None, latitude=None)

Creates a pyreample.geometry.SwathDefinition with a constant latitude along the longitude array. Longitude can be a 1d or 2d np.array or xr.DataArray

Parameters:
  • longitude (numpy.array or xarray.DataArray) – Array of longitude values
  • latitude (float) – latitude for constant
Returns:

Return type:

pyreample.geometry.SwathDefinition

monet.util.interp_util.constant_lon_swathdefition(longitude=None, latitude=None)

Creates a pyreample.geometry.SwathDefinition with a constant longitude along the latitude array. latitude can be a 1d or 2d np.array or xr.DataArray

Parameters:
  • longitude – latitude for constant
  • latitude (numpy.array or xarray.DataArray) – Array of longitude values
Returns:

Return type:

pyreample.geometry.SwathDefinition

monet.util.interp_util.latlon_xarray_to_CoordinateDefinition(longitude=None, latitude=None)

Create pyresample SwathDefinition from xarray object.

Parameters:
  • longitude (2d xarray.DataArray) – Longitude -> must be from -180 -> 180 and monotonically increasing
  • latitude (2d xarray.DataArray) – Latitude -> must be from -90 -> 90 and monotonically increasing
Returns:

Return type:

pyresample.CoordinateDefinition

monet.util.interp_util.lonlat_to_swathdefinition(longitude=None, latitude=None)

Short summary.

Parameters:
  • longitude (type) – Description of parameter longitude.
  • latitude (type) – Description of parameter latitude.
Returns:

Description of returned object.

Return type:

type

monet.util.interp_util.lonlat_to_xesmf(longitude=None, latitude=None)

Creates an empty xarray.Dataset with the coordinate (longitude, latitude).

Parameters:
  • longitude (type) – Description of parameter longitude.
  • latitude (type) – Description of parameter latitude.
Returns:

Description of returned object.

Return type:

type

monet.util.interp_util.nearest_point_swathdefinition(longitude=None, latitude=None)

Creates a pyreample.geometry.SwathDefinition for a single point.

Parameters:
  • longitude (float) – longitude.
  • latitude (float) – latitude.
Returns:

Return type:

pyreample.geometry.SwathDefinition

monet.util.resample module

monet.util.resample.resample_stratify(da, levels, vertical, axis=1)
monet.util.resample.resample_xesmf(source_da, target_da, cleanup=False, **kwargs)

monet.util.stats module

monet.util.stats.AC(obs, mod, axis=None)

Anomaly Correlation

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.E1(obs, mod, axis=None)

Modified Coefficient of Efficiency, E1

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.ETS(obs, mod, minval, maxval)

Equitable Threat Score (1 is perfect - Range -1/3 -> 1)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • minval (type) – Description of parameter minval.
  • maxval (type) – Description of parameter maxval.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.FB(obs, mod, axis=None)

Fractional Bias (%)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.FE(obs, mod, axis=None)

Fractional Error (%)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.HSS(obs, mod, minval, maxval)

Heidke Skill Score (1 is perfect - below zero means no confidence)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • minval (type) – Description of parameter minval.
  • maxval (type) – Description of parameter maxval.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.IOA(obs, mod, axis=None)

Index of Agreement, IOA

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.IOA_m(obs, mod, axis=None)

Index of Agreement, IOA (avoid single block error in np.ma)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.MB(obs, mod, axis=None)

Mean Bias

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.ME(obs, mod, axis=None)

Mean Gross Error (model and obs unit)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.MNB(obs, mod, axis=None)

Mean Normalized Bias (%)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.MNE(obs, mod, axis=None)

Mean Normalized Gross Error (%)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.MNPB(obs, mod, paxis, axis=None)

Mean Normalized Peak Bias (%)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • paxis (type) – Description of parameter paxis.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.MNPE(obs, mod, paxis, axis=None)

Mean Normalized Peak Error (%)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • paxis (type) – Description of parameter paxis.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.MO(obs, mod, axis=None)

Mean Observations (obs unit)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.MP(obs, mod, axis=None)

Mean Predictions (model unit)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.MdnB(obs, mod, axis=None)

Median Bias

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.MdnE(obs, mod, axis=None)

Median Gross Error (model and obs unit)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.MdnNB(obs, mod, axis=None)

Median Normalized Bias (%)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.MdnNE(obs, mod, axis=None)

Median Normalized Gross Error (%)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.MdnNPB(obs, mod, paxis, axis=None)

Median Normalized Peak Bias (%)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • paxis (type) – Description of parameter paxis.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.MdnNPE(obs, mod, paxis, axis=None)

Median Normalized Peak Bias (%)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • paxis (type) – Description of parameter paxis.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.MdnO(obs, mod, axis=None)

Median Observations (obs unit)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.MdnP(obs, mod, axis=None)

Median Predictions (model unit)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.NMB(obs, mod, axis=None)

Normalized Mean Bias (%)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.NMB_ABS(obs, mod, axis=None)

Normalized Mean Bias - Absolute of the denominator (%)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.NME(obs, mod, axis=None)

Normalized Mean Error (%)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.NME_m(obs, mod, axis=None)

Normalized Mean Error (%) (avoid single block error in np.ma)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.NME_m_ABS(obs, mod, axis=None)

Normalized Mean Error (%) - Absolute of the denominator (avoid single block error in np.ma)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.NMPB(obs, mod, paxis, axis=None)

Normalized Mean Peak Bias (%)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • paxis (type) – Description of parameter paxis.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.NMPE(obs, mod, paxis, axis=None)

Normalized Mean Peak Error (%)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • paxis (type) – Description of parameter paxis.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.NMdnB(obs, mod, axis=None)

Normalized Median Bias (%)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.NMdnE(obs, mod, axis=None)

Normalized Median Error (%)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.NMdnGE(obs, mod, axis=None)

Normalized Median Gross Error (%)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.NMdnPB(obs, mod, paxis, axis=None)

Normalized Median Peak Bias (%)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • paxis (type) – Description of parameter paxis.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.NMdnPE(obs, mod, paxis, axis=None)

Normalized Median Peak Bias (%)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • paxis (type) – Description of parameter paxis.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.NO(obs, mod, axis=None)

N Observations (#)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.NOP(obs, mod, axis=None)

N Observations/Prediction Pairs (#)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.NP(obs, mod, axis=None)

N Predictions (#)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.PSUTMNPB(obs, mod, axis=None)

Paired Space/Unpaired Time Mean Normalized Peak Bias (%)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.PSUTMNPE(obs, mod, axis=None)

Paired Space/Unpaired Time Mean Normalized Peak Error (%)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.PSUTMdnNPB(obs, mod, axis=None)

Paired Space/Unpaired Time Median Normalized Peak Bias (%)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.PSUTMdnNPE(obs, mod, axis=None)

Paired Space/Unpaired Time Median Normalized Peak Error (%)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.PSUTNMPB(obs, mod, axis=None)

Paired Space/Unpaired Time Normalized Mean Peak Bias (%)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.PSUTNMPE(obs, mod, axis=None)

Paired Space/Unpaired Time Normalized Mean Peak Error (%)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.PSUTNMdnPB(obs, mod, axis=None)

Paired Space/Unpaired Time Normalized Median Peak Bias (%)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.PSUTNMdnPE(obs, mod, axis=None)

Paired Space/Unpaired Time Normalized Median Peak Error (%)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.R2(obs, mod, axis=None)

Coefficient of Determination (unit squared)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.RM(obs, mod, axis=None)

Mean Ratio Observations/Predictions (none)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.RMSE(obs, mod, axis=None)

Root Mean Square Error (model unit)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.RMSEs(obs, mod, axis=None)

Root Mean Squared Error (obs, mod_hat)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.RMSEu(obs, mod, axis=None)

Root Mean Squared Error (mod_hat, mod)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.RMdn(obs, mod, axis=None)

Median Ratio Observations/Predictions (none)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.STDO(obs, mod, axis=None)

Standard deviation of Observations

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.STDP(obs, mod, axis=None)

Standard deviation of Predictions

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.USUTPB(obs, mod, axis=None)

Unpaired Space/Unpaired Time Peak Bias (%)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.USUTPE(obs, mod, axis=None)

Unpaired Space/Unpaired Time Peak Error (%)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.WDAC(obs, mod, axis=None)

Wind Direction Anomaly Correlation

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.WDIOA(obs, mod, axis=None)

Wind Direction Index of Agreement, IOA

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.WDIOA_m(obs, mod, axis=None)

Wind Direction Index of Agreement, IOA (avoid single block error in np.ma)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.WDMB(obs, mod, axis=None)

Wind Direction Mean Bias

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.WDMB_m(obs, mod, axis=None)

Wind Direction Mean Bias (avoid single block error in np.ma)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.WDME(obs, mod, axis=None)

Wind Direction Mean Gross Error (model and obs unit)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.WDME_m(obs, mod, axis=None)

Wind Direction Mean Gross Error (model and obs unit) (avoid single block error in np.ma)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.WDMdnB(obs, mod, axis=None)

Wind Direction Median Bias

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.WDMdnE(obs, mod, axis=None)

Wind Direction Median Gross Error (model and obs unit)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.WDNMB_m(obs, mod, axis=None)

Wind Direction Normalized Mean Bias (%) (avoid single block error in np.ma)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.WDRMSE(obs, mod, axis=None)

Wind Direction Root Mean Square Error (model unit)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.WDRMSE_m(obs, mod, axis=None)

Wind Direction Root Mean Square Error (model unit) (avoid single block error in np.ma)

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.circlebias(b)

Short summary.

Parameters:b (type) – Description of parameter b.
Returns:Description of returned object.
Return type:type
monet.util.stats.circlebias_m(b)

avoid single block error in np.ma

Parameters:b (type) – Description of parameter b.
Returns:Description of returned object.
Return type:type
monet.util.stats.d1(obs, mod, axis=None)

Modified Index of Agreement, d1

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • axis (type) – Description of parameter axis.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.matchedcompressed(a1, a2)

Short summary.

Parameters:
  • a1 (type) – Description of parameter a1.
  • a2 (type) – Description of parameter a2.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.matchmasks(a1, a2)

Short summary.

Parameters:
  • a1 (type) – Description of parameter a1.
  • a2 (type) – Description of parameter a2.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.scores(obs, mod, minval, maxval=100000.0)

Short summary.

Parameters:
  • obs (type) – Description of parameter obs.
  • mod (type) – Description of parameter mod.
  • minval (type) – Description of parameter minval.
  • maxval (type) – Description of parameter maxval.
Returns:

Description of returned object.

Return type:

type

monet.util.stats.stats(df, minval, maxval)

Short summary.

Parameters:
  • df (type) – Description of parameter df.
  • minval (type) – Description of parameter minval.
  • maxval (type) – Description of parameter maxval.
Returns:

Description of returned object.

Return type:

type

monet.util.tools module

monet.util.tools.calc_24hr_ave(df, col=None)
monet.util.tools.calc_3hr_ave(df, col=None)
monet.util.tools.calc_8hr_rolling_max(df, col=None, window=None)
monet.util.tools.calc_annual_ave(df, col=None)
monet.util.tools.findclosest(list, value)
monet.util.tools.get_epa_region_bounds(index=None, acronym=None)
monet.util.tools.get_epa_region_df(df)
monet.util.tools.get_giorgi_region_bounds(index=None, acronym=None)
monet.util.tools.get_giorgi_region_df(df)
monet.util.tools.get_relhum(temp, press, vap)
monet.util.tools.kolmogorov_zurbenko_filter(df, window, iterations)
monet.util.tools.linregress(x, y)
monet.util.tools.long_to_wide(df)
monet.util.tools.search_listinlist(array1, array2)
monet.util.tools.wsdir2uv(ws, wdir)

Module contents