gsoc icon indicating copy to clipboard operation
gsoc copied to clipboard

A next-generation GUI for visualizing big gridded data in Python

Open rsignell-usgs opened this issue 7 years ago • 69 comments

ESIP Member Organization Name

US Geological Survey

Mentors

Rich Signell, USGS @rsignell-usgs Martin Durant, Anaconda @martindurant

Project Idea

CF-Compliant ndarray datasets can be visualized in tools that understand the NetCDF Data Model and the geospatial metadata they contain. While stand-alone tools like Panoply are often used on the desktop, the goal here is to develop a tool for visualizing and interacting with these datasets in Jupyter Notebooks using xarray, dask and the pyviz collection of widgets, rendering and layout tools.

2019-03-06_15-30-42

Idea Title

A next-generation GUI for visualizing big gridded data in Python

Abstract

There have been several important advances that now make it possible to render big gridded data from many different sources with a common Python-based toolset in the browser. The first is the CF conventions that allow non-ambiguous identification of coordinate and data variables, the second is xarray which represents the CF data model in Python, and the third is the pyviz collection of tools, that allows rendering of massive gridded data, widgets to control data selection, and tools to specify layouts of widgets and data displays in the browser.

Technical Details

The GSoC student would build a dashboard using panel that allows the user to specify an intake catalog containing CF-compliant datasets that can be loaded into xarray. The user would select a dataset, which would then display a list of variables contained in that dataset. The user would then select a variable, which would then trigger reading the variable by xarray and displaying on a map using hvplot. Depending on the variable dimensions, widgets containing time steps and/or vertical levels would be displayed which would allow specification of specific index or coordinate values to plot.

Bells and whistles like colormap selection and different types of visualization techniques could be added as time permits.

The work will be coordinated with the overarching "Next-Generation GUI" effort of @martindurant.

The development can be done on a Pangeo environment running on the Amazon cloud, which means the student will not have run anything or install any software locally -- they will only need their browser and a github account.

Helpful Experience

Experience with Python is required, experience with xarray, pyviz and github a big plus.

First steps

Video:

Getting Started:

  • https://intake.readthedocs.io/en/latest/index.html
  • https://panel.pyviz.org
  • https://hvplot.pyviz.org/user_guide/index.html
  • http://pyviz.org/tutorial/index.html

rsignell-usgs avatar Feb 11 '19 20:02 rsignell-usgs

Hi, @rsignell-usgs, I am very interested in working on the project and making a contribution to it. Thank You!

sugam45 avatar Feb 14 '19 12:02 sugam45

@sugam45, excellent. What is your experience with these components thus far?

rsignell-usgs avatar Feb 14 '19 13:02 rsignell-usgs

Hi all - Quick reminder that we should hold off on discussing projects at-depth until February 26th; that is the date mentor organizations are officially announced. It's okay to say 'hi' though!

AB

Annie Burgess, PhD

Lab Director | Earth Science Information Partners (ESIP)

esipfed.org/lab http://esipfed.org/lab | 585.738.7549

Sign up for the monthly ESIP Lab update here http://eepurl.com/dtKL8z.

On Thu, Feb 14, 2019 at 7:58 AM Sugam Srivastava [email protected] wrote:

Hi, @rsignell-usgs https://github.com/rsignell-usgs, I am very interested in working on the project and making a contribution to it. Thank You!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ESIPFed/gsoc/issues/14#issuecomment-463617953, or mute the thread https://github.com/notifications/unsubscribe-auth/AG_XwPyjj10TLeVKTf3cCkOzR9oYf_QAks5vNV2SgaJpZM4a0_s0 .

esip-lab avatar Feb 14 '19 13:02 esip-lab

I got to know about Pyviz through this issue. Pyviz is just absolutely amazing!!! It make visualising so much simpler, better and interesting as compared to simply matplotlib, seaborn or other plotting libraries.Thanks a lot for creating this issue and providing such superb resources!!

I would love to contribute to this project for GSOC. I have gone through all the videos mentioned above and finished pyviz tutorials.

