diff --git a/src/main/java/gov/usgs/earthquake/nshmp/netcdf/NshmGroup.java b/src/main/java/gov/usgs/earthquake/nshmp/netcdf/NshmGroup.java index 0f6d079d6dc08fff83336b232b2ddc3ca3e13d31..e3adbaab9289e20290f5126e37341ddac750bf84 100644 --- a/src/main/java/gov/usgs/earthquake/nshmp/netcdf/NshmGroup.java +++ b/src/main/java/gov/usgs/earthquake/nshmp/netcdf/NshmGroup.java @@ -1,5 +1,7 @@ package gov.usgs.earthquake.nshmp.netcdf; +import com.google.common.base.CaseFormat; + public enum NshmGroup { CONUS_2018( @@ -22,6 +24,10 @@ public enum NshmGroup { return display; } + public String model() { + return CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_HYPHEN, name()); + } + /** * Returns the NetCDF target base group to read. */