power1d.data

Datasets.

Currently only one dataset is available:

“weather”

weather

power1d.data.weather()
This dataset was made available by Prof. James O. Ramsay of McGill University. The dataset was download from:
on 28 March 2017 (see the ./examples/weather directory).

The data have been converted from the original form in the “daily.mat” file to numpy format and saved in ./power1d/data/weather/daily.npz

This is a convenience function for loading those data.

Arguments:

(None)

Outputs:

A dictionary containing the following keys:

  • “Atlantic”

  • “Pacific”

  • “Continental”

  • “Arctic”

Each item is a (J x 365) array where J is the number of stations per region.

Example:

import matplotlib.pyplot as plt
import power1d

data = power1d.data.weather()   #load data dictionary
y    = data['Continental']   #extract one region
plt.plot(y.T, color="k")

(Source code, png, hires.png, pdf)

../_images/data-1.png