issues: 325933825
This data as json
| id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 325933825 | MDU6SXNzdWUzMjU5MzM4MjU= | 2178 | if 10% of ds meets criteria then count | 12929592 | closed | 0 | 2 | 2018-05-24T01:40:54Z | 2018-05-24T03:03:17Z | 2018-05-24T03:03:17Z | NONE | Can I please have help in calculating the total number of days that 10% of my dataset (on each day) is equal to or greater than a given value (e.g. 35). I will then use the where function and loop this through a number of regions and periods but first need help figuring out how to apply the 10% condition. Any help will be greatly appreciate. Sarah open datasetds=xr.open_mfdataset('/DATA/WRF/sample10years///*FFDI.nc') select periodfireseason=ds['FFDI'].sel(time=slice('2008-09-01', '2009-05-01')) resample to daily maxdailymax=fireseason.resample(time='1D').max('time') count number of days with dailymax>=35 if at least 10% of that day meets that criteriadailycountTOTAL = (if 10% of dailymax >= 35).count() |
{
"url": "https://api.github.com/repos/pydata/xarray/issues/2178/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
completed | 13221727 | issue |