Skip to content

Quantiles are not computed for fields containing NaN#129

Open
evenmn wants to merge 1 commit intoWFRT:masterfrom
evenmn:fix/spread
Open

Quantiles are not computed for fields containing NaN#129
evenmn wants to merge 1 commit intoWFRT:masterfrom
evenmn:fix/spread

Conversation

@evenmn
Copy link
Copy Markdown

@evenmn evenmn commented May 29, 2025

Hi

I detected a bug when computing quantiles on the fly for raw ensemble data. When there are NaN values in the ensemble data, the quantiles automatically becomes NaN, and plotting spread, spreadskill etc.. does not work.

By replacing np.quantiles with np.nanquantiles, things seem to work properly, but it makes the code extremely slow. It would be nice with a fast version of np.nanquantile, but at least a slow version is better than a non-functioning one.

spread_probabilistic-clouds_roll2_MEPS_ENS_2 5km

…n the fly from raw ensemble data

Signed-off-by: evenmn <evenmn@mn.uio.no>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant