home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 426377815

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/2450#issuecomment-426377815 https://api.github.com/repos/pydata/xarray/issues/2450 426377815 MDEyOklzc3VlQ29tbWVudDQyNjM3NzgxNQ== 41115380 2018-10-02T18:17:10Z 2018-10-02T18:17:10Z NONE

@spencerkclark ah sorry I missed line 5 - I'm not looking to get the mean, I want to make sure the unusual values are still represented. That might be why mine went wrong, it generally only works when there's just one time. Anyway, here's what I tried: ```python import xarray as xr from function_codes import sfcwinds, complete_shear, winds import os pathway = #my pathway os.chdir(pathway)

sfc_winds = sfcwinds("sfc") ml50_winds = winds("ml50") ml50_shear = complete_shear(sfc_winds, ml50_winds)

a = ml50_shear.where(ml50_shear >= 11, other = 0) b = a.where(a == 0, other = 1) pa = (b.sum('time') / b.sizes['time']) * 100 print(pa) ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  365438396
Powered by Datasette · Queries took 0.747ms · About: xarray-datasette