Git Product home page Git Product logo

atms-597-sp-2020-project-2-group-d's Introduction

ATMS-597-SP-2020-Project-2-Group-D

Climate Stripes

This package is designed to re-create the so-called climate stripes (originally created by Ed Hawkins at the University of Reading). This code is part of a class assignment for ATMS 597 (Spring 2020) at the University of Illinois at Urbana Champaign. Use this class function to download daily temperature data from Global Historical Climate Network (GHCN) datasets hosted by the National Centers for Environmental Information (NCEI), and plot the anomalies as climate stripes according to the time duration and sampling interval desired by the user. The code also plots the mean values as a separate line plot, overlayed on the stripes.

The source code is in .py format and can be found in ATMS-597-SP-2020-Project-2-Group-D (Current Directory)/scripts/

Dependencies

Required packages

  • NumPy
  • Requests
  • Pandas
  • Json
  • Matplotlib

Suppported Plotting Frequencies

The stripes frequencies supported are:

  • Yearly
    • 'Y'
  • Monthly
    • 'M'
  • Weekly
    • 'W'
  • N days, where N is a natural number less than 1000
    • N

Example

from scripts.climate_stripes import climate_stripes

# Input GHCN station ID, dates and NCEI token to create a class object 
stripes = climate_stripes(station_id, "1950-01-01", "2015-12-31", Token)

# Plot at desired frequency (Y,M or W) without line plot and save figure  
stripes.plot('Y','Yearly_Stripes',lineplot = False)

# Call the plot method to plot 100-day stripes with line plot, without saving the figure
stripes.plot(100, '', lineplot = True)

Full Example Notebook

Project Team:

  • Divyansh Chug
  • Dongwei Fu
  • Puja Roy

atms-597-sp-2020-project-2-group-d's People

Contributors

dchug2 avatar dfu2020 avatar roypuja23 avatar

Watchers

 avatar

Forkers

roypuja23 dfu2020

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.