There is also personal motivation involved in this project for me since I have several months of minute stock market data for which I wanted to design a dedicated interactive GUI in Python. This project is very much on the similar lines.

This is the task list I have prepared for myself to get started:

  1. Understand Holoviews by doing some more similar plotting tasks.
  2. Understand internals of Intake in depth.
  3. Understand xarray and dask in depth.
  4. Start using Pangeo to understand it better.
  5. Prepare a simple GUI for stock data which will help me to understand Pyviz and other packages in much depth and detail.

I really wish that ESIP gets selected!!

hdsingh avatar Feb 18 '19 11:02 hdsingh

Congratulations, ESIP for getting selected in GSOC 2019 !!!

hdsingh avatar Feb 27 '19 19:02 hdsingh

Great news indeed!

rsignell-usgs avatar Feb 27 '19 20:02 rsignell-usgs

pangeo.pydata.org site showing the error "Server Not Found". I think they have closed the access to it. screenshot_2019-03-01 deployments pangeo documentation

sugam45 avatar Feb 28 '19 21:02 sugam45

Yes, that pangeo instance is gone. Leaving it wide open was causing the research credits to be depleted too quickly. You can use the pangeo binder though. Try clicking the launch binder button here, for example: https://github.com/reproducible-notebooks/HRRR_Dashboard

rsignell-usgs avatar Feb 28 '19 22:02 rsignell-usgs

@rsignell-usgs ,I would be thrilled if I get to contribute to this projects as I have done past data visualization projects using Matplotlib,Seaborn,Plotly,Geoplot and also machine learning libraries like sci-kit learn,tensorflow,keras,Categotical Boost and Pybrain

kunakl07 avatar Mar 02 '19 21:03 kunakl07

i am looking to work on the project of the organization and contribute to the opensource

veer11997 avatar Mar 04 '19 03:03 veer11997

@rsignell-usgs I am deeply interested in this project.I have done past projects using well known plotting libraries in python.I have gone through the first steps section,Looking forward to contribute.

parthpm avatar Mar 04 '19 15:03 parthpm

I'm glad to see all the interest here! This will be very interesting and rewarding project!

rsignell-usgs avatar Mar 04 '19 15:03 rsignell-usgs

Sir,@rsignell-usgs.Can I contribute to this project? and where can I find the dataset? Or should I download the dataset of some regions from NCDC and show you the result?

kunakl07 avatar Mar 04 '19 15:03 kunakl07

For reproducibility, better to load data directly from a CF-compliant OPeNDAP endpoint or an S3 bucket (e.g. zarr format), like in: https://github.com/reproducible-notebooks/HRRR_Dashboard Binder

rsignell-usgs avatar Mar 04 '19 16:03 rsignell-usgs

Thanks sir,@rsignell-usgs!!

kunakl07 avatar Mar 04 '19 16:03 kunakl07

Part of this project will be figuring out what the lon,lat and time dimensions of an xarray dataset are, instead of assuming that they are in a certain order, as in the HRRR_Dashboard referenced above. The MetPy package can do this: https://stackoverflow.com/questions/53469510/how-to-identify-time-lon-and-lat-coordinates-in-xarray/

rsignell-usgs avatar Mar 05 '19 14:03 rsignell-usgs

Hi @rsignell-usgs , With the help of the link that you had provided,I am able to visualize the interactive map.Should,my map also show the latitude and the longitude as the mouse hovers through the region?

kunakl07 avatar Mar 06 '19 21:03 kunakl07

Yes, it should as long as the hover control is selected. Try running this example: Binder Note also that we currently need conda packages from development channels to make this work: https://github.com/reproducible-notebooks/HRRR_Dashboard/blob/master/environment.yml

rsignell-usgs avatar Mar 06 '19 22:03 rsignell-usgs

Cool Thanks sir And sir Colab doesn't support pyviz so we need to do in Jupyter Notebook only

kunakl07 avatar Mar 06 '19 22:03 kunakl07

Signing up to this conversation. I am heading up Intake at Anaconda and involved in our development of the GUI for it.

martindurant avatar Mar 08 '19 15:03 martindurant