public final class DataTransformException extends DegreeDaysApiException
This is part of the mechanism by which this client library can transform data into different breakdowns. These transformations are done locally, rather than going through the API servers.
Generally it only makes sense to attempt to transform daily data
into data with a different Breakdown
. Provided it covers the required
period in time, daily data can be summed into weekly, monthly, yearly, or
average data. If a transformation is not possible, this exception will
result.
To transform data locally, use DatedDataSet.transformToDated(net.degreedays.api.data.DatedBreakdown)
and
DatedDataSet.transformToAverage(net.degreedays.api.data.AverageBreakdown)
.
See www.degreedays.net/api/ for more about the Degree Days.net API.
You can sign up for a Degree Days.net API account and read the integration guide that is useful and applicable whether you are using Java or not.