home / github / issues

Menu
  • Search all tables
  • GraphQL API

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 dataset

ds=xr.open_mfdataset('/DATA/WRF/sample10years///*FFDI.nc')

select period

fireseason=ds['FFDI'].sel(time=slice('2008-09-01', '2009-05-01'))

resample to daily max

dailymax=fireseason.resample(time='1D').max('time')

count number of days with dailymax>=35 if at least 10% of that day meets that criteria

dailycountTOTAL = (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

Links from other tables

  • 1 row from issues_id in issues_labels
  • 2 rows from issue in issue_comments
Powered by Datasette · Queries took 0.671ms · About: xarray-datasette