Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature 2250 accum #2251

Merged
merged 1 commit into from
Sep 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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