Skip to content

Instantly share code, notes, and snippets.

View alorenzo175's full-sized avatar

Antonio Lorenzo alorenzo175

View GitHub Profile
"""
An example script to generate random forecasts for participants
in the first test trial of the Solar Forecast Arbiter.
This 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.
"""
import logging
import sys
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 1 column, instead of 3. in line 2.
# observation_id: 8feffe15-a0fc-11ea-9a25-9a2ee76b6523
# metadata: http://localhost:5000/observations/8feffe15-a0fc-11ea-9a25-9a2ee76b6523/metadata
timestamp,value,quality_flag
20200525T05:59:00+0000,-2.42e-06,18
20200525T06:00:00+0000,-2.5e-06,18
20200525T06:01:00+0000,-2.57e-06,18
20200525T06:02:00+0000,-2.35e-06,18
20200525T06:03:00+0000,-2.57e-06,18
20200525T06:04:00+0000,-2.42e-06,18
20200525T06:05:00+0000,-2.64e-06,18
@alorenzo175
alorenzo175 / test_trial_1_random_forecast_upload.py
Created May 18, 2020 17:42
Solar Forecast Arbiter Test Trial 1 Script
"""
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