home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where author_association = "NONE" and issue = 335640601 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

user 2

  • morganeoneill 1
  • darothen-cc 1

issue 1

  • can't save wrf Mercator projection attribute to new netcdf file · 2 ✖

author_association 1

  • NONE · 2 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
400165276 https://github.com/pydata/xarray/issues/2252#issuecomment-400165276 https://api.github.com/repos/pydata/xarray/issues/2252 MDEyOklzc3VlQ29tbWVudDQwMDE2NTI3Ng== morganeoneill 1971123 2018-06-26T03:20:26Z 2018-06-26T03:20:26Z NONE

Excellent, that's so simple! I don't know what I'd need it for, and I certainly don't need it for cursorily zooming around in ncview. Thanks a lot @darothen-cc, you're wicked fast!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  can't save wrf Mercator projection attribute to new netcdf file 335640601
400164831 https://github.com/pydata/xarray/issues/2252#issuecomment-400164831 https://api.github.com/repos/pydata/xarray/issues/2252 MDEyOklzc3VlQ29tbWVudDQwMDE2NDgzMQ== darothen-cc 30631520 2018-06-26T03:17:07Z 2018-06-26T03:17:07Z NONE

Hi @morganeoneill, welcome to the world of xarray!

It looks like when you create the xarray Dataset, the "projection" attribute on pvo is being set as some sort of object, and the netCDF engine doesn't know how to write it to a file. I'm not familiar with wrf-python, so maybe it's a special map projection object that the package uses internally for some sort of plotting or other function?

Regardless, the easiest solution is just to drop that attribute. You can try something like

python del dataset['pvo'].attrs['projection']

Since your dataset has 2D coordinates for longitude and latitude (XLONG and XLAT), you may not need that projection information for anything. If it's something you definitely need to keep, you may want to try to decode the wrf-python 'Mercator' object into a string or something else - strings are totally fine to save as attributes on Datasets or DataArrays, and should serialize to NetCDF without any problem.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  can't save wrf Mercator projection attribute to new netcdf file 335640601

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [performed_via_github_app] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
);
CREATE INDEX [idx_issue_comments_issue]
    ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
    ON [issue_comments] ([user]);
Powered by Datasette · Queries took 13.853ms · About: xarray-datasette