home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 222995827

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/864#issuecomment-222995827 https://api.github.com/repos/pydata/xarray/issues/864 222995827 MDEyOklzc3VlQ29tbWVudDIyMjk5NTgyNw== 743508 2016-06-01T13:42:21Z 2016-06-01T13:42:59Z CONTRIBUTOR

On further investigation, it appears the problem is the dataset contains a mix of string and float data - the strings are redundant representations of the time stamp, therefore they don't appear in the index query. When I tried to convert to array, the numpy chokes on the mixed types. Explicitly selecting on the desired data variable solves this:

selection = cfsr_new.TMP_L103.sel(lon=lon_sel, lat=lat_sel, time=time_sel)

I think a clearer error message may be needed: when you do sel without indexing on certain dimensions, those are included in the resulting selection. It's possible for those to be of mixed incompatible types. Clearly to do to_array you need a numpy-friendly uniform type. The error should make this clearer.

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