Skip to content

Commit

Permalink
Feature 2250 accum (#2251)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnHalleyGotway authored Sep 1, 2022
1 parent 71c1939 commit 973f1b9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/libcode/vx_data2d_nc_met/met_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,11 @@ for (j=0; j<Ndims; ++j) {
//
// parse the variable attributes
//
get_att_name ( Var[j], Var[j].name_att );
get_var_long_name( Var[j].var, Var[j].long_name_att );
get_att_level ( Var[j], Var[j].level_att );
get_var_units ( Var[j].var, Var[j].units_att );
get_att_accum_time( Var[j], Var[j].AccumTime );
get_att_name ( Var[j], Var[j].name_att );
get_var_long_name ( Var[j].var, Var[j].long_name_att );
get_att_level ( Var[j], Var[j].level_att );
get_var_units ( Var[j].var, Var[j].units_att );
get_att_accum_time( Var[j], Var[j].AccumTime );

get_att_unixtime( Var[j], init_time_ut_att_name, ill);
get_att_unixtime( Var[j], valid_time_ut_att_name, vll);
Expand Down
4 changes: 3 additions & 1 deletion src/libcode/vx_nc_util/nc_var_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,9 @@ bool get_att_int(const NcVarInfo &info, const ConcatString att_name,
////////////////////////////////////////////////////////////////////////

bool get_att_accum_time(const NcVarInfo &info, int &att_value) {
return get_att_int(info, accum_time_sec_att_name, att_value);
bool status = get_att_int(info, accum_time_sec_att_name, att_value);
if (is_bad_data(att_value)) att_value = 0;
return status;
}

////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 973f1b9

Please sign in to comment.