Skip to content

WoodwellRisk/viewer

Repository files navigation

License: MIT

Woodwell Risk data viewer

The purpose of this site is to increase public access to climate risk data while showcasing some of the datasets the Risk group uses to communicate climate risk to the communities and external partners it works with.

Data sources

Water stress

Wildfires

Temperature

Coastal risk

Processing steps

Vector data

Our boundary files came from Natural Earth. So far, we have used:

  • 10m land and ocean boundaries [link]
  • 10m country- and state-level boundaries [link].

All SHP files were converted to GeoJSON format in GeoPandas. From there, we used Tippecanoe to convert the GeoJSON files to Mapbox .mbtiles format and used the Mapbox tool mbutil to convert those tiles to .pbf format.

Raster data

For back-end data analysis/transformation of NetCDF and TIF files, we used Python and R. Those rasters were then converted to Zarr pyramids using CarbonPlan's ndpyramid package.

Contributing

If you are considering making suggested changes to the codebase, please install pre-commit in your local environment.

pip install pre-commit

Then, you can initialize the code formatting hooks we set up with prettier like so:

pre-commit install

pre-commit hooks generally only run on files that have been staged for git commits. To make sure you lint and format all files before suggesting changes, you should run:

pre-commit run --all-files

Acknowledgements

This site's interface and functionality rely heavily on code developed by CarbonPlan. Specifically, we used the maps, components, and layouts libraries. We took inspiration from CarbonPlan's forest-risks-web code repository to create an updated and modified user interface for this data viewer. Additionally, we modified the <ExpandingSection /> component from the prototype-maps repository. You can read more about CarbonPlan's research and software development work here.

This repository contains code from the CarbonPlan components package. Copyright (c) 2020 CarbonPlan, distributed under a MIT License.

This repository contains code from the CarbonPlan maps package. Copyright (c) 2021 CarbonPlan, distributed under a MIT License.

This repository contains code from the CarbonPlan layouts package. Copyright (c) 2021 CarbonPlan, distributed under a MIT License.

This repository contains code from the CarbonPlan prototype-maps package. Copyright (c) 2021 CarbonPlan, distributed under a MIT License.

Packages

 
 
 

Contributors