Skip to content

Commit

Permalink
Per issue #2055, in read_grib2_record_list() cleaned up some commente…
Browse files Browse the repository at this point in the history
…d out code. SL
  • Loading branch information
Seth Linden committed Aug 15, 2022
1 parent 556c3b9 commit 62bfc58
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions src/libcode/vx_data2d_grib2/data2d_grib2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ void MetGrib2DataFile::find_record_matches( VarInfoGrib2* vinfo,
} // END: if( level match )

// if seeking a probabilistic field, check the prob info
if( (rec_match_ex || rec_match_rn) && vinfo->p_flag()) {
if( (rec_match_ex || rec_match_rn) && vinfo->p_flag() ) {

rec_match_ex = rec_match_rn = false;

Expand Down Expand Up @@ -695,10 +695,6 @@ void MetGrib2DataFile::read_grib2_record_list() {
for(int i=1; i <= numfields; i++){

// validate the PDS template number
//
// Add 6, 10, 15 (07/27/22 SL)
// We could store the percentile (for example CWASP) as a level?
//
if( 0 != gfld->ipdtnum && // analysis or forecast
1 != gfld->ipdtnum && // individual ensemble forecast, control and perturbed, at a horizontal level or in a horizontal layer at a point in time
2 != gfld->ipdtnum && // ensemble mean
Expand All @@ -712,16 +708,8 @@ 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() -> "
// << "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);

// Print Warning, continue
mlog << Warning << "\nMetGrib2DataFile::data_plane() -> "
<< "PDS template number ("
<< gfld->ipdtnum << ") is not supported. "
Expand Down

0 comments on commit 62bfc58

Please sign in to comment.