Skip to content

Commit

Permalink
fix: register KNMI and DMI models
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-zippenfenig committed Jul 3, 2024
1 parent fa5429d commit fd70e55
Show file tree
Hide file tree
Showing 12 changed files with 36 additions and 8 deletions.
3 changes: 3 additions & 0 deletions csharp/openmeteo_sdk/Model.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ public enum Model : byte
ecmwf_wam025_ensemble = 67,
ncep_gfswave025 = 68,
ncep_gefswave025 = 69,
knmi_harmonie_arome_europe = 70,
knmi_harmonie_arome_netherlands = 71,
dmi_harmonie_arome_europe = 72,
};


Expand Down
1 change: 1 addition & 0 deletions csharp/openmeteo_sdk/Variable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ public enum Variable : byte
global_tilted_irradiance_instant = 107,
ocean_current_velocity = 108,
ocean_current_direction = 109,
cloud_cover_2m = 110,
};


Expand Down
8 changes: 6 additions & 2 deletions flatbuffers/weather_api.fbs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ enum Model: ubyte {
meteofrance_currents,
ecmwf_wam025_ensemble,
ncep_gfswave025,
ncep_gefswave025
ncep_gefswave025,
knmi_harmonie_arome_europe,
knmi_harmonie_arome_netherlands,
dmi_harmonie_arome_europe
}

