Skip to content

Commit

Permalink
fix: add gfs013 and graphcast domain enumerations
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-zippenfenig committed Apr 10, 2024
1 parent 62f2aa9 commit aded816
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 4 deletions.
2 changes: 2 additions & 0 deletions csharp/openmeteo_sdk/Model.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ public enum Model : byte
arpae_cosmo_5m = 59,
ecmwf_ifs025 = 60,
ecmwf_aifs025 = 61,
gfs013 = 62,
gfs_graphcast025 = 63,
};


Expand Down
4 changes: 3 additions & 1 deletion flatbuffers/weather_api.fbs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ enum Model: ubyte {
arpae_cosmo_2i_ruc,
arpae_cosmo_5m,
ecmwf_ifs025,
ecmwf_aifs025
ecmwf_aifs025,
gfs013,
gfs_graphcast025
}

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 @@ -67,8 +67,10 @@ private Model() { }
public static final int arpae_cosmo_5m = 59;
public static final int ecmwf_ifs025 = 60;
public static final int ecmwf_aifs025 = 61;
public static final int gfs013 = 62;
public static final int gfs_graphcast025 = 63;

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", };
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", };

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 @@ -67,5 +67,7 @@ class Model private constructor() {
const val arpae_cosmo_5m: UByte = 59u
const val ecmwf_ifs025: UByte = 60u
const val ecmwf_aifs025: UByte = 61u
const val gfs013: UByte = 62u
const val gfs_graphcast025: UByte = 63u
}
}
2 changes: 2 additions & 0 deletions python/openmeteo_sdk/Model.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,5 @@ class Model(object):
arpae_cosmo_5m = 59
ecmwf_ifs025 = 60
ecmwf_aifs025 = 61
gfs013 = 62
gfs_graphcast025 = 63
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 @@ -121,8 +121,10 @@ public enum openmeteo_sdk_Model: UInt8, Enum, Verifiable {
case arpaeCosmo5m = 59
case ecmwfIfs025 = 60
case ecmwfAifs025 = 61
case gfs013 = 62
case gfsGraphcast025 = 63

public static var max: openmeteo_sdk_Model { return .ecmwfAifs025 }
public static var max: openmeteo_sdk_Model { return .gfsGraphcast025 }
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 @@ -64,5 +64,7 @@ export enum Model {
arpae_cosmo_2i_ruc = 58,
arpae_cosmo_5m = 59,
ecmwf_ifs025 = 60,
ecmwf_aifs025 = 61
ecmwf_aifs025 = 61,
gfs013 = 62,
gfs_graphcast025 = 63
}

0 comments on commit aded816

Please sign in to comment.