Giter VIP home page Giter VIP logo

datacenters-drought's Introduction

datacenters-and-drought

Map visualization of datacenters and drought occurrences in Western USA on June 22, 2021.

Research by Gauthier Roussilhe. Technical cartography work by B. Keller and F. Manca.

Installation

Pre-requisites:

  • Python 3.8+
  • C libraries (install via apt, brew, or another package manager for your system):

Then run the install script:

scripts/install

Quickstart

First, initialize datasets:

scripts/initdata

Generate the map (output in out/):

scripts/main

Troubleshooting

(macOS) geos_c.h / proj_api.h file not found

Problem: during scripts/install, one of these errors shows up:

  lib/cartopy/trace.cpp:633:10: fatal error: 'geos_c.h' file not found
  #include "geos_c.h"
           ^~~~~~~~~~
  1 error generated.
  error: command '/usr/bin/clang' failed with exit code 1
  lib/cartopy/trace.cpp:634:10: fatal error: 'proj_api.h' file not found
  #include "proj_api.h"
           ^~~~~~~~~~~~
  1 error generated.
  error: command '/usr/bin/clang' failed with exit code 1

Solution:

  • brew install geos
  • brew install proj@7.
  • Add export CPPFLAGS="$CPPFLAGS -I/usr/local/opt/proj/include" to your bash profile (e.g. to ~/.zshrc).
  • Restart your shell.
  • Ensure pkg-config --cflags proj shows something like -I/usr/local/Cellar/proj@7/7.2.1/include.
  • Retry.

Credits

License

MIT

datacenters-drought's People

Contributors

florimondmanca avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.