Skip to content

Commit

Permalink
Per issue #2055: in read_grib2_record_list(), in section that validat…
Browse files Browse the repository at this point in the history
…es PDS number changed, for undefined PDS numbers, changed Error to Warning and continue (instead of exit). SL
  • Loading branch information
Seth Linden committed Aug 2, 2022
1 parent 0ab6d39 commit 8aef348
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/libcode/vx_data2d_grib2/data2d_grib2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -708,13 +708,23 @@ void MetGrib2DataFile::read_grib2_record_list() {
15 != gfld->ipdtnum && // Average, accumulation, extreme values or other statistically-processed values over a spatial area at a horizontal level or in a horizontal layer at a point in time
46 != gfld->ipdtnum && // average, accumulation, and/or extreme values or other statistically processed values at a horizontal level or in a horizontal layer in a continuous or non-continuous time interval for aerosol.
48 != gfld->ipdtnum ){ // analysis or forecast at a horizontal level or in a horizontal layer at a point in time for aerosol.
//
// Change this to a Warning (07/27/22 SL)
// Print Warning, continue
mlog << Error << "\nMetGrib2DataFile::data_plane() -> "

//mlog << Error << "\nMetGrib2DataFile::data_plane() -> "
// << "PDS template number ("
// << gfld->ipdtnum << ") is not supported. "
// << "Please create a new post with this information in the METplus GitHub Discussions forum at https://github.com/dtcenter/METplus/discussions\n\n";
//exit(1);

mlog << Warning << "\nMetGrib2DataFile::data_plane() -> "
<< "PDS template number ("
<< gfld->ipdtnum << ") is not supported. "
<< "Please create a new post with this information in the METplus GitHub Discussions forum at https://github.com/dtcenter/METplus/discussions\n\n";
exit(1);
<< "Please create a new post with this information in the METplus GitHub Discussions forum at https://github.com/dtcenter/METplus/discussions. "
<< "Continuing to try and get the record information.\n\n";

continue;
}

// store the record information
Expand Down

0 comments on commit 8aef348

Please sign in to comment.