/weather

Companion app for Data Visualization Toolkit

Primary LanguageRuby

NOAA Weather Readings

This repository provides downloadable code for the book, "Data Visualization Toolkit"; see DataVisualizationToolkit.com.

These example programs are licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Creative Commons License

To Run

This is a rails app that runs on Ruby 2.2.3. Clone the repo and run:

  • bundle install
  • bundle exec rake db:create db:migrate

Checkpoints

  • Ch 3, "Working with Time Series Data"
  • Ch 4, "Working with Large Datasets"
    • Import large file via HTTP (uses git-lfs) (051d179)
    • Benchmarking (f0b4039)
    • Scopes in the WeatherReading model (56d207b)
    • Add WeatherReading index (fe7c719)
  • Ch 5, "Window Functions, Subqueries, and Common Table Expression"
    • lead() window function in console (not in app)
    • subquery, CTE in console (not in app)
    • CTE + heatmap (fd39ec6)
  • Ch 10, "Making Maps with Leaflet and Rails"