Skip to content

CVanorio/ClimateAnalogInteractiveMap

Repository files navigation

Climate Analog Interactive Map

View the tool here!

This interactive web application allows users to explore how Wisconsin’s historical climate compares to the present-day climate across the United States. By using “climate analogs,” the app helps visualize how Wisconsin’s climate in the past matches the current climate of other locations, providing insights into climate change and variability.

Note: This project is designed to work with the backend repository ClimateAnalogDBandAPI, which provides the climate data and API endpoints used by the app.

Features

  • Interactive map of the U.S. with climate analogs for Wisconsin counties
  • Compare historical climate (temperature and precipitation) to present-day analogs
  • Select by county, year, season, or month
  • Visualize top analogs and explore climate data trends
  • Detailed popups and charts for climate data
  • Guided onboarding/tutorial using react-joyride

Getting Started

Prerequisites

  • Node.js (v14 or higher recommended)
  • npm (comes with Node.js)

Installation

  1. Clone the repository:

    git clone https://github.com/CVanorio/ClimateAnalogInteractiveMap.git
    cd ClimateAnalogInteractiveMap/climate-analog-react-app
  2. Install dependencies:

    npm install

Running the App

  1. Start the development server:
    npm start
    This will launch the app in your default browser at http://localhost:5000.

Project Structure

  • climate-analog-react-app/ – Main React app source code
    • src/ – React components, assets, styles, and utilities
    • public/ – Static files and HTML template
  • index.html, manifest.json – App metadata and configuration

Customization

  • Tour steps: Edit src/components/BackgroundIntro.js to customize the onboarding tutorial.
  • Map and data: Update data files in src/data/ or map components in src/components/map/ as needed.

Adapting for Other States

To use this app for a different state or multiple states:

  • Update the county selector in src/components/TargetCountySelector.js to list counties for the new state(s). If supporting multiple states, add a state selector and update the county dropdown accordingly.
  • Update the state abbreviation constant in src/utils/constants.js (e.g., TARGET_STATE_ABBR). For multiple states, make this dynamic based on the selected state.
  • Update any hardcoded references to "Wisconsin" in UI text, intro, and documentation.
  • Update map centering and boundaries in src/components/map/MapComponent.js if needed.

Contact

If you have questions about the data, methods, or how to set up this project, please reach out.

Wisconsin State Climatology Office (WI SCO)

Project Author


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published