Skip to content

Commit

Permalink
Per issue #2055, in read_grib2_record_list() cleaned up all print sta…
Browse files Browse the repository at this point in the history
…tements. SL
  • Loading branch information
Seth Linden committed Aug 16, 2022
1 parent 62bfc58 commit 02f315a
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/libcode/vx_data2d_grib2/data2d_grib2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -732,20 +732,15 @@ void MetGrib2DataFile::read_grib2_record_list() {
rec->Parm = gfld->ipdtmpl[1];
rec->Process = gfld->ipdtmpl[2];

cout << "gfld->ipdtnum = " << gfld->ipdtnum << endl;

// get the level type
if( gfld->ipdtnum == 46 ) {
rec->LvlTyp = gfld->ipdtmpl[15];
} else {
rec->LvlTyp = gfld->ipdtmpl[9];
}

cout << "rec->LvlTyp = " << rec->LvlTyp << endl;

// store the full pdtmpl values
for(int j=0; j < gfld->ipdtlen; j++) {
cout << "gfld->ipdtmpl[ " << j << "] = " << gfld->ipdtmpl[j] << endl;
rec->IPDTmpl.add((int) gfld->ipdtmpl[j]);
}

Expand All @@ -765,8 +760,6 @@ void MetGrib2DataFile::read_grib2_record_list() {
rec->LvlVal1 );
}

cout << "rec->LvlVal1 = " << rec->LvlVal1 << " rec->LvlVal2 = " << rec->LvlVal2 << endl;

rec->RangeTyp = (8 == gfld->ipdtnum || 12 == gfld->ipdtnum ? gfld->ipdtmpl[25] : 0);
rec->RangeVal = (8 == gfld->ipdtnum || 12 == gfld->ipdtnum ? gfld->ipdtmpl[26] : 0);
rec->ResCompFlag = gfld->igdtmpl[ 0 == gfld->igdtnum ? 13 : 11 ];
Expand Down Expand Up @@ -903,8 +896,6 @@ void MetGrib2DataFile::read_grib2_record_list() {
rec->ProbUpper = bad_data_double;
}

cout << "rec->ProbFlag = " << rec->ProbFlag << " rec->ProbLower = " << rec->ProbLower << " rec->ProbUpper = " << rec->ProbUpper << endl << endl;

// set the accumulation interval
g2int range_typ = ( 8 == gfld->ipdtnum ? gfld->ipdtmpl[25] :
9 == gfld->ipdtnum ? gfld->ipdtmpl[32] :
Expand Down

0 comments on commit 02f315a

Please sign in to comment.