Climate class

Explore Climate Change on a Local Level with High-Resolution Climate Data

https://open-meteo.com/en/docs/climate-api/

Constructors

Climate.new({String apiUrl = 'https://climate-api.open-meteo.com/v1/', required double latitude, required double longitude, required DateTime start_date, required DateTime end_date, TemperatureUnit? temperature_unit, WindspeedUnit? windspeed_unit, PrecipitationUnit? precipitation_unit, bool? disable_bias_correction, CellSelection? cell_selection, String? apikey})

Properties

apikey String?
Only required to commercial use to access reserved API resources for customers.
getter/setter pair
apiUrl String
Custom API URL, format: https://<domain>/<version>/.
getter/setter pair
cell_selection CellSelection?
Set a preference how grid-cells are selected.
getter/setter pair
disable_bias_correction bool?
Setting disable_bias_correction to true disables statistical downscaling and bias correction onto ERA5-Land. By default, all data is corrected using linear bias correction, and coefficients have been calculated for each month over a 50-year time series. The climate change signal is not affected by linear bias correction.
getter/setter pair
end_date DateTime
The time interval to get weather data.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
latitude double
Geographical WGS84 coordinates of the location.
final
longitude double
Geographical WGS84 coordinates of the location.
final
precipitation_unit PrecipitationUnit?
Other precipitation amount units: PrecipitationUnit.inch
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start_date DateTime
The time interval to get weather data.
getter/setter pair
temperature_unit TemperatureUnit?
If TemperatureUnit.fahrenheit is set, all temperature values are converted to Fahrenheit.
getter/setter pair
windspeed_unit WindspeedUnit?
Other wind speed speed units: WindspeedUnit.ms, WindspeedUnit.mph and WindspeedUnit.kn.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
raw_request({required List<Daily> daily, required List<ClimateModel> models}) Future<Map<String, dynamic>>
Create a HTTP request. The function will return JSON data as Map if successful.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited