Skip to content

Serra314/rise-italy-experiment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RISE Italy experiment

Bayesian ETAS implementation using Inlabru for the next time-dependent models RISE forecasting experiment for Italy

The project contains four folders:

  1. daily_forecast : a folder where the produced daily forecast will be stored.

  2. input : a folder where the data used to produce the forecast is stored. It contains the ISIDE catalogue (ISIDE_catalog_selected_PyCSEP), the testing region (testing.area.dat) and the collection region (collection.area.dat).

  3. source : a folder where the code to produce the forecast is stored. It contains two files: source_inlabru_utilities.R containing the functions to fit the model and produce the forecast, and source_inlabru_1dayfore.R which is the script that needs to be runned to produce the forecast.

  4. documentation : a folder containing a document illustrating the implemented model (Theory_doc.pdf), a document giving more details on the approximation performed (Theory_supplement.pdf), a document listing all the R-packages needed to run the code (Code_doc.pdf) and containing instruction on how to run the code. For more details on the R-packages we have provided our complete session information as an R object (session.Info.Rds).

The .txt file parameters contains imporant information for the script producing the forecast. It needs to contain the starting and end dates of the forecast, provided as forecastStartDate = %Y/%m/%d %h:%m:%s and forecastEndDate = %Y/%m/%d %h:%m:%s, and the path for the data used for model fitting, provided as PathCatalogData = ..path, and the path of the folder where the forecast will be stored, provided as PathOutputData = ..path (the two points before the actual path are mandatory). Please refer to the provided parameter document for an example.

Produce a forecast

The document requirements.txt contains a simple list of required R-packages needed to successfully produce a forecast. To check if the packages are already installed and to install possible missing ones there is a Makefile script to be run. To run the script just open a terminal in the folder and run the following command:

make

If all packages are installed correctly it will return the following message 'All packages installed'. After having received the above message, to produce a forecast is sufficient to run the following command:

R < source/source_inlabru_1dayfore.R --save

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published