metobs_toolkit.analysis.Analysis#

class Analysis(obsdf, metadf, settings, obstypes)[source]#

The Analysis class contains methods for analysing observations.

__init__(obsdf, metadf, settings, obstypes)[source]#

Construct all the necessary attributes for Dataset object.

Methods

__init__(obsdf, metadf, settings, obstypes)

Construct all the necessary attributes for Dataset object.

aggregate_df([df, agg, method])

Aggregate observations to a (list of) categories.

apply_filter(expression)

Filter an Analysis by a user definde string expression.

get_aggregated_cycle_statistics([obstype, ...])

Create an average cycle for an aggregated categorie.

get_anual_statistics([groupby, obstype, ...])

Create an anual cycle for aggregated groups.

get_diurnal_statistics([colorby, obstype, ...])

Create an average diurnal cycle for the observations.

get_diurnal_statistics_with_reference(refstation)

Create an average diurnal cycle for the observation differences of a reference station.

get_lc_correlation_matrices([obstype, ...])

Compute pearson correlation coeficients.

plot_correlation_heatmap([groupby_value, ...])

Make a heatmap plot af a correaltion matrix.

plot_correlation_variation([title])

Create correlation scatter plot.

subset_period(startdt, enddt)

Subset the observations of the Analysis to a specific period.