home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 330673189

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/1581#issuecomment-330673189 https://api.github.com/repos/pydata/xarray/issues/1581 330673189 MDEyOklzc3VlQ29tbWVudDMzMDY3MzE4OQ== 10050469 2017-09-19T21:04:42Z 2017-09-19T21:04:42Z MEMBER

Thanks for the detailed and well documented question. I had a look at your data, and there are two issues that imshow cannot handle well: - your data isn't well centred (lons go from -300 to 60, which explains the shape of your image on the globe). This wouldn't be a big deal if it wasn't for the other problem, which is: - your latitude data isn't regular.

python plt.plot(ds.lath[1:].values - ds.lath[:-1].values) Gives:

which is quite... interesting.

Anyways, imshow is so much faster because it needs regular, nicely sorted data. In your case I don't think there is much other choice than pcolormesh or contourf... Note also that plotting on Robinson is slower than plotting on a plate carree projection.

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