You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Global GFS model combined with hourly HRRR updates at 3-km resolution
Code Example :
#from openmeteo_py.Daily.Marine import Marine as Dailyfromopenmeteo_pyimportOWmanagerfromopenmeteo_py.Hourly.HourlyGfsimportHourlyGfsfromopenmeteo_py.Daily.DailyGfsimportDailyGfsfromopenmeteo_py.Options.GfsOptionsimportGfsOptionsfromopenmeteo_py.Utils.constantsimport*# Latitude, Longitude longitude=33.89latitude=-6.31hourly=HourlyGfs()
daily=DailyGfs()
options=GfsOptions(latitude,longitude)
#notice that we had to give the value "None" for the hourly parameter,otherwise you'll be filling the hourly parameter instead of the daily one.mgr=OWmanager(options,OWmanager.gfs,hourly.all(),daily.all())
# Download data,here we want it as a key value json where the keys are dates and values the corresponding values of that date (technically timestamp)meteo=mgr.get_data(1)
print(meteo)
Options :
Parameter
Format
Required
Default
latitude, longitude
Floating point
Yes
elevation
Floating point
No
current_weather
Bool
No
false
temperature_unit
String
No
celsius
windspeed_unit
String
No
kmh
precipitation_unit
String
No
kmh
timeformat
String
No
iso8601
timezone
String
No
UTC
forecast_days
Integer (0-16)
No
7
past_days
Integer (0-2)
No
0
start_end
Boolean
No
False
start_date,end_date
String (yyyy-mm-dd)
No
-
cell_selection
String
No
nearest
Hourly Parameter Definition :
Variable
Valid time
Unit
temperature_2m
Instant
°C (°F)
relativehumidity_2m
Instant
%
dewpoint_2m
Instant
°C (°F)
apparent_temperature
Instant
°C (°F)
pressure_msl,surface_pressure
Instant
hPa
cloudcover
Instant
%
cloudcover_low
Instant
%
cloudcover_mid
Instant
%
cloudcover_high
Instant
%
windspeed_10m
Instant
km/h (mph, m/s, knots)
windspeed_80m
Instant
km/h (mph, m/s, knots)
winddirection_10m
Instant
°
winddirection_80m
Instant
°
windgusts_10m
Preceding hour max
km/h (mph, m/s)
shortwave_radiation
Preceding hour mean W/m²
direct_radiation
Preceding hour mean
W/m²
diffuse_radiation
Preceding hour mean
W/mv²
vapor_pressure_deficit
Instant
kPa
precipitation
Preceding hour sum
mm (inch)
weathercode
Instant
WMO code
cape
Instant
J/kg
et0_fao_evapotranspiration
Preceding hour sum
mm (inch)
snowfall
Preceding hour sum
cm (inch)
snow_depth
Instant
meters
freezinglevel_height
Instant
meters
visibility
Instant
meters
lifted_index
Instant
meters
soil_temperature_0_to_10cm
Instant
°C (°F)rs
soil_temperature_10_to_40cm
Instant
°C (°F)
soil_temperature_40_to_100cm
Instant
°C (°F)
soil_temperature_100_to_200cm
Instant
°C (°F)
soil_moisture_0_to_10cm
Instant
m³/m³
soil_moisture_10_to_40cm
Instant
m³/m³
soil_moisture_40_to_100cm
Instant
m³/m³
soil_moisture_100_to_200cm
Instant
m³/m³
all
-
-
Pressure Level Variables
Pressure level variables do not have fixed altitudes. Altitude varies with atmospheric pressure. 1000 hPa is roughly between 60 and 160 meters above sea level. Estimated altitudes are given below. Altitudes are in meters above sea level (not above ground). For precise altitudes, geopotential_height can be used.
to call a pressure level method all you have to do is put the variable for example ; temperature then an underscore _ and the equivalent pressure level for example : 1015hpa
for this example the method is temperature_1015hpa()