Giter Club home page Giter Club logo

informatics-lab.cchd's Introduction

cchd

An example of a Climate Change Hazard Dashboard (CCHD).

IMPORTANT!

The point of this repo is to show how to make a dashboard.

No scientific rigour has been undertaken in preparing the data shown on the dashboard beyond the analytical and statistical techniques included in the repo's code. No further inference should be made from the contents of the dashboard beyond the fact that such a dashboard may be constructed.

Dashboard

This repo demonstrates an approach for producing a dashboard that makes it easier for users to explore some data. In this case, the dashboard allows us to explore the impacts of climate change on temperatures in the US.

What's shown

This dashboard shows mean absolute temperature and anomaly temperature over each mainland US State for the years 1860-2100, with data from the climate future scenarios A1B and E1. Anomalies are calculated from three 30-year climatic periods 1971-2000, 1981-2010, 1991-2020.

On top of this, data is synthesized to demonstrate the concepts of vulnerability to a hazard and risk to population from vulnerability to the hazard. This synthesized data is generated from data already in the dashboard. It naïvely uses the area of the US state as a proxy for population (an assumption starkly shown to be very poor by Alaska) and multiplies that by the future offset in years from now and a random number between 0.8 and 1.2.

This synthesized data is of no value beyond demonstrating the art of the possible.

Technologies used

There are a variety of different Python dashboarding technologies available. For the sake of making a choice, this dashboard makes use of Holoviz technologies, particularly:

  • Panel (for making the dashboard app)
  • hvPlot (for making the plots shown on the dashboard)
  • Param (for defining the interactivity parameters)
  • Colorcet (for selecting colormaps to make the dashboard's data more intuitive)

Implicitly also used are:

  • GeoViews (for plotting the geographic data - hvPlot hands off to GeoViews)
  • bokeh (for actually making the plot and the interactive app)

Using it

Panel makes it very easy to create a dashboard from a Panel app in a Python script or a Jupyter notebook. Thus you can run the app with the following commands:

$ cd cchd
$ panel serve climate_change_risk_dashboard_eg.ipynb --show

This will open the app in a new tab in your default browser.

Note that your local Python environment will need to provide at least the required library dependencies of the app. For example:

$ conda create -n cchd -c conda-forge python
$ conda activate cchd
$ conda install -c conda-forge panel hvplot colorcet pandas geopandas

informatics-lab.cchd's People

Contributors

dpeterk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.