44from sfa_api import spec , ma
55
66
7- VARIABLES = ['ghi' , 'dni' , 'dhi' , 'temp ' , 'wspd ' ,
7+ VARIABLES = ['ghi' , 'dni' , 'dhi' , 'temp_air ' , 'wind_speed ' ,
88 'poa' , 'ac_power' , 'dc_power' ]
99VARIABLE_FIELD = variable = ma .String (
1010 title = 'Variable' ,
@@ -124,7 +124,7 @@ class Meta:
124124 variable = VARIABLE_FIELD
125125 site_id = ma .UUID (
126126 title = 'Site ID' ,
127- description = "UUID the assocaiated site" ,
127+ description = "UUID the associated site" ,
128128 required = True )
129129 name = ma .String (
130130 title = 'Name' ,
@@ -133,9 +133,10 @@ class Meta:
133133 interval_label = ma .String (
134134 title = 'Interval Label' ,
135135 description = ('For data that represents intervals, indicates if a time '
136- 'labels the beginning or ending of the interval. N/A for '
137- 'instantaneous data' ),
138- validate = validate .OneOf (['start' , 'end' ]))
136+ 'labels the beginning or ending of the interval. '
137+ 'instant for instantaneous data' ),
138+ validate = validate .OneOf (['beginning' , 'ending' , 'instant' ]),
139+ required = True )
139140 uncertainty = ma .Float (
140141 title = 'Uncertainty' ,
141142 description = 'A measure of the uncertainty of the observation values.' )
@@ -209,28 +210,27 @@ class Meta:
209210 'the run length & issue frequency attribute.' ))
210211 lead_time_to_start = ma .String (
211212 title = 'Lead time to start' ,
212- description = "Lead time to start of forecast" ,
213+ description = ("The difference between the issue time and the start of "
214+ "the first forecast interval, e.g. 1 hour." ),
213215 required = True )
214-
215216 interval_label = ma .String (
216217 title = 'Interval Label' ,
217218 description = ('For data that represents intervals, indicates if a time '
218219 'labels the beginning or ending of the interval. N/A for '
219220 'instantaneous data' ),
220- validate = validate .OneOf (['start' , 'end' ]))
221- duration = ma .String (
222- title = 'Duration' ,
223- description = "Interval duration" ,
224- required = True
225- )
226- intervals = ma .Integer (
227- title = 'Intervals' ,
228- description = "Intervals per submission" ,
221+ validate = validate .OneOf (['beginning' , 'ending' , 'instant' ]))
222+ interval_length = ma .String (
223+ title = 'Interval length' ,
224+ description = ('The length of time that each data point represents '
225+ 'e.g. 5 minutes, 1 hour.' ),
229226 required = True
230227 )
231- issue_frequency = ma .String (
232- title = 'Issue Frequency' ,
233- description = "Forecast issue frequency" ,
228+ run_length = ma .String (
229+ title = 'Run Length / Issue Frequency' ,
230+ description = ('The total length of a single issued forecast run '
231+ 'e.g. 1 hour. To enforce a continuous, non-overlapping '
232+ 'sequence, this is equal to the forecast run issue '
233+ 'frequency.' ),
234234 required = True ,
235235 )
236236 value_type = ma .String (
0 commit comments