weather

[D =] weather(lon=0.0, lat=0.0; city::String="", last=0, days=7, year::Int=0, starttime::Union{DateTime, String}="",
              endtime::Union{DateTime, String}="", variable="temperature_2m", dryrun=false, show=false, kw...)

Plot and/or retrieve weather data obtained from the Open-Meteo API. Please consult the site for further details. You will find that there are many variables available to plot and with not so obvious names. There are also forecast and archive versions of the variables. This function tries to guess that from the variable names. That list of variable names is a bit extensive and we are not reproducing it entirely here, but given it interest for climatological reason, we do list the so called \(daily\) variables.

A word of aknowledge is also due to the WeatherReport.jl project that inspired this function, that is much smaller (~25 LOC) and has no further dependencies than GMT itself.

Examples

# Plot the temperature forecast of your location. Also returns the data table.
D = weather(data=true, show=true)

Plot the rain fall during 2023 at Copenhagen

using GMT
weather(city="Copenhagen", year=2023, variable="rain_sum", show=true)