Skip to content

[Questions] Trying to understand how xclim.indicators.atmos.tn10p works #2175

Answered by aulemahal
seblehner asked this question in Questions
Discussion options

You must be logged in to vote

Hi! I'm afraid I can't reproduce your errors. However, one potential issue I see is that tn10p expects to get a tasmin_per for each day of the year. Thus, tasmin_per should have a dayofyear dimension (instead of time). I am surprised how unclear this is in the docstring, I think there was a time when we wanted the "percentile" indicator to accept both the "dayofyear" version and the "flat" one (the one you want), but I guess the changes were not completed correctly ?

Anyway, so you can test on your end, this code for the tn10p computed over each dayofyear works for me:

import xarray as xr
import xclim as xc

# Get test data, 6-hourly air temp on North America
ds = xr.tutorial.open_dataset("…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by seblehner
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Questions and help for users/developers
2 participants