SolarArbiter / solarforecastarbiter-api

HTTP API and database schema for the Solar Forecast Arbiter
https://api.solarforecastarbiter.org
MIT License
10 stars 6 forks source link

Enable restrictions of forecast times #183

Closed alorenzo175 closed 5 years ago

alorenzo175 commented 5 years ago

when "restrict_upload": true is in extra_parameters for a forecast (or cdf fx), only values that start with what should be the next init_time + lead_time_to_start are allowed to be posted.

I.e for a forecast with issue_time_of_day = 05:00 , run length of 6 hours, and lead_time_to_start of 1 hour, at 10:00 only a forecast series that begins with 12:00 will be allowed. And from 11:00:00.00001 to 16:59:59.99999, only a series with first time of 18:00 is allowed.

alorenzo175 commented 5 years ago

@wholmgren what do you think about these restrictions for trials?

wholmgren commented 5 years ago

Makes sense. Accounts for interval label?

alorenzo175 commented 5 years ago

not yet, but it will