Skip to content

Commit

Permalink
fix: add era5_ocean model
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-zippenfenig committed Nov 16, 2023
1 parent f9f94bc commit 13a7eda
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion flatbuffers/weather_api.fbs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ enum Model: ubyte {
NICAM16_8S,
cams_europe,
cams_global,
cfsv2
cfsv2,
era5_ocean
}

enum Variable: ubyte {
Expand Down
3 changes: 2 additions & 1 deletion java/com/openmeteo/sdk/Model.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ private Model() { }
public static final int cams_europe = 49;
public static final int cams_global = 50;
public static final int cfsv2 = 51;
public static final int era5_ocean = 52;

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

public static String name(int e) { return names[e]; }
}
Expand Down
1 change: 1 addition & 0 deletions kotlin/com/openmeteo/sdk/Model.kt
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ class Model private constructor() {
const val cams_europe: UByte = 49u
const val cams_global: UByte = 50u
const val cfsv2: UByte = 51u
const val era5_ocean: UByte = 52u
}
}
1 change: 1 addition & 0 deletions python/openmeteo_sdk/Model.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@ class Model(object):
cams_europe = 49
cams_global = 50
cfsv2 = 51
era5_ocean = 52
3 changes: 2 additions & 1 deletion swift/Sources/OpenMeteoSdk/weather_api_generated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@ public enum openmeteo_sdk_Model: UInt8, Enum, Verifiable {
case camsEurope = 49
case camsGlobal = 50
case cfsv2 = 51
case era5Ocean = 52

public static var max: openmeteo_sdk_Model { return .cfsv2 }
public static var max: openmeteo_sdk_Model { return .era5Ocean }
public static var min: openmeteo_sdk_Model { return .undefined }
}

Expand Down
3 changes: 2 additions & 1 deletion ts/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,6 @@ export enum Model {
NICAM16_8S = 48,
cams_europe = 49,
cams_global = 50,
cfsv2 = 51
cfsv2 = 51,
era5_ocean = 52
}

0 comments on commit 13a7eda

Please sign in to comment.