enum Variable: ubyte {
Expand Down Expand Up @@ -235,7 +238,8 @@ enum Variable: ubyte {
global_tilted_irradiance,
global_tilted_irradiance_instant,
ocean_current_velocity,
ocean_current_direction
ocean_current_direction,
cloud_cover_2m
}

enum Aggregation: ubyte {
Expand Down
5 changes: 4 additions & 1 deletion java/com/openmeteo/sdk/Model.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,11 @@ private Model() { }
public static final int ecmwf_wam025_ensemble = 67;
public static final int ncep_gfswave025 = 68;
public static final int ncep_gefswave025 = 69;
public static final int knmi_harmonie_arome_europe = 70;
public static final int knmi_harmonie_arome_netherlands = 71;
public static final int dmi_harmonie_arome_europe = 72;

public static final String[] names = { "undefined", "best_match", "gfs_seamless", "gfs_global", "gfs_hrrr", "meteofrance_seamless", "meteofrance_arpege_seamless", "meteofrance_arpege_world", "meteofrance_arpege_europe", "meteofrance_arome_seamless", "meteofrance_arome_france", "meteofrance_arome_france_hd", "jma_seamless", "jma_msm", "jms_gsm", "jma_gsm", "gem_seamless", "gem_global", "gem_regional", "gem_hrdps_continental", "icon_seamless", "icon_global", "icon_eu", "icon_d2", "ecmwf_ifs04", "metno_nordic", "era5_seamless", "era5", "cerra", "era5_land", "ecmwf_ifs", "gwam", "ewam", "glofas_seamless_v3", "glofas_forecast_v3", "glofas_consolidated_v3", "glofas_seamless_v4", "glofas_forecast_v4", "glofas_consolidated_v4", "gfs025", "gfs05", "CMCC_CM2_VHR4", "FGOALS_f3_H_highresSST", "FGOALS_f3_H", "HiRAM_SIT_HR", "MRI_AGCM3_2_S", "EC_Earth3P_HR", "MPI_ESM1_2_XR", "NICAM16_8S", "cams_europe", "cams_global", "cfsv2", "era5_ocean", "cma_grapes_global", "bom_access_global", "bom_access_global_ensemble", "arpae_cosmo_seamless", "arpae_cosmo_2i", "arpae_cosmo_2i_ruc", "arpae_cosmo_5m", "ecmwf_ifs025", "ecmwf_aifs025", "gfs013", "gfs_graphcast025", "ecmwf_wam025", "meteofrance_wave", "meteofrance_currents", "ecmwf_wam025_ensemble", "ncep_gfswave025", "ncep_gefswave025", };
public static final String[] names = { "undefined", "best_match", "gfs_seamless", "gfs_global", "gfs_hrrr", "meteofrance_seamless", "meteofrance_arpege_seamless", "meteofrance_arpege_world", "meteofrance_arpege_europe", "meteofrance_arome_seamless", "meteofrance_arome_france", "meteofrance_arome_france_hd", "jma_seamless", "jma_msm", "jms_gsm", "jma_gsm", "gem_seamless", "gem_global", "gem_regional", "gem_hrdps_continental", "icon_seamless", "icon_global", "icon_eu", "icon_d2", "ecmwf_ifs04", "metno_nordic", "era5_seamless", "era5", "cerra", "era5_land", "ecmwf_ifs", "gwam", "ewam", "glofas_seamless_v3", "glofas_forecast_v3", "glofas_consolidated_v3", "glofas_seamless_v4", "glofas_forecast_v4", "glofas_consolidated_v4", "gfs025", "gfs05", "CMCC_CM2_VHR4", "FGOALS_f3_H_highresSST", "FGOALS_f3_H", "HiRAM_SIT_HR", "MRI_AGCM3_2_S", "EC_Earth3P_HR", "MPI_ESM1_2_XR", "NICAM16_8S", "cams_europe", "cams_global", "cfsv2", "era5_ocean", "cma_grapes_global", "bom_access_global", "bom_access_global_ensemble", "arpae_cosmo_seamless", "arpae_cosmo_2i", "arpae_cosmo_2i_ruc", "arpae_cosmo_5m", "ecmwf_ifs025", "ecmwf_aifs025", "gfs013", "gfs_graphcast025", "ecmwf_wam025", "meteofrance_wave", "meteofrance_currents", "ecmwf_wam025_ensemble", "ncep_gfswave025", "ncep_gefswave025", "knmi_harmonie_arome_europe", "knmi_harmonie_arome_netherlands", "dmi_harmonie_arome_europe", };

public static String name(int e) { return names[e]; }
}
Expand Down
3 changes: 2 additions & 1 deletion java/com/openmeteo/sdk/Variable.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,9 @@ private Variable() { }
public static final int global_tilted_irradiance_instant = 107;
public static final int ocean_current_velocity = 108;
public static final int ocean_current_direction = 109;
public static final int cloud_cover_2m = 110;

public static final String[] names = { "undefined", "apparent_temperature", "cape", "cloud_cover", "cloud_cover_high", "cloud_cover_low", "cloud_cover_mid", "daylight_duration", "dew_point", "diffuse_radiation", "diffuse_radiation_instant", "direct_normal_irradiance", "direct_normal_irradiance_instant", "direct_radiation", "direct_radiation_instant", "et0_fao_evapotranspiration", "evapotranspiration", "freezing_level_height", "growing_degree_days", "is_day", "latent_heat_flux", "leaf_wetness_probability", "lifted_index", "lightning_potential", "precipitation", "precipitation_hours", "precipitation_probability", "pressure_msl", "rain", "relative_humidity", "runoff", "sensible_heat_flux", "shortwave_radiation", "shortwave_radiation_instant", "showers", "snow_depth", "snow_height", "snowfall", "snowfall_height", "snowfall_water_equivalent", "sunrise", "sunset", "soil_moisture", "soil_moisture_index", "soil_temperature", "surface_pressure", "surface_temperature", "temperature", "terrestrial_radiation", "terrestrial_radiation_instant", "total_column_integrated_water_vapour", "updraft", "uv_index", "uv_index_clear_sky", "vapour_pressure_deficit", "visibility", "weather_code", "wind_direction", "wind_gusts", "wind_speed", "vertical_velocity", "geopotential_height", "wet_bulb_temperature", "river_discharge", "wave_height", "wave_period", "wave_direction", "wind_wave_height", "wind_wave_period", "wind_wave_peak_period", "wind_wave_direction", "swell_wave_height", "swell_wave_period", "swell_wave_peak_period", "swell_wave_direction", "pm10", "pm2p5", "dust", "aerosol_optical_depth", "carbon_monoxide", "nitrogen_dioxide", "ammonia", "ozone", "sulphur_dioxide", "alder_pollen", "birch_pollen", "grass_pollen", "mugwort_pollen", "olive_pollen", "ragweed_pollen", "european_aqi", "european_aqi_pm2p5", "european_aqi_pm10", "european_aqi_nitrogen_dioxide", "european_aqi_ozone", "european_aqi_sulphur_dioxide", "us_aqi", "us_aqi_pm2p5", "us_aqi_pm10", "us_aqi_nitrogen_dioxide", "us_aqi_ozone", "us_aqi_sulphur_dioxide", "us_aqi_carbon_monoxide", "sunshine_duration", "convective_inhibition", "shortwave_radiation_clear_sky", "global_tilted_irradiance", "global_tilted_irradiance_instant", "ocean_current_velocity", "ocean_current_direction", };
public static final String[] names = { "undefined", "apparent_temperature", "cape", "cloud_cover", "cloud_cover_high", "cloud_cover_low", "cloud_cover_mid", "daylight_duration", "dew_point", "diffuse_radiation", "diffuse_radiation_instant", "direct_normal_irradiance", "direct_normal_irradiance_instant", "direct_radiation", "direct_radiation_instant", "et0_fao_evapotranspiration", "evapotranspiration", "freezing_level_height", "growing_degree_days", "is_day", "latent_heat_flux", "leaf_wetness_probability", "lifted_index", "lightning_potential", "precipitation", "precipitation_hours", "precipitation_probability", "pressure_msl", "rain", "relative_humidity", "runoff", "sensible_heat_flux", "shortwave_radiation", "shortwave_radiation_instant", "showers", "snow_depth", "snow_height", "snowfall", "snowfall_height", "snowfall_water_equivalent", "sunrise", "sunset", "soil_moisture", "soil_moisture_index", "soil_temperature", "surface_pressure", "surface_temperature", "temperature", "terrestrial_radiation", "terrestrial_radiation_instant", "total_column_integrated_water_vapour", "updraft", "uv_index", "uv_index_clear_sky", "vapour_pressure_deficit", "visibility", "weather_code", "wind_direction", "wind_gusts", "wind_speed", "vertical_velocity", "geopotential_height", "wet_bulb_temperature", "river_discharge", "wave_height", "wave_period", "wave_direction", "wind_wave_height", "wind_wave_period", "wind_wave_peak_period", "wind_wave_direction", "swell_wave_height", "swell_wave_period", "swell_wave_peak_period", "swell_wave_direction", "pm10", "pm2p5", "dust", "aerosol_optical_depth", "carbon_monoxide", "nitrogen_dioxide", "ammonia", "ozone", "sulphur_dioxide", "alder_pollen", "birch_pollen", "grass_pollen", "mugwort_pollen", "olive_pollen", "ragweed_pollen", "european_aqi", "european_aqi_pm2p5", "european_aqi_pm10", "european_aqi_nitrogen_dioxide", "european_aqi_ozone", "european_aqi_sulphur_dioxide", "us_aqi", "us_aqi_pm2p5", "us_aqi_pm10", "us_aqi_nitrogen_dioxide", "us_aqi_ozone", "us_aqi_sulphur_dioxide", "us_aqi_carbon_monoxide", "sunshine_duration", "convective_inhibition", "shortwave_radiation_clear_sky", "global_tilted_irradiance", "global_tilted_irradiance_instant", "ocean_current_velocity", "ocean_current_direction", "cloud_cover_2m", };

public static String name(int e) { return names[e]; }
}
Expand Down
3 changes: 3 additions & 0 deletions kotlin/com/openmeteo/sdk/Model.kt
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,8 @@ class Model private constructor() {
const val ecmwf_wam025_ensemble: UByte = 67u
const val ncep_gfswave025: UByte = 68u
const val ncep_gefswave025: UByte = 69u
const val knmi_harmonie_arome_europe: UByte = 70u
const val knmi_harmonie_arome_netherlands: UByte = 71u
const val dmi_harmonie_arome_europe: UByte = 72u
}
}
1 change: 1 addition & 0 deletions kotlin/com/openmeteo/sdk/Variable.kt
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,6 @@ class Variable private constructor() {
const val global_tilted_irradiance_instant: UByte = 107u
const val ocean_current_velocity: UByte = 108u
const val ocean_current_direction: UByte = 109u
const val cloud_cover_2m: UByte = 110u
}
}
3 changes: 3 additions & 0 deletions python/openmeteo_sdk/Model.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,6 @@ class Model(object):
ecmwf_wam025_ensemble = 67
ncep_gfswave025 = 68
ncep_gefswave025 = 69
knmi_harmonie_arome_europe = 70
knmi_harmonie_arome_netherlands = 71
dmi_harmonie_arome_europe = 72
1 change: 1 addition & 0 deletions python/openmeteo_sdk/Variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,4 @@ class Variable(object):
global_tilted_irradiance_instant = 107
ocean_current_velocity = 108
ocean_current_direction = 109
cloud_cover_2m = 110
8 changes: 6 additions & 2 deletions swift/Sources/OpenMeteoSdk/weather_api_generated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,11 @@ public enum openmeteo_sdk_Model: UInt8, Enum, Verifiable {
case ecmwfWam025Ensemble = 67
case ncepGfswave025 = 68
case ncepGefswave025 = 69
case knmiHarmonieAromeEurope = 70
case knmiHarmonieAromeNetherlands = 71
case dmiHarmonieAromeEurope = 72

public static var max: openmeteo_sdk_Model { return .ncepGefswave025 }
public static var max: openmeteo_sdk_Model { return .dmiHarmonieAromeEurope }
public static var min: openmeteo_sdk_Model { return .undefined }
}

