Skip to content

Commit

Permalink
Changed argument for get_var_fill_value
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard Soh committed Aug 5, 2022
1 parent a1eae43 commit f2cdf99
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/libcode/vx_data2d_nc_pinterp/pinterp_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -563,9 +563,10 @@ bool status = false;
int i;
short s;
float f;
double fill_value;
double d = bad_data_double;
double missing_value = get_var_missing_value(var);
double fill_value = get_var_fill_value(var);
get_var_fill_value(var, fill_value);

status = get_nc_data(var, &d, (long *)a);

Expand Down
6 changes: 4 additions & 2 deletions src/libcode/vx_data2d_nccf/nccf_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -893,8 +893,9 @@ double NcCfFile::getData(NcVar * var, const LongArray & a) const
bool status = false;
double d = bad_data_double;

double fill_value;
double missing_value = get_var_missing_value(var);
double fill_value = get_var_fill_value(var);
get_var_fill_value(var, fill_value);

status = get_nc_data(var, &d, (long *)a);

Expand Down Expand Up @@ -1017,8 +1018,9 @@ bool NcCfFile::getData(NcVar * v, const LongArray & a, DataPlane & plane) const
// get the bad data values
//

double fill_value;
double missing_value = get_var_missing_value(v);
double fill_value = get_var_fill_value(v);
get_var_fill_value(v, fill_value);

// set up the DataPlane object

Expand Down

0 comments on commit f2cdf99

Please sign in to comment.