Skip to content

Commit

Permalink
Add new grib2 level type mudl
Browse files Browse the repository at this point in the history
  • Loading branch information
mpartio committed Sep 24, 2024
1 parent b120105 commit 15a3f67
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions himan-lib/include/level.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ enum HPLevelType
kEntireAtmosphere = 200,
kEntireOcean = 201,
// reserved numbers starting here
kMUDL = 211, // most unstable parcel departure level
kMaximumThetaE = 246 // maximum theta e level, like grib2
};

Expand All @@ -60,7 +61,8 @@ const std::unordered_map<HPLevelType, std::string> HPLevelTypeToString = {{kUnkn
{kMaximumThetaE, "maxthetae"},
{kMaximumWind, "maxwind"},
{kMixingLayer, "mixing_layer"},
{kTropopause, "tropopause"}};
{kTropopause, "tropopause"},
{kMUDL, "mudl"}};

const std::unordered_map<std::string, HPLevelType> HPStringToLevelType = {{"unknown", kUnknownLevel},
{"ground", kGround},
Expand All @@ -82,7 +84,8 @@ const std::unordered_map<std::string, HPLevelType> HPStringToLevelType = {{"unkn
{"maxthetae", kMaximumThetaE},
{"maxwind", kMaximumWind},
{"mixing_layer", kMixingLayer},
{"tropopause", kTropopause}};
{"tropopause", kTropopause},
{"mudl", kMUDL}};

class level
{
Expand Down

0 comments on commit 15a3f67

Please sign in to comment.