The deployment repository for a hurricane forecasting system based on machine learning and deep learning methods
- A credentials.csv is required for authentication of the SMTP server to send emails. This is stored in a secret gist.
- Navigate to the
docker
directory in this repository - Run the docker command,
sudo docker build --no-cache -t hurricane .
to install the deployment using docker - Run the docker command,
sudo docker run -d hurricane
to activate software that will run email reports every hour
Note that the virtualized deployment utilizes the cron script, 0 * * * * python /hurricane-deploy/report.py >> /var/log/cron.log 2>&1
, to generate reports.
The credentials in CSV format need to be in the directory named credentials.csv
From this NHC resource described here, , we can import the most recent tropical storms using the following code.
import update.py
results = update.nhc()
This returns an object of the following form,
array of dict
Each dictionary is in the following form,
{
"storm" : string # the storm ID from the NHC
"metadata" : dict # the kml files used to create the results
"entries" : array of dict # The data for the storm in the form,
{
'time' : Datetime,
'wind' : Knots,
'lat' : Decimal Degrees,
'lon' : Decimal Degrees,
'pressure' : Barometric pressure (mb)
}
}