Skip to content

Commit

Permalink
feat: Add UKMO models (#122)
Browse files Browse the repository at this point in the history
* add UKMO models

* update build files

* compiled with wrong flatbuffer version
  • Loading branch information
patrick-zippenfenig authored Aug 7, 2024
1 parent bdc156a commit e8f3a78
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@
}
}
],
"@droidsolutions-oss/semantic-release-nuget",
"@semantic-release/git",
"gradle-semantic-release-plugin",
"@semantic-release/github",
"@semantic-release/npm",
[
"semantic-release-pypi",
{
"srcDir": "python"
}
]
],
"@droidsolutions-oss/semantic-release-nuget",
"gradle-semantic-release-plugin",
"@semantic-release/github",
"@semantic-release/npm"
],
"includeSymbols": true,
"includeSource": true,
Expand Down
2 changes: 2 additions & 0 deletions csharp/openmeteo_sdk/Model.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ public enum Model : byte
ecmwf_ifs_analysis = 77,
ecmwf_ifs_long_window = 78,
ecmwf_ifs_analysis_long_window = 79,
ukmo_global_deterministic_10km = 80,
ukmo_uk_deterministic_2km = 81,
};


Expand Down
4 changes: 3 additions & 1 deletion flatbuffers/weather_api.fbs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ enum Model: ubyte {
era5_ensemble,
ecmwf_ifs_analysis,
ecmwf_ifs_long_window,
ecmwf_ifs_analysis_long_window
ecmwf_ifs_analysis_long_window,
ukmo_global_deterministic_10km,
ukmo_uk_deterministic_2km
}

enum Variable: ubyte {
Expand Down
4 changes: 3 additions & 1 deletion java/com/openmeteo/sdk/Model.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@ private Model() { }
public static final int ecmwf_ifs_analysis = 77;
public static final int ecmwf_ifs_long_window = 78;
public static final int ecmwf_ifs_analysis_long_window = 79;
public static final int ukmo_global_deterministic_10km = 80;
public static final int ukmo_uk_deterministic_2km = 81;

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_seamless", "knmi_harmonie_arome_europe", "knmi_harmonie_arome_netherlands", "dmi_seamless", "dmi_harmonie_arome_europe", "metno_seamless", "era5_ensemble", "ecmwf_ifs_analysis", "ecmwf_ifs_long_window", "ecmwf_ifs_analysis_long_window", };
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_seamless", "knmi_harmonie_arome_europe", "knmi_harmonie_arome_netherlands", "dmi_seamless", "dmi_harmonie_arome_europe", "metno_seamless", "era5_ensemble", "ecmwf_ifs_analysis", "ecmwf_ifs_long_window", "ecmwf_ifs_analysis_long_window", "ukmo_global_deterministic_10km", "ukmo_uk_deterministic_2km", };

public static String name(int e) { return names[e]; }
}
Expand Down
2 changes: 2 additions & 0 deletions kotlin/com/openmeteo/sdk/Model.kt
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@ class Model private constructor() {
const val ecmwf_ifs_analysis: UByte = 77u
const val ecmwf_ifs_long_window: UByte = 78u
const val ecmwf_ifs_analysis_long_window: UByte = 79u
const val ukmo_global_deterministic_10km: UByte = 80u
const val ukmo_uk_deterministic_2km: UByte = 81u
}
}
2 changes: 2 additions & 0 deletions python/openmeteo_sdk/Model.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,5 @@ class Model(object):
ecmwf_ifs_analysis = 77
ecmwf_ifs_long_window = 78
ecmwf_ifs_analysis_long_window = 79
ukmo_global_deterministic_10km = 80
ukmo_uk_deterministic_2km = 81
4 changes: 3 additions & 1 deletion swift/Sources/OpenMeteoSdk/weather_api_generated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,10 @@ public enum openmeteo_sdk_Model: UInt8, Enum, Verifiable {
case ecmwfIfsAnalysis = 77
case ecmwfIfsLongWindow = 78
case ecmwfIfsAnalysisLongWindow = 79
case ukmoGlobalDeterministic10km = 80
case ukmoUkDeterministic2km = 81

public static var max: openmeteo_sdk_Model { return .ecmwfIfsAnalysisLongWindow }
public static var max: openmeteo_sdk_Model { return .ukmoUkDeterministic2km }
public static var min: openmeteo_sdk_Model { return .undefined }
}

Expand Down
4 changes: 3 additions & 1 deletion ts/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,7 @@ export enum Model {
era5_ensemble = 76,
ecmwf_ifs_analysis = 77,
ecmwf_ifs_long_window = 78,
ecmwf_ifs_analysis_long_window = 79
ecmwf_ifs_analysis_long_window = 79,
ukmo_global_deterministic_10km = 80,
ukmo_uk_deterministic_2km = 81
}

0 comments on commit e8f3a78

Please sign in to comment.