Python code, complementary to pyamp, to calculate ML with different methods and attenuation functions using pyamp_amplitude output file or database table.
First, clone the git repository
git clone https://github.com/INGV/pyml.git
cd pyml
docker build --tag ingv/pyml .
in case of errors, try:
docker build --no-cache --pull --tag ingv/pyml .
To run the container, use the command below; the -v
option is used to "mount" working directory into container:
docker run --rm -v $(pwd)/examples/input:/opt/data ingv/pyml --in_file_name /opt/data/eventid_28745631.json --in_file_format json --out_format json
Thanks to your contributions!
Here is a list of users who already contributed to this repository:
(c) 2024 Raffaele Distefano raffaele.distefano[at]ingv.it
(c) 2024 Valentino Lauciani valentino.lauciani[at]ingv.it
Istituto Nazionale di Geofisica e Vulcanologia, Italia