npm i --save weathernormalize
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);
npm test
© Nicholas Mattise, 2017
MIT LICENSE