Analysis#

The Analysis class holds observations (assumed to be correct) and methods for analysing and aggregating the data. An Analysis is typical created from a Dataset after the cleanup of the raw observations.

Constructor#

analysis.Analysis(obsdf, metadf, settings, ...)

The Analysis class contains methods for analysing observations.

Note

It is most common to construct the Analysis directly from a Dataset using metobs_toolkit.Dataset.get_analysis() method.

General methods and attributes#

analysis.Analysis.subset_period(startdt, enddt)

Subset the observations of the Analysis to a specific period.

analysis.Analysis.apply_filter(expression)

Filter an Analysis by a user definde string expression.

analysis.Analysis.aggregate_df([df, agg, method])

Aggregate observations to a (list of) categories.

analysis.Analysis.get_anual_statistics([...])

Create an anual cycle for aggregated groups.

analysis.Analysis.get_diurnal_statistics([...])

Create an average diurnal cycle for the observations.

analysis.Analysis.get_diurnal_statistics_with_reference(...)

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

analysis.Analysis.get_aggregated_cycle_statistics([...])

Create an average cycle for an aggregated categorie.

analysis.Analysis.get_lc_correlation_matrices([...])

Compute pearson correlation coeficients.

Plotting methods#

analysis.Analysis.plot_correlation_heatmap([...])

Make a heatmap plot af a correaltion matrix.

analysis.Analysis.plot_correlation_variation([title])

Create correlation scatter plot.