For experts: straight to the point
# Clone the repo: git clone git@gitlab.unige.ch:geohealth/accessmod_replay_demo.git cd accessmod_replay_demo # Launch the script: ./script.sh # Check the result: gdalinfo -stats out/1_120/raster_travel_time_original/raster_travel_time_original.img
Step-by-step procedure
Requirements
The replay function requires a bash command to run, a language that can be used in Linux-based and Mac OS only. To use it in Windows, the easiest approach is to install a Linux-based distro from the Microsoft Store, e.g. Ubuntu 20.04, or the Windows Subsystem Linux (WSL), which is anyway required to run Docker desktop. Then, you can use the command line in this distro to run the Replay bash commands.
After installing any of the distros, there will be a short installation and activation process that will ask you to set a user name and an administrator password.
It is necessary to have Docker desktop and AccessMod installed. For instructions in how to install Docker desktop, look here, and for AccessMod, here or here.
Files preparation
To run multiple sequential analyses, it is necessary first to prepare the baseline data and the general analysis configuration in AccessMod.
- Start Docker desktop
- Start AccessMod
- In the left panel, go to Settings and select ‘Enable advanced options in modules’
- To prepare your configuration file, load the required layers and prepare the analysis as usual, in the selected tool. To avoid double computations, select the advanced option ‘Save analysis parameters without computing’. This will save your file names and analysis parameters in a
.JSON
configuration file.