Skip to content

Collection of standalone python scripts for converting OpenQuake outputs from NRML to other formats

License

Notifications You must be signed in to change notification settings

air4134/nrml_converters

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nrml_converters

Collection of standalone python scripts for converting NRML files (as generated or consumed by OpenQuake) to other formats.

Current Functions

The oq_input folder contains a script for converting OpenQuake NRML input source model and rupture model files to ESRI shapefile, and vice versa.

The oq_output folder contains scripts for converting OpenQuake NRML output files (hazard curves, hazard maps, uniform hazard spectra, stochastic event sets, ground motion fields, disaggregation matrices) to .csv (comma separated) or .txt (tab delimited) files.

Each script can be executed from shell by invoking the python command followed by the script name, and by one or more flag arguments (depending on the script).

For each script, an help flag is available providing instructions for use (just type: python SCRIPT_NAME.py --help).

Installation

No installation is needed; however, the scripts require the following dependences:

If working in an environment where OpenQuake is already installed then the first five python dependencies are already available. The only missing one is pyshp which can be installed using the following command:

sudo pip install pyshp

In other environments it is recommended to install numpy, lxml and shapely using the standard packages (dependent on the OS).

About

Collection of standalone python scripts for converting OpenQuake outputs from NRML to other formats

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published