diff --git a/flatbuffers/openmeteo_sdk.fbs b/flatbuffers/openmeteo_sdk.fbs index c8a20bd..416d38a 100644 --- a/flatbuffers/openmeteo_sdk.fbs +++ b/flatbuffers/openmeteo_sdk.fbs @@ -103,7 +103,8 @@ enum Model: byte { MPI_ESM1_2_XR, NICAM16_8S, cams_europe, - cams_global + cams_global, + cfsv2 } enum Variable: byte { @@ -114,6 +115,7 @@ enum Variable: byte { cloudcover_high, cloudcover_low, cloudcover_mid, + daylight_duration, dewpoint, diffuse_radiation, diffuse_radiation_instant, @@ -131,6 +133,7 @@ enum Variable: byte { lifted_index, lightning_potential, precipitation, + precipitation_hours, precipitation_probability, pressure_msl, rain, @@ -145,6 +148,8 @@ enum Variable: byte { snowfall, snowfall_height, snowfall_water_equivalent, + sunrise, + sunset, soil_moisture, soil_moisture_index, soil_temperature, diff --git a/python/openmeteo_sdk/ApiResponse.py b/python/openmeteo_sdk/ApiResponse.py index 412ef65..05a6791 100644 --- a/python/openmeteo_sdk/ApiResponse.py +++ b/python/openmeteo_sdk/ApiResponse.py @@ -120,19 +120,9 @@ def Hourly(self) -> Optional[SeriesAndTime]: return obj return None - # ApiResponse - def ThreeHourly(self) -> Optional[SeriesAndTime]: - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(28)) - if o != 0: - x = self._tab.Indirect(o + self._tab.Pos) - obj = SeriesAndTime() - obj.Init(self._tab.Bytes, x) - return obj - return None - # ApiResponse def SixHourly(self) -> Optional[SeriesAndTime]: - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(30)) + o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(28)) if o != 0: x = self._tab.Indirect(o + self._tab.Pos) obj = SeriesAndTime() @@ -142,7 +132,7 @@ def SixHourly(self) -> Optional[SeriesAndTime]: # ApiResponse def Minutely15(self) -> Optional[SeriesAndTime]: - o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(32)) + o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(30)) if o != 0: x = self._tab.Indirect(o + self._tab.Pos) obj = SeriesAndTime() diff --git a/python/openmeteo_sdk/Model.py b/python/openmeteo_sdk/Model.py index 91af4b7..3631af6 100644 --- a/python/openmeteo_sdk/Model.py +++ b/python/openmeteo_sdk/Model.py @@ -56,3 +56,4 @@ class Model(Enum): NICAM16_8S = 48 cams_europe = 49 cams_global = 50 + cfsv2 = 51 diff --git a/python/openmeteo_sdk/Variable.py b/python/openmeteo_sdk/Variable.py index bebe9d6..d579f54 100644 --- a/python/openmeteo_sdk/Variable.py +++ b/python/openmeteo_sdk/Variable.py @@ -12,95 +12,99 @@ class Variable(Enum): cloudcover_high = 4 cloudcover_low = 5 cloudcover_mid = 6 - dewpoint = 7 - diffuse_radiation = 8 - diffuse_radiation_instant = 9 - direct_normal_irradiance = 10 - direct_normal_irradiance_instant = 11 - direct_radiation = 12 - direct_radiation_instant = 13 - et0_fao_evapotranspiration = 14 - evapotranspiration = 15 - freezinglevel_height = 16 - growing_degree_days = 17 - is_day = 18 - latent_heatflux = 19 - leaf_wetness_probability = 20 - lifted_index = 21 - lightning_potential = 22 - precipitation = 23 - precipitation_probability = 24 - pressure_msl = 25 - rain = 26 - relativehumidity = 27 - runoff = 28 - sensible_heatflux = 29 - shortwave_radiation = 30 - shortwave_radiation_instant = 31 - showers = 32 - snow_depth = 33 - snow_height = 34 - snowfall = 35 - snowfall_height = 36 - snowfall_water_equivalent = 37 - soil_moisture = 38 - soil_moisture_index = 39 - soil_temperature = 40 - surface_pressure = 41 - surface_temperature = 42 - temperature = 43 - terrestrial_radiation = 44 - terrestrial_radiation_instant = 45 - total_column_integrated_water_vapour = 46 - updraft = 47 - uv_index = 48 - uv_index_clear_sky = 49 - vapor_pressure_deficit = 50 - visibility = 51 - weathercode = 52 - winddirection = 53 - windgusts = 54 - windspeed = 55 - vertical_velocity = 56 - geopotential_height = 57 - wet_bulb_temperature = 58 - river_discharge = 59 - wave_height = 60 - wave_period = 61 - wave_direction = 62 - wind_wave_height = 63 - wind_wave_period = 64 - wind_wave_peak_period = 65 - wind_wave_direction = 66 - swell_wave_height = 67 - swell_wave_period = 68 - swell_wave_peak_period = 69 - swell_wave_direction = 70 - pm10 = 71 - pm2p5 = 72 - dust = 73 - aerosol_optical_depth = 74 - carbon_monoxide = 75 - nitrogen_dioxide = 76 - ammonia = 77 - ozone = 78 - sulphur_dioxide = 79 - alder_pollen = 80 - birch_pollen = 81 - grass_pollen = 82 - mugwort_pollen = 83 - olive_pollen = 84 - ragweed_pollen = 85 - european_aqi = 86 - european_aqi_pm2p5 = 87 - european_aqi_pm10 = 88 - european_aqi_no2 = 89 - european_aqi_o3 = 90 - european_aqi_so2 = 91 - us_aqi = 92 - us_aqi_pm2p5 = 93 - us_aqi_pm10 = 94 - us_aqi_no2 = 95 - us_aqi_o3 = 96 - us_aqi_so2 = 97 - us_aqi_co = 98 + daylight_duration = 7 + dewpoint = 8 + diffuse_radiation = 9 + diffuse_radiation_instant = 10 + direct_normal_irradiance = 11 + direct_normal_irradiance_instant = 12 + direct_radiation = 13 + direct_radiation_instant = 14 + et0_fao_evapotranspiration = 15 + evapotranspiration = 16 + freezinglevel_height = 17 + growing_degree_days = 18 + is_day = 19 + latent_heatflux = 20 + leaf_wetness_probability = 21 + lifted_index = 22 + lightning_potential = 23 + precipitation = 24 + precipitation_hours = 25 + precipitation_probability = 26 + pressure_msl = 27 + rain = 28 + relativehumidity = 29 + runoff = 30 + sensible_heatflux = 31 + shortwave_radiation = 32 + shortwave_radiation_instant = 33 + showers = 34 + snow_depth = 35 + snow_height = 36 + snowfall = 37 + snowfall_height = 38 + snowfall_water_equivalent = 39 + sunrise = 40 + sunset = 41 + soil_moisture = 42 + soil_moisture_index = 43 + soil_temperature = 44 + surface_pressure = 45 + surface_temperature = 46 + temperature = 47 + terrestrial_radiation = 48 + terrestrial_radiation_instant = 49 + total_column_integrated_water_vapour = 50 + updraft = 51 + uv_index = 52 + uv_index_clear_sky = 53 + vapor_pressure_deficit = 54 + visibility = 55 + weathercode = 56 + winddirection = 57 + windgusts = 58 + windspeed = 59 + vertical_velocity = 60 + geopotential_height = 61 + wet_bulb_temperature = 62 + river_discharge = 63 + wave_height = 64 + wave_period = 65 + wave_direction = 66 + wind_wave_height = 67 + wind_wave_period = 68 + wind_wave_peak_period = 69 + wind_wave_direction = 70 + swell_wave_height = 71 + swell_wave_period = 72 + swell_wave_peak_period = 73 + swell_wave_direction = 74 + pm10 = 75 + pm2p5 = 76 + dust = 77 + aerosol_optical_depth = 78 + carbon_monoxide = 79 + nitrogen_dioxide = 80 + ammonia = 81 + ozone = 82 + sulphur_dioxide = 83 + alder_pollen = 84 + birch_pollen = 85 + grass_pollen = 86 + mugwort_pollen = 87 + olive_pollen = 88 + ragweed_pollen = 89 + european_aqi = 90 + european_aqi_pm2p5 = 91 + european_aqi_pm10 = 92 + european_aqi_no2 = 93 + european_aqi_o3 = 94 + european_aqi_so2 = 95 + us_aqi = 96 + us_aqi_pm2p5 = 97 + us_aqi_pm10 = 98 + us_aqi_no2 = 99 + us_aqi_o3 = 100 + us_aqi_so2 = 101 + us_aqi_co = 102 diff --git a/swift/Sources/OpenMeteoSdk/openmeteo_sdk_generated.swift b/swift/Sources/OpenMeteoSdk/openmeteo_sdk_generated.swift index b193388..a0280db 100644 --- a/swift/Sources/OpenMeteoSdk/openmeteo_sdk_generated.swift +++ b/swift/Sources/OpenMeteoSdk/openmeteo_sdk_generated.swift @@ -110,8 +110,9 @@ public enum openmeteo_sdk_Model: Int8, Enum, Verifiable { case nicam168s = 48 case camsEurope = 49 case camsGlobal = 50 + case cfsv2 = 51 - public static var max: openmeteo_sdk_Model { return .camsGlobal } + public static var max: openmeteo_sdk_Model { return .cfsv2 } public static var min: openmeteo_sdk_Model { return .undefined } } @@ -127,98 +128,102 @@ public enum openmeteo_sdk_Variable: Int8, Enum, Verifiable { case cloudcoverHigh = 4 case cloudcoverLow = 5 case cloudcoverMid = 6 - case dewpoint = 7 - case diffuseRadiation = 8 - case diffuseRadiationInstant = 9 - case directNormalIrradiance = 10 - case directNormalIrradianceInstant = 11 - case directRadiation = 12 - case directRadiationInstant = 13 - case et0FaoEvapotranspiration = 14 - case evapotranspiration = 15 - case freezinglevelHeight = 16 - case growingDegreeDays = 17 - case isDay = 18 - case latentHeatflux = 19 - case leafWetnessProbability = 20 - case liftedIndex = 21 - case lightningPotential = 22 - case precipitation = 23 - case precipitationProbability = 24 - case pressureMsl = 25 - case rain = 26 - case relativehumidity = 27 - case runoff = 28 - case sensibleHeatflux = 29 - case shortwaveRadiation = 30 - case shortwaveRadiationInstant = 31 - case showers = 32 - case snowDepth = 33 - case snowHeight = 34 - case snowfall = 35 - case snowfallHeight = 36 - case snowfallWaterEquivalent = 37 - case soilMoisture = 38 - case soilMoistureIndex = 39 - case soilTemperature = 40 - case surfacePressure = 41 - case surfaceTemperature = 42 - case temperature = 43 - case terrestrialRadiation = 44 - case terrestrialRadiationInstant = 45 - case totalColumnIntegratedWaterVapour = 46 - case updraft = 47 - case uvIndex = 48 - case uvIndexClearSky = 49 - case vaporPressureDeficit = 50 - case visibility = 51 - case weathercode = 52 - case winddirection = 53 - case windgusts = 54 - case windspeed = 55 - case verticalVelocity = 56 - case geopotentialHeight = 57 - case wetBulbTemperature = 58 - case riverDischarge = 59 - case waveHeight = 60 - case wavePeriod = 61 - case waveDirection = 62 - case windWaveHeight = 63 - case windWavePeriod = 64 - case windWavePeakPeriod = 65 - case windWaveDirection = 66 - case swellWaveHeight = 67 - case swellWavePeriod = 68 - case swellWavePeakPeriod = 69 - case swellWaveDirection = 70 - case pm10 = 71 - case pm2p5 = 72 - case dust = 73 - case aerosolOpticalDepth = 74 - case carbonMonoxide = 75 - case nitrogenDioxide = 76 - case ammonia = 77 - case ozone = 78 - case sulphurDioxide = 79 - case alderPollen = 80 - case birchPollen = 81 - case grassPollen = 82 - case mugwortPollen = 83 - case olivePollen = 84 - case ragweedPollen = 85 - case europeanAqi = 86 - case europeanAqiPm2p5 = 87 - case europeanAqiPm10 = 88 - case europeanAqiNo2 = 89 - case europeanAqiO3 = 90 - case europeanAqiSo2 = 91 - case usAqi = 92 - case usAqiPm2p5 = 93 - case usAqiPm10 = 94 - case usAqiNo2 = 95 - case usAqiO3 = 96 - case usAqiSo2 = 97 - case usAqiCo = 98 + case daylightDuration = 7 + case dewpoint = 8 + case diffuseRadiation = 9 + case diffuseRadiationInstant = 10 + case directNormalIrradiance = 11 + case directNormalIrradianceInstant = 12 + case directRadiation = 13 + case directRadiationInstant = 14 + case et0FaoEvapotranspiration = 15 + case evapotranspiration = 16 + case freezinglevelHeight = 17 + case growingDegreeDays = 18 + case isDay = 19 + case latentHeatflux = 20 + case leafWetnessProbability = 21 + case liftedIndex = 22 + case lightningPotential = 23 + case precipitation = 24 + case precipitationHours = 25 + case precipitationProbability = 26 + case pressureMsl = 27 + case rain = 28 + case relativehumidity = 29 + case runoff = 30 + case sensibleHeatflux = 31 + case shortwaveRadiation = 32 + case shortwaveRadiationInstant = 33 + case showers = 34 + case snowDepth = 35 + case snowHeight = 36 + case snowfall = 37 + case snowfallHeight = 38 + case snowfallWaterEquivalent = 39 + case sunrise = 40 + case sunset = 41 + case soilMoisture = 42 + case soilMoistureIndex = 43 + case soilTemperature = 44 + case surfacePressure = 45 + case surfaceTemperature = 46 + case temperature = 47 + case terrestrialRadiation = 48 + case terrestrialRadiationInstant = 49 + case totalColumnIntegratedWaterVapour = 50 + case updraft = 51 + case uvIndex = 52 + case uvIndexClearSky = 53 + case vaporPressureDeficit = 54 + case visibility = 55 + case weathercode = 56 + case winddirection = 57 + case windgusts = 58 + case windspeed = 59 + case verticalVelocity = 60 + case geopotentialHeight = 61 + case wetBulbTemperature = 62 + case riverDischarge = 63 + case waveHeight = 64 + case wavePeriod = 65 + case waveDirection = 66 + case windWaveHeight = 67 + case windWavePeriod = 68 + case windWavePeakPeriod = 69 + case windWaveDirection = 70 + case swellWaveHeight = 71 + case swellWavePeriod = 72 + case swellWavePeakPeriod = 73 + case swellWaveDirection = 74 + case pm10 = 75 + case pm2p5 = 76 + case dust = 77 + case aerosolOpticalDepth = 78 + case carbonMonoxide = 79 + case nitrogenDioxide = 80 + case ammonia = 81 + case ozone = 82 + case sulphurDioxide = 83 + case alderPollen = 84 + case birchPollen = 85 + case grassPollen = 86 + case mugwortPollen = 87 + case olivePollen = 88 + case ragweedPollen = 89 + case europeanAqi = 90 + case europeanAqiPm2p5 = 91 + case europeanAqiPm10 = 92 + case europeanAqiNo2 = 93 + case europeanAqiO3 = 94 + case europeanAqiSo2 = 95 + case usAqi = 96 + case usAqiPm2p5 = 97 + case usAqiPm10 = 98 + case usAqiNo2 = 99 + case usAqiO3 = 100 + case usAqiSo2 = 101 + case usAqiCo = 102 public static var max: openmeteo_sdk_Variable { return .usAqiCo } public static var min: openmeteo_sdk_Variable { return .undefined } diff --git a/ts/model.ts b/ts/model.ts index aa018a8..4468da4 100644 --- a/ts/model.ts +++ b/ts/model.ts @@ -51,5 +51,6 @@ export enum Model { MPI_ESM1_2_XR = 47, NICAM16_8S = 48, cams_europe = 49, - cams_global = 50 + cams_global = 50, + cfsv2 = 51 } diff --git a/ts/variable.ts b/ts/variable.ts index 5f35120..cee8c2a 100644 --- a/ts/variable.ts +++ b/ts/variable.ts @@ -8,96 +8,100 @@ export enum Variable { cloudcover_high = 4, cloudcover_low = 5, cloudcover_mid = 6, - dewpoint = 7, - diffuse_radiation = 8, - diffuse_radiation_instant = 9, - direct_normal_irradiance = 10, - direct_normal_irradiance_instant = 11, - direct_radiation = 12, - direct_radiation_instant = 13, - et0_fao_evapotranspiration = 14, - evapotranspiration = 15, - freezinglevel_height = 16, - growing_degree_days = 17, - is_day = 18, - latent_heatflux = 19, - leaf_wetness_probability = 20, - lifted_index = 21, - lightning_potential = 22, - precipitation = 23, - precipitation_probability = 24, - pressure_msl = 25, - rain = 26, - relativehumidity = 27, - runoff = 28, - sensible_heatflux = 29, - shortwave_radiation = 30, - shortwave_radiation_instant = 31, - showers = 32, - snow_depth = 33, - snow_height = 34, - snowfall = 35, - snowfall_height = 36, - snowfall_water_equivalent = 37, - soil_moisture = 38, - soil_moisture_index = 39, - soil_temperature = 40, - surface_pressure = 41, - surface_temperature = 42, - temperature = 43, - terrestrial_radiation = 44, - terrestrial_radiation_instant = 45, - total_column_integrated_water_vapour = 46, - updraft = 47, - uv_index = 48, - uv_index_clear_sky = 49, - vapor_pressure_deficit = 50, - visibility = 51, - weathercode = 52, - winddirection = 53, - windgusts = 54, - windspeed = 55, - vertical_velocity = 56, - geopotential_height = 57, - wet_bulb_temperature = 58, - river_discharge = 59, - wave_height = 60, - wave_period = 61, - wave_direction = 62, - wind_wave_height = 63, - wind_wave_period = 64, - wind_wave_peak_period = 65, - wind_wave_direction = 66, - swell_wave_height = 67, - swell_wave_period = 68, - swell_wave_peak_period = 69, - swell_wave_direction = 70, - pm10 = 71, - pm2p5 = 72, - dust = 73, - aerosol_optical_depth = 74, - carbon_monoxide = 75, - nitrogen_dioxide = 76, - ammonia = 77, - ozone = 78, - sulphur_dioxide = 79, - alder_pollen = 80, - birch_pollen = 81, - grass_pollen = 82, - mugwort_pollen = 83, - olive_pollen = 84, - ragweed_pollen = 85, - european_aqi = 86, - european_aqi_pm2p5 = 87, - european_aqi_pm10 = 88, - european_aqi_no2 = 89, - european_aqi_o3 = 90, - european_aqi_so2 = 91, - us_aqi = 92, - us_aqi_pm2p5 = 93, - us_aqi_pm10 = 94, - us_aqi_no2 = 95, - us_aqi_o3 = 96, - us_aqi_so2 = 97, - us_aqi_co = 98 + daylight_duration = 7, + dewpoint = 8, + diffuse_radiation = 9, + diffuse_radiation_instant = 10, + direct_normal_irradiance = 11, + direct_normal_irradiance_instant = 12, + direct_radiation = 13, + direct_radiation_instant = 14, + et0_fao_evapotranspiration = 15, + evapotranspiration = 16, + freezinglevel_height = 17, + growing_degree_days = 18, + is_day = 19, + latent_heatflux = 20, + leaf_wetness_probability = 21, + lifted_index = 22, + lightning_potential = 23, + precipitation = 24, + precipitation_hours = 25, + precipitation_probability = 26, + pressure_msl = 27, + rain = 28, + relativehumidity = 29, + runoff = 30, + sensible_heatflux = 31, + shortwave_radiation = 32, + shortwave_radiation_instant = 33, + showers = 34, + snow_depth = 35, + snow_height = 36, + snowfall = 37, + snowfall_height = 38, + snowfall_water_equivalent = 39, + sunrise = 40, + sunset = 41, + soil_moisture = 42, + soil_moisture_index = 43, + soil_temperature = 44, + surface_pressure = 45, + surface_temperature = 46, + temperature = 47, + terrestrial_radiation = 48, + terrestrial_radiation_instant = 49, + total_column_integrated_water_vapour = 50, + updraft = 51, + uv_index = 52, + uv_index_clear_sky = 53, + vapor_pressure_deficit = 54, + visibility = 55, + weathercode = 56, + winddirection = 57, + windgusts = 58, + windspeed = 59, + vertical_velocity = 60, + geopotential_height = 61, + wet_bulb_temperature = 62, + river_discharge = 63, + wave_height = 64, + wave_period = 65, + wave_direction = 66, + wind_wave_height = 67, + wind_wave_period = 68, + wind_wave_peak_period = 69, + wind_wave_direction = 70, + swell_wave_height = 71, + swell_wave_period = 72, + swell_wave_peak_period = 73, + swell_wave_direction = 74, + pm10 = 75, + pm2p5 = 76, + dust = 77, + aerosol_optical_depth = 78, + carbon_monoxide = 79, + nitrogen_dioxide = 80, + ammonia = 81, + ozone = 82, + sulphur_dioxide = 83, + alder_pollen = 84, + birch_pollen = 85, + grass_pollen = 86, + mugwort_pollen = 87, + olive_pollen = 88, + ragweed_pollen = 89, + european_aqi = 90, + european_aqi_pm2p5 = 91, + european_aqi_pm10 = 92, + european_aqi_no2 = 93, + european_aqi_o3 = 94, + european_aqi_so2 = 95, + us_aqi = 96, + us_aqi_pm2p5 = 97, + us_aqi_pm10 = 98, + us_aqi_no2 = 99, + us_aqi_o3 = 100, + us_aqi_so2 = 101, + us_aqi_co = 102 }