power1d.data¶
Datasets.
Currently only one dataset is available:
“weather”
weather¶
- power1d.data.weather()¶
Canadian weather dataset from the R package “fda” (version 6.1.9) by James Ramsay, Giles Hooker and Spencer Graves, distributed under the license “GPL (>= 2)”: https://cran.r-project.org/package=fda
The data have been converted from “CanadianWeather.rda” to numpy format and saved in ./power1d/data/weather/CanadianWeather.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)