krisrs1128 / clouds_dist

Simulation of low-clouds, from weather measures.
4 stars 1 forks source link

stats not counting nan locations #52

Closed vict0rsch closed 5 years ago

vict0rsch commented 5 years ago
a = np.array([[1, np.nan], [2, np.nan]])
a[~np.isnan(a)].mean()
vict0rsch commented 5 years ago

So what's up here? @mustafaghali

vict0rsch commented 5 years ago

I meant, what are we trying to achieve, I've forgotten :p

mustafaghali commented 5 years ago

Oh it's just that we don't want to include the nans in the borders in the calculation of the mean and other stats

vict0rsch commented 5 years ago

aah obviously ok cool