Skip to content

Commit bfcb495

Browse files
authored
Merge pull request #378 from GeoStat-Framework/bugfix_vario_estimate_mask_sample
vario_estimate: recalc pnt_cnt when applying a mask
2 parents 0a08459 + 1c2dd80 commit bfcb495

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/gstools/variogram/variogram.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ def vario_estimate(
398398
field.fill_value = np.nan # use no-data val. for remaining masked vals
399399
field = field[:, select].filled() # convert to ndarray
400400
select = mask = None # free space
401+
pnt_cnt = len(pos[0]) # pnt cnt reduced now
401402
# set no_data values
402403
if not np.isnan(no_data):
403404
field[np.isclose(field, float(no_data))] = np.nan

0 commit comments

Comments
 (0)