Crates.io | quakeml |
lib.rs | quakeml |
version | 0.1.8 |
source | src |
created_at | 2021-12-08 00:21:14.169724 |
updated_at | 2022-01-09 20:54:00.324395 |
description | Deserialization of QuakeML - a flexible, extensible and modular XML representation of seismological data. |
homepage | |
repository | https://github.com/HerrMuellerluedenscheid/quakeml |
max_upload_size | |
id | 494158 |
size | 48,800 |
This python implementation by Nima Nooshiri has been used as reference.
use quakeml::read_quakeml;
use std::path::PathBuf;
fn main() {
let path = PathBuf::from(r"sample/data.quakeml");
let catalog = read_quakeml(&path);
println!("catalog data: {}", catalog);
}
After installing the command line tools with
cargo install --path .
you can download events given a certain time range from USGS with e.g.:
usgs --start-time 2021-01-01T00:00:00 --end-time 2021-01-01T01:00:00 --save-as events.quakeml