Click or drag to resize

RegressionResponseStationId Property

Gets the non-null, non-empty canonical ID of the weather station or combination of weather stations that supplied the temperature data used to calculate the degree days used for the regressions in this response.

Namespace: DegreeDays.Api.Regressions
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public string StationId { get; }

Property Value

String
Remarks

If this response does not actually contain any regressions, this will be the ID of the weather station that would have been used if it had had enough data to run regressions against the InputData provided in the request.

If the Location in the RegressionRequest was a StationIdLocation, this property will simply hold the canonical form of that weather station's ID. We say "canonical" because it's possible for a station ID to be expressed in more than one way, like upper case or lower case. The canonical form of the station ID is the form that you should display in a UI or store in a database if appropriate.

If the Location in the RegressionRequest was a GeographicLocation, then:

  • If the degree days used in the regressions were calculated using temperature data from a single station (the usual case), this method will return the canonical form of that station's ID.
  • If the degree days used in the regressions were calculated using temperature data combined from multiple stations (something that the API might optionally start doing at some point in the future), this method will return the ID of a "virtual station" that represents the specific combination of weather stations used.

Either way, the station ID returned by this method can be used to run more regressions or fetch more data from the same station(s) that were used to generate the degree days used for the regressions in this response. For example, you might want to start off using a GeographicLocation initially, and then use the returned station ID to fetch more data or run more regressions using the same station.

See Also