This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
An example script to generate random or observation-informed forecasts | |
for participants of trials using the Solar Forecast Arbiter. | |
This script is meant to be explored and modified. | |
A generation script should be run periodically as a cronjob or via | |
another scheduling mechanism at an appropriate interval that will be | |
determined by the trial/forecast parameters. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
An example script to generate random forecasts for participants | |
in the first test trial of the Solar Forecast Arbiter. | |
This script should be run as cronjob or via another scheduling | |
mechanism at an appropriate interval that will be determined by | |
the trial/forecast parameters. | |
""" | |
import logging | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import division, print_function, absolute_import | |
from math import exp, sin | |
from scipy.optimize.cython_optimize cimport zeros | |
NUM_OF_IRRAD = 10 | |
IL = [sin(il) + 6.0 for il in range(NUM_OF_IRRAD)] | |
# governing equations |