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

Commit

Permalink
Fix HRRR table registration.
Browse files Browse the repository at this point in the history
  • Loading branch information
lesserwhirls committed Feb 23, 2021
1 parent bd88f9b commit e29613d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ static private String getPath(Grib2Table grib2Table) {
if (grib2Table.getId().genProcessId == 125)
return fimTable;
else
return hrrrTable;
return grib2Table.getPath();
}

private FslLocalTables(Grib2Table grib2Table) {
Expand Down Expand Up @@ -172,8 +172,8 @@ public String getStatisticNameShort(int id) {
}

protected void initLocalTable(Formatter f) {
if (grib2Table.getPath().equals(hrrrTable))
local = readCsv(hrrrTable, f);
if (grib2Table.getPath().contains("hrrr"))
local = readCsv(grib2Table.getPath(), f);
else
local = readFim(fimTable, f);
}
Expand Down Expand Up @@ -206,7 +206,7 @@ private static Grib2Parameter parseVersion4(String[] flds, Formatter f) {
VerticalLevels, Units);
}

String name = !WGrib2Name.equals("var") ? WGrib2Name : FieldType;
String name = !NCLName.equals("var") ? NCLName : FieldType;
return new Grib2Parameter(disciplineNumber, categoryNumber, parameterNumber, name, Units, null, FieldType);
}

Expand Down
4 changes: 2 additions & 2 deletions grib/src/main/resources/resources/grib2/standardTableMap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
54; -1; -1; -1; -1; ncep; canadian met
#
# FSL HRRR
59; 0; 2; 1; -1; gsd; FSL HRRR; resources/grib2/noaa_gsd/Fsl-hrrr4.csv
59; -1; -1; -1; 125; gsd; fsl hrrr
59; 0; 2; 1; -1; gsd; fsl hrrr; resources/grib2/noaa_gsd/Fsl-hrrr4.csv
59; -1; -1; -1; 125; gsd; fsl hrrr; resources/grib2/noaa_gsd/Fsl-hrrr2.csv
#
# center 8, subcenter 0 and -9999 use ndfd table
8; 0; -1; -1; -1; ndfd; ndfd
Expand Down

0 comments on commit e29613d

Please sign in to comment.