For the preliminary Probabilistic Seismic Hazard Maps of Afghanistan, we make available the software source-code that was used to generate the maps and data. While this page makes this content available and also attempts to explain some basic steps involved to run the software, significant subject-matter and computer background knowledge are required in order to re-run this process yourself. Nonetheless, simply viewing the source code involved in generating these maps can provide useful insight into the hazard estimates.
Configuration FilesDownload Configuration Files (3.1 kB)
These files contain configuration information needed to produce a probabilistic seismic hazard map and include input and output directories and files, weights for each input file, and the probability level to extract from the hazard curve, for example, the ground motions expected to be exceeded with a 2% probability in 50 years. The download contains nine configuration files, one for each of the nine maps.
Input FilesDownload Input Files (272 kB)
These files contain input parameters to the Fortran source code used to generate the hazard curves from which the hazard maps are derived. The input files specify the grid over which hazard curves are calculated, ground-motion attenuation relationships, and specifics about the source, for example, location, magnitude and annual rate. In order to re-create the maps produced by the USGS, these files should not be modified. They should be placed in a folder called “InF”. In any case, insure that the directories and file names of the input files indicated in the configurations files are pointing to the correct locations.
Source CodeDownload Source Files (52 kB)
These files are the source code that make up the software that generated the hazard curves and maps. It is a mixture of Fortran and C code and requires that you have appropriate compilers for each installed on your machine if you plan to re-compile (the code was compiled with gfortan and gcc). If you plan to re-compile the source code, you may need to modify the “Makefile” to suit your system environment. Executables will be placed in a directory called “bin”. At this point you should be able to run the software.