Station#

The Station holds all the data related to a single station. This includes:

  • observational data, stored as SensorData,

  • metadata, stored as a Site,

  • and timeseries of a model source, stored as ModelTimeSeries.

Constructor#

Station(stationname, site, all_sensor_data)

Represents a weather station, holding metadata, sensor data, and model data.

Data attributes#

A summary of all the attributes that hold or return data.

Station.sensordata

The SensorData related to the station, as a dictionary.

Station.df

Construct a DataFrame representation of the observations.

Station.metadf

Construct a DataFrame representation of metadata.

Station.outliersdf

Construct a DataFrame representation of all the outliers.

Station.gapsdf

Construct a DataFrame representation of all the gaps.

Station.modeldatadf

Construct a DataFrame representation of all the present model data.

Station.present_observations

Get a list of all the present observation types.

General methods and attributes#

Station.get_sensor(obstype)

Get the SensorData instance for a specific observation type.

Station.get_info([printout])

Retrieve and optionally print detailed information about the station.

Station.resample(target_freq[, ...])

Resample observation data to a specified frequency.

Visualisations#

Station.make_plot_of_modeldata([obstype, ...])

Generate a time series plot of model data for a specific observation type.

Station.make_plot([obstype, colorby, ...])

Generate a time series plot for observational data.