This tool was developed as a trigger mechanism for the typhoon Early action protocol of the Philippines Red Cross FbF project. The model will predict the potential damage of a typhoon before landfall, and the prediction will be percentage of completely damaged houses per municipality. The tool is available under the GPL license
To run the pipeline, you need access to an FTP server.
If you or your organization is interested in using the pipeline,
please contact 510 Global
to obtain the credentials. You will receive a file called secrets
, which you need to place in
the top-level directory.
The main code for the pipeline is IBF-Typhoon-model/src/
, which can in principle be run locally,
however we do recommend using Docker if you can.
To run locally:
- Enter the
IBF-Typhoon-model
directory and install the required Python packages, as well as thetyphoonmodel
package:pip install -r requirements.pip pip install .
- Install all packages listed at the top of the R script
run_model_v2.R
. - Ensure that all the parameters from the
secrets
file have been exported as environment variables - Execute:
When there is an active typhoon in the PAR polygon the model will run for the active typhoons, unless you specify a remote directory and typhoon name.
run-typhoon-model [OPTIONS] Options: --path TEXT main directory defult --remote_directory TEXT remote directory --typhoonname TEXT name for active typhoon
You will need to have docker
and docker-compose
installed.
You need to create an environment variable called TYPHOONMODEL_OUTPUT
that contains
the path to where you would like the model run output data to go.
To build and run the image, ensure you are in the top-level directory and execute:
docker-compose up --build
When you are finished, run
docker-compose down
to remove any docker container(s).