Closed srivats0603 closed 10 years ago
update: added function format and made couple of other changes: 44b0183
Tests?
Following is coloma input vs. output for scaling const = 140.0
output: blue, input: green
Following is frank input vs. output for scaling const = 300.0
output: blue, input: green As of now, scaling constants have been obtained by trial and error
Here's my super-sophsticated algorithm for finding the scaling constant:
scadaAvg = average(substationHourlyPowerFromSCADA) glmAvg = average(subHourlyPowerFromRunningGlmForOneYear) scalingConstant = scadaAvg/glmAvg
:sunglasses:
yeah... precisely!
added the scaling factor calculation algo: 93649c3 Tested on frank, output:
Coloma, output:
Issue: scada player path not recognized by gridlab?
I created a temp directory to do the calibration in: currently working in c:\users\sxs15\appdata\local\temp\tmperaabc
Then created the scadaplayer file in the same folder: c:\users\sxs15\appdata\local\temp\tmperaabc\scada.player created
but the 'sync_player' somehow parses this path into a format without '\' and gives an error: ERROR [2011-01-01 00:00:00 PST] : sync_player: Unable to open player file 'c:userssxs15appdatalocaltemptmperaabcscada.player' for object 'scadaLoads'
Any pointers?
Pointer: escape the backslashes in your Windows paths. E.g. myPath = "C:\Users\dwp0\file.txt". myBrokenPath = "C:\Users\dwp0\file.txt"
Try using double backslashes "\", forward slashes "/", or double-quotes around the whole thing.
But you were quicker on the draw!
Check commit c9243c3 for latest updates
Good commit. Thanks for pushing to github--keeps everyone in the loop if they want to be.
Question regarding path of scada player file: the scada file name that is taken as an input from the user, can already contain the path of the location where we want to dump the scada file, then do we also need to write it separately into the output path, which is taken as another input from the user?
Huh?
My bad. Spec corrected. All work should be done in the workDir.
commit: 4ba7ea1
Only taking Workdir, scada filename and feeder tree as input. scadaplayer and calibrated feeders are written in the workdir only relative paths are passed
Todos:
Done as of 5567a7c255e570e3653b68a00f6baa559fb9b3a3
/omf/scratch/calibrateSkunkworks/
We need a fast, easy, small loadshape calibrator. I, Srivats, will endeavor to build this.
Todo items: