home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

15 rows where author_association = "NONE" and issue = 310547057 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 6

  • aymeric-spiga 5
  • Chilipp 3
  • JiaweiZhuang 3
  • fischcheng 2
  • philippjfr 1
  • stale[bot] 1

issue 1

  • simple command line interface for xarray · 15 ✖

author_association 1

  • NONE · 15 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
596181205 https://github.com/pydata/xarray/issues/2034#issuecomment-596181205 https://api.github.com/repos/pydata/xarray/issues/2034 MDEyOklzc3VlQ29tbWVudDU5NjE4MTIwNQ== stale[bot] 26384082 2020-03-08T08:50:18Z 2020-03-08T08:50:18Z NONE

In order to maintain a list of currently relevant issues, we mark issues as stale after a period of inactivity

If this issue remains relevant, please comment here or remove the stale label; otherwise it will be marked as closed automatically

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  simple command line interface for xarray 310547057
379530115 https://github.com/pydata/xarray/issues/2034#issuecomment-379530115 https://api.github.com/repos/pydata/xarray/issues/2034 MDEyOklzc3VlQ29tbWVudDM3OTUzMDExNQ== Chilipp 9960249 2018-04-08T08:10:07Z 2018-04-08T08:10:07Z NONE

Great! If you want to try it today already, I recommend to use the nightly build (see the installing docs) or to use the latest development packages from my personal conda channel bash conda config --add channels conda-forge conda install -c chilipp/label/dev psyplot psy-maps psyplot-gui The latter however only works for linux.

The new releases should have passed all tests by tomorrow morning and they will then be available through the conda-forge channel and pip.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  simple command line interface for xarray 310547057
379527736 https://github.com/pydata/xarray/issues/2034#issuecomment-379527736 https://api.github.com/repos/pydata/xarray/issues/2034 MDEyOklzc3VlQ29tbWVudDM3OTUyNzczNg== aymeric-spiga 5462289 2018-04-08T07:29:36Z 2018-04-08T07:29:36Z NONE

Thanks @Chilipp ! psyplot is a more professional and flexible tool (with a good doc I shall say) of what I was trying to do back then in a more DIY homemade way with planetoplot, so I will have to give it a try and most probably abandon my homemade stuff. I will also explore GeoViews and HoloViews as suggested by @JiaweiZhuang and @philippjfr because it has very interesting features. At any rate, using either xarray or xarray-based tools is a must those days for any netCDF-related exploration.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  simple command line interface for xarray 310547057
379508981 https://github.com/pydata/xarray/issues/2034#issuecomment-379508981 https://api.github.com/repos/pydata/xarray/issues/2034 MDEyOklzc3VlQ29tbWVudDM3OTUwODk4MQ== Chilipp 9960249 2018-04-08T00:26:22Z 2018-04-08T00:26:22Z NONE

Sure, I hope it can help! The psy-maps package, which is the psyplot plugin for georeferenced plots, is built on the cartopy package (sorry, that is not made clear in the docs currently). For interpreting coordinates following the CF-Conventions, however, I wrote my own decoder class (http://psyplot.readthedocs.io/en/latest/api/psyplot.data.html#psyplot.data.CFDecoder). But you should not have to care about the latter, since this is integrated into the framework.

After having installed the packages, e.g. via

bash conda install -c conda-forge psyplot psy-maps psyplot-gui

you can simply create a plot from the command line via

bash psyplot your-netcdf-file.nc -pm mapplot

and it will open the GUI to create a plot. Or you type

bash psyplot your-netcdf-file.nc -pm mapplot -n your-variable -o plots.pdf to save it immediately to a PDF file named plots.pdf.

There are however a lot more possibilities and formatting options.

Within python, you can just create a georeferenced plot via

python import psyplot.project as psy psy.plot.mapplot('your-netcdf-file.nc', name='your-variable')

which will then create a new figure with an instance of cartopy's GeoAxes on it. For more options and configurations of your plots, I refer to the docs :wink:, where you also find an example gallery, but you can of course always open an issue in the psyplot repository and I am happy to help

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  simple command line interface for xarray 310547057
379504761 https://github.com/pydata/xarray/issues/2034#issuecomment-379504761 https://api.github.com/repos/pydata/xarray/issues/2034 MDEyOklzc3VlQ29tbWVudDM3OTUwNDc2MQ== aymeric-spiga 5462289 2018-04-07T22:51:12Z 2018-04-07T22:51:12Z NONE

@philippjfr I had a look to Jupyterlab and for me who is already used to notebooks etc... it looks like a terrific tool! Although building an extension requires some skills. But your question is fully relevant: users not especially familiar with Python might more easily turn to a "xrview" concept as a replacement to ncview if this is a standalone app than if this is within the JupyterLab framework.

@Chilipp I have to try your psyplot tool because it looks exactly like what would be useful to me, and it is based on xarray. Did you elaborate from the matplotlib/cartopy wrapping from xarray, or did you develop your own matplotlib wrapping from scratch, only using xarray for CF-like cube exploration?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  simple command line interface for xarray 310547057
379503319 https://github.com/pydata/xarray/issues/2034#issuecomment-379503319 https://api.github.com/repos/pydata/xarray/issues/2034 MDEyOklzc3VlQ29tbWVudDM3OTUwMzMxOQ== Chilipp 9960249 2018-04-07T22:22:49Z 2018-04-07T22:22:49Z NONE

Hey! Thanks @benbovy for tagging me! Yes, indeed psyplot provides an interface between matplotlib and xarray to provide a more powerful tool than ncview or panoply to integrate data analysis and visualization. It provides a command line interface, a GUI and an implented ipython console. I actually wanted to make a new release and a post on the xarray mailing list by tomorrow to introduce it a bit more widely to the community.

If you are on the EGU next week by accident, I will also present it as a PICO presentation on Monday morning, April 9th at 8:30

Psyplot: Interactive data analysis and visualization with Python https://meetingorganizer.copernicus.org/EGU2018/PICO/28031/235994

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  simple command line interface for xarray 310547057
378352966 https://github.com/pydata/xarray/issues/2034#issuecomment-378352966 https://api.github.com/repos/pydata/xarray/issues/2034 MDEyOklzc3VlQ29tbWVudDM3ODM1Mjk2Ng== philippjfr 1550771 2018-04-03T18:37:01Z 2018-04-03T18:37:27Z NONE

I'm not familiar with ncview myself, but based on the screenshots it shouldn't be too difficult to implement something that gets close on top of xarray/dask/geoviews/JupyterLab and some widget framework (probably bokeh widgets or ipywidgets). From my (biased) perspective that seems like the most straightforward approach anyway.

The thing I'm not sure about is how likely users of ncview are to adopt JupyterLab. That would determine whether it would make more sense to write it as a standalone app and integrate it with JupyterLab or build it entirely within JupyterLab. In either case I'd be happy to give pointers and help out both on the HoloViews/GeoViews front and on the JupyterLab development, which I've recently familiarized myself with.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  simple command line interface for xarray 310547057
378220280 https://github.com/pydata/xarray/issues/2034#issuecomment-378220280 https://api.github.com/repos/pydata/xarray/issues/2034 MDEyOklzc3VlQ29tbWVudDM3ODIyMDI4MA== aymeric-spiga 5462289 2018-04-03T11:39:34Z 2018-04-03T11:39:34Z NONE

@fmaussion That's a really good point, actually I was about to code an option for automatic concat with xarray when you input several files in xarray-cli, but thought that was taking me too far for a simple example.

About you last point: I am not sure either, and that was the starting point of my questions. At least myself I like to use a python-based CLI interface for quick-but-nice-enough plots as a preliminary exploration that still allows for nearly publication-ready plots (which is not the case for ncview!). Then for more elaborate diagnostics etc etc I use python scripting. But I don't know if this translates to other people, although as @rabernat mentioned, the number of people using ncview might indicate CLI would be of interest.

It appears also that xarray is so handy that interactive use with ipython+xarray is a rather quick way to access netCDF files and have a quick exploration, although CLI would be quicker and would avoid writing the same code over and over.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  simple command line interface for xarray 310547057
378188334 https://github.com/pydata/xarray/issues/2034#issuecomment-378188334 https://api.github.com/repos/pydata/xarray/issues/2034 MDEyOklzc3VlQ29tbWVudDM3ODE4ODMzNA== aymeric-spiga 5462289 2018-04-03T09:30:37Z 2018-04-03T09:30:37Z NONE

Wow! Many thanks everyone. Tell me about constructive comments.

@rabernat xrview is exactly what I would have dreamed to ask for, without daring to ask. ncview is very easy for quick plots, but those plots are not publication-ready, so we end up losing time redoing stuff with Python -- thus an xarray-based tool would be killer indeed.

@JiaweiZhuang many thanks for your roadmap for a ncview replacement. I will have a look to the tools you propose when I have time. I overlooked GeoViews because I thought xarray + matplotlib + cartopy was enough for my purpose. If I come up with anything useful, I'll let everybody know. My skills in Python might not be up to the task, though, so solutions might be explored by other interested potential contributors.

@shoyer thank your for your kind message; I forgot to say initially that it was not my intent to see such a tool being included in xarray, but I am happy to see references to standalone CLI interfaces somewhere in xarray (maybe affiliated packages as mentioned here https://github.com/pydata/xarray/issues/1850). If my simple tool https://github.com/aymeric-spiga/xarray-cli can be of use to anyone, do feel free to link to it. This would be actually more than I could hope for, since this project is very basic and works mostly as a simple demonstrator. Contributions are welcome, although efforts may be more useful on the above-mentioned xrview idea

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  simple command line interface for xarray 310547057
378128255 https://github.com/pydata/xarray/issues/2034#issuecomment-378128255 https://api.github.com/repos/pydata/xarray/issues/2034 MDEyOklzc3VlQ29tbWVudDM3ODEyODI1NQ== fischcheng 7747527 2018-04-03T04:56:26Z 2018-04-03T04:56:26Z NONE

@rabernat I like your vision. Ncview is so simple yet powerful that I totally neglect how terrible it looks. Also the examples provided @JiaweiZhuang seem perfect for such task. All parts are there, just waiting for someone to put them together!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  simple command line interface for xarray 310547057
378107700 https://github.com/pydata/xarray/issues/2034#issuecomment-378107700 https://api.github.com/repos/pydata/xarray/issues/2034 MDEyOklzc3VlQ29tbWVudDM3ODEwNzcwMA== JiaweiZhuang 25473287 2018-04-03T02:26:41Z 2018-04-03T02:26:41Z NONE

And this JupyterLab approach will be way better than ncview... Say, you can easily compare multiple NetCDF files by subdividing panels.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  simple command line interface for xarray 310547057
378106951 https://github.com/pydata/xarray/issues/2034#issuecomment-378106951 https://api.github.com/repos/pydata/xarray/issues/2034 MDEyOklzc3VlQ29tbWVudDM3ODEwNjk1MQ== JiaweiZhuang 25473287 2018-04-03T02:21:33Z 2018-04-03T02:21:33Z NONE

This would spawn a web server providing an interactive web-based GUI explorer for all variables in the dataset. You could use this locally or on a remote system.

Seems like JupyterLab is a perfect fit for this purpose. See this geojson extension for example. Notice that you can view a *.geojson file in a standalone window (shown as a map) and do not have to use Jupyter notebooks at all.

It should be possible to view a NetCDF file directly in JupyterLab, with an extension built on top of xarray+GeoViews. @philippjfr should have more insights on this...

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  simple command line interface for xarray 310547057
378082894 https://github.com/pydata/xarray/issues/2034#issuecomment-378082894 https://api.github.com/repos/pydata/xarray/issues/2034 MDEyOklzc3VlQ29tbWVudDM3ODA4Mjg5NA== JiaweiZhuang 25473287 2018-04-02T23:45:40Z 2018-04-03T02:04:52Z NONE

thus replacement for ncview

GeoViews can make interactive plots of xarray data. There's an example.

An even more straightforward and customizable way is matplotlib + Jupyter Interact. It can easily replicate all ncview's functionalities.

{
    "total_count": 2,
    "+1": 2,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  simple command line interface for xarray 310547057
378031578 https://github.com/pydata/xarray/issues/2034#issuecomment-378031578 https://api.github.com/repos/pydata/xarray/issues/2034 MDEyOklzc3VlQ29tbWVudDM3ODAzMTU3OA== aymeric-spiga 5462289 2018-04-02T20:17:40Z 2018-04-02T20:17:40Z NONE

Thanks @fischcheng for your kind answer. I agree, it is my experience too to use ncdump for quick exploration, ncview for quick plots, cdo/nco for concat / averaging / anomalies etc... For the latter use, I found out Xarray had powerful methods so that I can script everything in python without a pre-processing with e.g. ncrcat. So I was wondering for an all-python solution, thus replacement for ncview since Xarray also have great plotting capabilities with thin matplotlib wrapping. But all-python replacement could also mean useless redundancy, I agree!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  simple command line interface for xarray 310547057
378021302 https://github.com/pydata/xarray/issues/2034#issuecomment-378021302 https://api.github.com/repos/pydata/xarray/issues/2034 MDEyOklzc3VlQ29tbWVudDM3ODAyMTMwMg== fischcheng 7747527 2018-04-02T19:38:09Z 2018-04-02T19:38:09Z NONE

From my experience, there are plenty of existing tools can do the data explore/quick-view thing, including the basic ncview, ncdump, cdo or panoply. Some of them support OpenDAP. I'm not sure if Xarray needs to have such feature.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  simple command line interface for xarray 310547057

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 15.35ms · About: xarray-datasette