Expand Down Expand Up @@ -249,8 +252,9 @@ public enum openmeteo_sdk_Variable: UInt8, Enum, Verifiable {
case globalTiltedIrradianceInstant = 107
case oceanCurrentVelocity = 108
case oceanCurrentDirection = 109
case cloudCover2m = 110

public static var max: openmeteo_sdk_Variable { return .oceanCurrentDirection }
public static var max: openmeteo_sdk_Variable { return .cloudCover2m }
public static var min: openmeteo_sdk_Variable { return .undefined }
}

Expand Down
5 changes: 4 additions & 1 deletion ts/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,8 @@ export enum Model {
meteofrance_currents = 66,
ecmwf_wam025_ensemble = 67,
ncep_gfswave025 = 68,
ncep_gefswave025 = 69
ncep_gefswave025 = 69,
knmi_harmonie_arome_europe = 70,
knmi_harmonie_arome_netherlands = 71,
dmi_harmonie_arome_europe = 72
}
3 changes: 2 additions & 1 deletion ts/variable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,6 @@ export enum Variable {
global_tilted_irradiance = 106,
global_tilted_irradiance_instant = 107,
ocean_current_velocity = 108,
ocean_current_direction = 109
ocean_current_direction = 109,
cloud_cover_2m = 110
}

0 comments on commit fd70e55

Please sign in to comment.