Giter Club home page Giter Club logo

nrml_converters's Introduction

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).

nrml_converters's People

Contributors

g-weatherill avatar vsilva avatar mmpagani avatar julgp avatar

Watchers

Sreeram avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.