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

Add figure preprocessing scripts to precip variability metrics #1069

Merged
merged 10 commits into from
Mar 22, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix indices
  • Loading branch information
acordonez committed Mar 22, 2024
commit 4d1472ea24de9975869f898ea10467402baaed70
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ def prdday_to_frqidx(prdday, frequency, ntd):
elif frq == "sub-daily": # pr<1day
idx1 = prdday_to_frqidx(1, frequency, ntd)
fm = (
power.isel({"frequency": slice(idx1 + 1,:)})
power.isel(
{"frequency": slice(idx1 + 1, len(frequency) - 1)}
)
.mean("frequency")
.data
)
Expand Down
Loading