melodies_monet.util.tools

Functions

calc_24hr_ave(df[, col])

calc_3hr_ave(df[, col])

calc_8hr_rolling_max(df[, col, window])

calc_annual_ave(df[, col])

findclosest(list, value)

Return (index, value) of the closest value in list to value.

get_epa_region_bounds([index, acronym])

get_epa_region_df(df)

get_giorgi_region_bounds([index, acronym])

get_giorgi_region_df(df)

get_relhum(temp, press, vap)

kolmogorov_zurbenko_filter(df, col, window, ...)

KZ filter implementation series is a pandas series window is the filter window m in the units of the data (m = 2q+1) iterations is the number of times the moving average is evaluated

linregress(x, y)

list_contains(list1, list2)

Return True if any item in list1 is also in list2.

long_to_wide(df)

search_listinlist(array1, array2)

wsdir2uv(ws, wdir)

melodies_monet.util.tools.findclosest(list, value)

Return (index, value) of the closest value in list to value.

melodies_monet.util.tools.kolmogorov_zurbenko_filter(df, col, window, iterations)

KZ filter implementation series is a pandas series window is the filter window m in the units of the data (m = 2q+1) iterations is the number of times the moving average is evaluated

melodies_monet.util.tools.list_contains(list1, list2)

Return True if any item in list1 is also in list2.