weathernormalize

0.1.2 • Public • Published

Weather Normalize Energy Data

Install

npm i --save weathernormalize

Normalize Energy Data

Requries data, monthly temperature, and montly climate normal. Returns array of temperature, energy, normalization Ratios and normalized energy data at monthly levels

normalized requires choice between 'heating', 'cooling' and 'electricity' modes

const {normalize} = require('weathernormalize');
var data = [{ 
	date: 1422766800000,
    temperature: 27.34794642857143,
    climateNormal: 47.4,
    energy: 39800.48199884797
    }, ...];
// normalize(data, type, startDate)
let normalizedData = normalize(data, 'electricity', new Date(1422766800000));
console.log(normalizedData);

Test

npm test

© Nicholas Mattise, 2017

MIT LICENSE

Package Sidebar

Install

npm i weathernormalize

Weekly Downloads

2

Version

0.1.2

License

MIT

Last publish

Collaborators

  • nmattise