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#

metobs_toolkit.analysis.Analysis(obsdf, ...)

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#

metobs_toolkit.analysis.Analysis.subset_period(...)

Subset the observations of the Analysis to a specific period.

metobs_toolkit.analysis.Analysis.apply_filter(...)

Filter an Analysis by a user definde string expression.

metobs_toolkit.analysis.Analysis.aggregate_df([...])

Aggregate observations to a (list of) categories.

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

Create an anual cycle for aggregated groups.

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

Create an average diurnal cycle for the observations.

metobs_toolkit.analysis.Analysis.get_diurnal_statistics_with_reference(...)

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

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

Create an average cycle for an aggregated categorie.

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

Compute pearson correlation coeficients.

Plotting methods#

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

Make a heatmap plot af a correaltion matrix.

metobs_toolkit.analysis.Analysis.plot_correlation_variation([title])

Create correlation scatter plot.