Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'release' of /home/dss/integration/antioch-bare
  • Loading branch information
Mike McCarty committed Aug 31, 2011
2 parents 8c8723d + a795bbc commit c8cd198
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
18 changes: 9 additions & 9 deletions admin/forecasts/DBImport.py
Expand Up @@ -22,7 +22,7 @@

from utilities.SolarHeating import SolarHeating
import numpy
import matplotlib.pyplot as plt
#import matplotlib.pyplot as plt

class DBImport:

Expand Down Expand Up @@ -60,11 +60,11 @@ def correctWindSpeed(self, dt, windSpeedForcast):
else:
return windSpeedForcast

def plotCorrection(self):
xs = numpy.arange(0.0, 15.0, 0.1)
plt.plot(xs, numpy.polyval(self.windDayCoeff, xs))
plt.plot(xs, numpy.polyval(self.windNightCoeff, xs))
plt.xlabel("Forcasted")
plt.ylabel("Corrected")
plt.title("Forected vs. Corrected wind speed for 80th percentile")
plt.show()
#def plotCorrection(self):
# xs = numpy.arange(0.0, 15.0, 0.1)
# plt.plot(xs, numpy.polyval(self.windDayCoeff, xs))
# plt.plot(xs, numpy.polyval(self.windNightCoeff, xs))
# plt.xlabel("Forcasted")
# plt.ylabel("Corrected")
# plt.title("Forected vs. Corrected wind speed for 80th percentile")
# plt.show()
3 changes: 2 additions & 1 deletion admin/utilities/TimeAgent.py
Expand Up @@ -24,7 +24,8 @@

from mx import DateTime
import math
import slalib
#import slalib
from pyslalib import slalib
import datetime
import pytz

Expand Down

0 comments on commit c8cd198

Please sign in to comment.