Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Fix inconsistent representation for Grib Level #855

Merged
merged 1 commit into from
Jun 12, 2017

Conversation

lesserwhirls
Copy link
Collaborator

Addresses #853

Grib1_Level_Type and Grib2_Level_Type were not consistent. Grib2_Level_Type was
the String description of the level, which is actual the analog of Grib1_Level_Desc.

Adds new attribute, Grib2_Level_Desc, and makes Grib2_Level_Type the integer code
value, just link Grib1_Level_Type.

Addresses Unidata#853

Grib1_Level_Type and Grib2_Level_Type were not consistent. Grib2_Level_Type was
the String description of the level, which is actual the analog of Grib1_Level_Desc.

Adds new attribute, Grib2_Level_Desc, and makes Grib2_Level_Type the integer code
value, just link Grib1_Level_Type.
}
if (vindex.getLevelType() != GribNumbers.MISSING)
v.addAttribute(new Attribute("Grib2_Level_Type", vindex.getLevelType()));
String ldesc = cust.getLevelName(vindex.getLevelType());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be cust.getLevelDescription

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind, it looks like that method doesn't exist on Grib2Customizer like it does on Grib1Customizer. Weird.

@cwardgar cwardgar merged commit 72504fa into Unidata:master Jun 12, 2017
@lesserwhirls lesserwhirls deleted the grib2level branch June 22, 2017 15:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants