-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Welcome to the CS52 Google Earth Engine x Accountability Counsel wiki! This page tries to explain the structure of the app as of the end of CS52 (June 2019).
This diagram shows all relevant files, a summary of what each does, and their relationships in the React and Flask apps. Feel free to edit here.
(Assuming you have node and npm installed) To run the React app, navigate into the final directory and run
npm start
Now check localhost:3000 in your favorite browser to see the website.
(Assuming you have flask and the Earth Engine Python API installed and authenticated) To run the Flask app, navigate into the python-gee directory and run
flask run --host=0.0.0.0
There's nothing much to see, but you can go to localhost:5000 in your browser just to make sure things are up and running. If the Earth Engine authentication succeeded, you should see something like this:
{
"ee_hello_world": 0.8414709848078965
}
(All of these are linked to Claire's personal account right now; she would prefer for them to be moved to accounts owned by the Accountability Counsel if they choose to move forward with this codebase.)
- Google Earth Engine
- Personal email to use code.earthengine.google.com/
- Service account for server-side authentication (I never got this working)
- Google Maps API key
- Firebase
- Google Cloud Storage (I think?)
- The script in
download.pycurrently saves Earth Engine images as tif files. According to the documentation, "You can export images from Earth Engine in GeoTIFF or TFRecord format." Unfortunately, Chrome and Firefox do not appear to support tif rendering (according to this table; only Safari and Microsoft Edge do. TLDR: if you're on a Mac, the images on AnalysisPage will not load unless you use Safari.
