Skip to content

Commit

Permalink
Bugfix for GitHub issue #1163 in the autoregridding of masking regions.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnHalleyGotway committed Jul 15, 2019
1 parent 24e03ef commit f97d1ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion met/src/basic/vx_util/data_plane.cc
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,9 @@ MaskPlane DataPlane::mask_plane() const {

mp.set_size(Nx, Ny);

for(int i=0; i<Nxy; i++) mp.buf()[i] = !is_eq(Data[i], 0.0);
for(int i=0; i<Nxy; i++) {
mp.buf()[i] = (is_bad_data(Data[i]) ? false : !is_eq(Data[i], 0.0));
}

return(mp);
}
Expand Down

0 comments on commit f97d1ec

Please sign in to comment.