Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add additional air quality variables #143

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions csharp/openmeteo_sdk/Variable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,17 @@ public enum Variable : byte
cloud_top = 111,
mass_density = 112,
boundary_layer_height = 113,
formaldehyde = 114,
glyoxal = 115,
non_methane_volatile_organic_compounds = 116,
pm10_wildfires = 117,
peroxyacyl_nitrates = 118,
secondary_inorganic_aerosol = 119,
residential_elementary_carbon = 120,
total_elementary_carbon = 121,
pm2_5_total_organic_matter = 122,
sea_salt_aerosol = 123,
nitrogen_monoxide = 124,
};


Expand Down
13 changes: 12 additions & 1 deletion flatbuffers/weather_api.fbs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,18 @@ enum Variable: ubyte {
cloud_base,
cloud_top,
mass_density,
boundary_layer_height
boundary_layer_height,
formaldehyde,
glyoxal,
non_methane_volatile_organic_compounds,
pm10_wildfires,
peroxyacyl_nitrates,
secondary_inorganic_aerosol,
residential_elementary_carbon,
total_elementary_carbon,
pm2_5_total_organic_matter,
sea_salt_aerosol,
nitrogen_monoxide
}

enum Aggregation: ubyte {
Expand Down
13 changes: 12 additions & 1 deletion java/com/openmeteo/sdk/Variable.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,19 @@ private Variable() { }
public static final int cloud_top = 111;
public static final int mass_density = 112;
public static final int boundary_layer_height = 113;
public static final int formaldehyde = 114;
public static final int glyoxal = 115;
public static final int non_methane_volatile_organic_compounds = 116;
public static final int pm10_wildfires = 117;
public static final int peroxyacyl_nitrates = 118;
public static final int secondary_inorganic_aerosol = 119;
public static final int residential_elementary_carbon = 120;
public static final int total_elementary_carbon = 121;
public static final int pm2_5_total_organic_matter = 122;
public static final int sea_salt_aerosol = 123;
public static final int nitrogen_monoxide = 124;

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_base", "cloud_top", "mass_density", "boundary_layer_height", };
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_base", "cloud_top", "mass_density", "boundary_layer_height", "formaldehyde", "glyoxal", "non_methane_volatile_organic_compounds", "pm10_wildfires", "peroxyacyl_nitrates", "secondary_inorganic_aerosol", "residential_elementary_carbon", "total_elementary_carbon", "pm2_5_total_organic_matter", "sea_salt_aerosol", "nitrogen_monoxide", };

public static String name(int e) { return names[e]; }
}
Expand Down
11 changes: 11 additions & 0 deletions kotlin/com/openmeteo/sdk/Variable.kt
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,16 @@ class Variable private constructor() {
const val cloud_top: UByte = 111u
const val mass_density: UByte = 112u
const val boundary_layer_height: UByte = 113u
const val formaldehyde: UByte = 114u
const val glyoxal: UByte = 115u
const val non_methane_volatile_organic_compounds: UByte = 116u
const val pm10_wildfires: UByte = 117u
const val peroxyacyl_nitrates: UByte = 118u
const val secondary_inorganic_aerosol: UByte = 119u
const val residential_elementary_carbon: UByte = 120u
const val total_elementary_carbon: UByte = 121u
const val pm2_5_total_organic_matter: UByte = 122u
const val sea_salt_aerosol: UByte = 123u
const val nitrogen_monoxide: UByte = 124u
}
}
11 changes: 11 additions & 0 deletions python/openmeteo_sdk/Variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,14 @@ class Variable(object):
cloud_top = 111
mass_density = 112
boundary_layer_height = 113
formaldehyde = 114
glyoxal = 115
non_methane_volatile_organic_compounds = 116
pm10_wildfires = 117
peroxyacyl_nitrates = 118
secondary_inorganic_aerosol = 119
residential_elementary_carbon = 120
total_elementary_carbon = 121
pm2_5_total_organic_matter = 122
sea_salt_aerosol = 123
nitrogen_monoxide = 124
15 changes: 13 additions & 2 deletions swift/Sources/OpenMeteoSdk/weather_api_generated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,19 @@ public enum openmeteo_sdk_Variable: UInt8, Enum, Verifiable {
case cloudTop = 111
case massDensity = 112
case boundaryLayerHeight = 113

public static var max: openmeteo_sdk_Variable { return .boundaryLayerHeight }
case formaldehyde = 114
case glyoxal = 115
case nonMethaneVolatileOrganicCompounds = 116
case pm10Wildfires = 117
case peroxyacylNitrates = 118
case secondaryInorganicAerosol = 119
case residentialElementaryCarbon = 120
case totalElementaryCarbon = 121
case pm25TotalOrganicMatter = 122
case seaSaltAerosol = 123
case nitrogenMonoxide = 124

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

Expand Down
13 changes: 12 additions & 1 deletion ts/variable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,16 @@ export enum Variable {
cloud_base = 110,
cloud_top = 111,
mass_density = 112,
boundary_layer_height = 113
boundary_layer_height = 113,
formaldehyde = 114,
glyoxal = 115,
non_methane_volatile_organic_compounds = 116,
pm10_wildfires = 117,
peroxyacyl_nitrates = 118,
secondary_inorganic_aerosol = 119,
residential_elementary_carbon = 120,
total_elementary_carbon = 121,
pm2_5_total_organic_matter = 122,
sea_salt_aerosol = 123,
nitrogen_monoxide = 124
}
Loading