Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

persistence interval label issue #700

Closed
wholmgren opened this issue Jul 28, 2021 · 2 comments · Fixed by #702
Closed

persistence interval label issue #700

wholmgren opened this issue Jul 28, 2021 · 2 comments · Fixed by #702
Labels
bug Something isn't working
Milestone

Comments

@wholmgren
Copy link
Member

It appears that the reference probabilistic persistence time of day forecasts are not accounting for the desired interval label = ending.

Screen Shot 2021-07-28 at 3 52 24 PM

I'm not 100% sure but I think the issue may be that the following lines need label=closed in addition to closed=closed:

# average data within bins of length interval_length
persistence_quantity = obs.resample(interval_length,
closed=closed_obs).mean()

obs = obs.resample(interval_length, closed=closed).mean()

obs = obs.resample(interval_length, closed=closed).mean()

So that suggests the problem is not just in the prob persistence time of day.

Note the presence of label=closed in the index function:

# resample sub-interval reference clear sky to observation intervals
clear_ref_resampled = clear_ref.resample(
observation.interval_length, closed=closed, label=closed).mean()

@wholmgren wholmgren added the bug Something isn't working label Jul 28, 2021
@wholmgren wholmgren added this to the 1.0.3 milestone Jul 28, 2021
@wholmgren
Copy link
Member Author

wholmgren commented Jul 30, 2021

In line 20 of workshop/reference_forecasts.ipynb we use label='ending', so similar but different problem. Subtle but real changes:

Screen Shot 2021-07-30 at 12 40 08 PM

@wholmgren
Copy link
Member Author

As documented in new comments in #702, only persistence_probabilistic_timeofday is failing to account for the interval label - the functions in persistence.py are actually fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant