The CEM-WICH (CEM Web Interface and Coupling Helper) provides a web-based graphical user interface for running the CEM (Coastline Evolution Model). The GUI serves two purposes:
- Simplifies the generation of CEM inputs
- Automatically compares CEM outputs to Landsat images provided by Google Earth Engine (GEE)
The purpose of the CEM-WICH it to estimate the extent to which wave climate controls local shoreline morhpology at a location of interest.
The following sections provide instructions for setting up and running and instance of the CEM-WICH. For instructions on use, skip to Using the CEM-WICH
-
The Python environment is managed using Anaconda. To set up the environment:
- navigate to the project in an Anaconda command prompt
conda env create -f environment.yml
to create the environmentconda activate cem-wich
to activate the environment
-
Tha Javascript distribution is managed using gulpjs. To install gulp fuctions:
npm install
-
The Flask server requires a Google Cloud service account to fufill Earth Engine requests.
- Follow instructions here to create a service account
- Place your
private_key.json
in the parent directory of the project
-
Build the C binary library using cmake:
- Navigate to
server\C
mkdir _build
cd _build
cmake ..
make
make install
- verify
py_cem.dll
orpy_cem.so
has been installed underserver\C\_build
- Navigate to
-
Package the client-side application using gulp:
The application can be packaged either for production or debugging.gulp debug
places the original js files in the distribution foldergulp build
places concatenated and minified js in the distribution folder
Deploy the cem-wich with python cem_wich.py
.