gmprocess 2.9.0__tar.gz → 2.9.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {gmprocess-2.9.0 → gmprocess-2.9.1}/CHANGELOG.md +5 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/CONTRIBUTING.md +66 -15
- {gmprocess-2.9.0 → gmprocess-2.9.1}/PKG-INFO +1 -1
- {gmprocess-2.9.0 → gmprocess-2.9.1}/code.json +42 -1
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/global_fetcher.py +13 -6
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/knet/knet_fetcher.py +24 -28
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/subcommands/download.py +21 -7
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/utils/download_utils.py +4 -1
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess.egg-info/PKG-INFO +1 -1
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess.egg-info/scm_file_list.json +4 -0
- gmprocess-2.9.1/src/gmprocess.egg-info/scm_version.json +8 -0
- gmprocess-2.9.0/src/gmprocess.egg-info/scm_version.json +0 -8
- {gmprocess-2.9.0 → gmprocess-2.9.1}/.coveragerc +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/.gitignore +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/.gitlab-ci.yml +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/.vscode/settings.json +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/CODE_OF_CONDUCT.md +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/DISCLAIMER.md +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/LICENSE.md +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/MANIFEST.in +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/README.md +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/pyproject.toml +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/pytest.ini +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/setup.cfg +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/setup.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/setup_env.sh +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/__init__.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/apps/__init__.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/apps/gmrecords.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/bin/__init__.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/bin/bundle_datarelease.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/bin/cwa_gather.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/bin/export_ff_sac.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/bin/fetch_orfeus.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/bin/fix_inventory.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/bin/fix_metadata_from_sis.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/bin/get_cali_cloud.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/bin/gmconvert.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/bin/gminfo.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/bin/gmprocess_config.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/bin/gmrecords.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/bin/gmworkspace.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/bin/update_event_json.sh +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/core/__init__.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/core/provenance.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/core/scalar_event.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/core/stationstream.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/core/stationtrace.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/core/streamarray.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/core/streamcollection.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/CESMD_NGA_ids.csv +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/__init__.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/config_production.yml +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/config_production_v1.yml +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/config_test.yml +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/config_test_download.yml +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/cosmos_table10.xls +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/cosmos_table4.xls +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/demo/ci38457511/raw/CICCC.RAW +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/demo/ci38457511/raw/CICLC.v1 +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/demo/ci38457511/raw/CITOW2.RAW +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/demo/nc72282711/workspace.h5 +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/fdsn_codes.csv +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/lme/SA_rotd50.0_2020.03.31.csv +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/modules.yml +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/nga_w2_selected.csv +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/nn_clipping/bias_1.csv +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/nn_clipping/bias_output.csv +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/nn_clipping/masterF.txt +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/nn_clipping/weight_1.csv +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/nn_clipping/weight_output.csv +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/nn_qa/Cant/M.csv +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/nn_qa/Cant/bias_1.csv +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/nn_qa/Cant/bias_2.csv +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/nn_qa/Cant/bias_output.csv +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/nn_qa/Cant/final_training.csv +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/nn_qa/Cant/masterF.txt +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/nn_qa/Cant/model_3.txt +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/nn_qa/Cant/model_5.txt +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/nn_qa/Cant/mu_sigma.csv +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/nn_qa/Cant/weight_1.csv +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/nn_qa/Cant/weight_2.csv +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/nn_qa/Cant/weight_output.csv +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/nn_qa/CantWell/M.csv +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/nn_qa/CantWell/bias_1.csv +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/nn_qa/CantWell/bias_2.csv +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/nn_qa/CantWell/bias_output.csv +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/nn_qa/CantWell/final_training.csv +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/nn_qa/CantWell/masterF.txt +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/nn_qa/CantWell/model_0.txt +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/nn_qa/CantWell/mu_sigma.csv +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/nn_qa/CantWell/weight_1.csv +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/nn_qa/CantWell/weight_2.csv +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/nn_qa/CantWell/weight_output.csv +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/picker.yml +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/station_coordinates.xlsx +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/data/usgs_ids_nga_and_srcmod_cross_reference.xlsx +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/extended_xml/extended_xml_parser.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/extended_xml/sis_metadata.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/extended_xml/sis_snapshot.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/gui/__init__.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/gui/gui_ucla/Documentation.md +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/gui/gui_ucla/GUI_human_review.ipynb +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/gui/gui_ucla/HumanReviewGUI.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/gui/gui_ucla/__init__.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/__init__.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/asdf/__init__.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/asdf/base_metrics_xml.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/asdf/core.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/asdf/flatfile.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/asdf/flatfile_constants.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/asdf/path_utils.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/asdf/rupture.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/asdf/station_metrics_xml.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/asdf/stream_workspace.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/asdf/utils.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/asdf/waveform_metrics_xml.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/asdf/workspace_constants.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/bhrc/__init__.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/bhrc/core.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/cosmos/__init__.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/cosmos/cesmd_fetcher.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/cosmos/cesmd_search.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/cosmos/core.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/cosmos/cosmos_writer.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/cosmos/data_structures.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/cwb/__init__.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/cwb/core.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/dmg/__init__.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/dmg/core.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/dynamic_search_parameters.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/esm/__init__.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/esm/core.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/fetcher.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/geonet/__init__.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/geonet/core.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/json/core.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/json/processed_json.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/knet/__init__.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/knet/core.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/nga.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/nsmn/__init__.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/nsmn/core.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/obspy/__init__.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/obspy/core.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/obspy/fdsn_fetcher.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/read.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/read_directory.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/renadic/__init__.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/renadic/core.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/report.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/seedname.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/smc/__init__.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/smc/core.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/unam/__init__.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/unam/core.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/usc/__init__.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/usc/core.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/io/utils.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/metrics/__init__.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/metrics/combine.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/metrics/containers.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/metrics/metric_collection_base.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/metrics/oscillator.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/metrics/reduce.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/metrics/response.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/metrics/rotate.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/metrics/station_metric.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/metrics/station_metric_collection.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/metrics/transform.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/metrics/utils.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/metrics/waveform_metric_calculator.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/metrics/waveform_metric_calculator_component_base.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/metrics/waveform_metric_collection.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/metrics/waveform_metric_component.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/metrics/waveform_metric_list.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/metrics/waveform_metric_type.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/subcommands/__init__.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/subcommands/arg_dicts.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/subcommands/assemble.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/subcommands/autoprocess.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/subcommands/autoshakemap.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/subcommands/base.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/subcommands/clean.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/subcommands/compute_station_metrics.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/subcommands/compute_waveform_metrics.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/subcommands/export_cosmos.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/subcommands/export_failure_tables.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/subcommands/export_gmpacket.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/subcommands/export_metric_tables.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/subcommands/export_provenance_tables.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/subcommands/generate_regression_plot.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/subcommands/generate_report.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/subcommands/generate_station_maps.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/subcommands/import_data.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/subcommands/init.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/subcommands/lazy_loader.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/subcommands/process_waveforms.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/subcommands/processing_steps.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/subcommands/projects.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/subcommands/update_stationxml.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/utils/__init__.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/utils/args.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/utils/assemble_utils.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/utils/config.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/utils/config_versioning.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/utils/constants.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/utils/export_gmpacket_utils.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/utils/ground_motion_models.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/utils/logging.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/utils/memory.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/utils/misc.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/utils/misc_plots.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/utils/prompt.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/utils/report_utils.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/utils/rupture_utils.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/utils/strec.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/utils/summary_plots.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/utils/tables.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/utils/tests_utils.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/__init__.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/adjust_highpass.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/adjust_highpass_ridder.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/baseline_correction.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/clipping/clip_detection.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/clipping/clipping_ann.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/clipping/clipping_check.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/clipping/histogram.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/clipping/jerk.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/clipping/max_amp.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/clipping/ping.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/clipping/std_dev.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/convert_units.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/corner_frequencies.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/count_stats.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/detrend.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/fft.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/filtering.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/instrument_response.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/integrate.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/nn_quality_assurance.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/phase.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/pretesting.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/prism_adaptive_baseline.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/processing.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/processing_step.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/resample.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/sanity_checks.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/snr.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/spectrum.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/taper.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/windows.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/zero_crossings.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess/waveform_processing/zero_pad.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess.egg-info/SOURCES.txt +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess.egg-info/dependency_links.txt +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess.egg-info/entry_points.txt +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess.egg-info/requires.txt +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/src/gmprocess.egg-info/top_level.txt +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/tools/housing/crawl_sis_housing.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/tools/housing/summarize_sis_housing.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/tools/matlab/README.md +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/tools/matlab/get_all_waveforms.m +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/tools/matlab/get_events.m +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/tools/matlab/get_waveform_metrics.m +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/tools/matlab/waveform_plot.png +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/tools/sis_qa/compare_sis_fix_metrics.py +0 -0
- {gmprocess-2.9.0 → gmprocess-2.9.1}/tools/sis_qa/run_sis_fix.sh +0 -0
|
@@ -75,14 +75,52 @@ Common reasons to rebase include:
|
|
|
75
75
|
|
|
76
76
|
## Releases
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
Releases are prepared and tagged with the `releases` command from the
|
|
79
|
+
[`esi-releases`](https://code.usgs.gov/ghsc/esi/esi-releases) package
|
|
80
|
+
(`pip install esi-releases`, version 0.2.0 or later). Run it from the
|
|
81
|
+
repository root; every command accepts `--help`, and `--dry-run` shows what
|
|
82
|
+
would change without changing anything.
|
|
83
|
+
|
|
84
|
+
The changelog should already describe the release: each merge request adds
|
|
85
|
+
its changes under the `## main` heading of `CHANGELOG.md`.
|
|
86
|
+
|
|
87
|
+
1. Start from an up-to-date main branch and check the release metadata:
|
|
88
|
+
```
|
|
89
|
+
git checkout main
|
|
90
|
+
git pull --tags
|
|
91
|
+
releases check
|
|
92
|
+
```
|
|
93
|
+
`releases check` reports problems with `code.json`, `CHANGELOG.md` and the
|
|
94
|
+
git tags, such as a release that was made without updating `code.json`.
|
|
95
|
+
2. Prepare the release. Choose "major", "minor" or "patch" following
|
|
96
|
+
[semantic versioning](https://semver.org); for example, for a minor
|
|
97
|
+
release:
|
|
80
98
|
```
|
|
99
|
+
releases minor --dry-run
|
|
81
100
|
releases minor
|
|
82
101
|
```
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
102
|
+
This adds an entry for the new version to `code.json` with updated URLs,
|
|
103
|
+
and moves the notes under `## main` in `CHANGELOG.md` into a new dated
|
|
104
|
+
section for the version. It stops without changing anything if there are
|
|
105
|
+
no notes under `## main` or the version is already tagged.
|
|
106
|
+
3. Review the changes, editing them if needed, then commit them on a release
|
|
107
|
+
candidate branch named like `v1.2.1.rc0`:
|
|
108
|
+
```
|
|
109
|
+
git diff
|
|
110
|
+
git checkout -b v1.2.1.rc0
|
|
111
|
+
git commit -m "Release v1.2.1" code.json CHANGELOG.md
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Alternatively, if you don't need to review the changes first, steps 2 and
|
|
115
|
+
3 can be done in one command:
|
|
116
|
+
```
|
|
117
|
+
releases minor --commit
|
|
118
|
+
```
|
|
119
|
+
This makes the same changes, creates a release candidate branch named like
|
|
120
|
+
`v1.2.1.rc0` (using the next unused `rc` number, or the name given with
|
|
121
|
+
`--branch`), and commits `code.json` and `CHANGELOG.md` to it as
|
|
122
|
+
"Release v1.2.1". It requires a working tree with no uncommitted changes.
|
|
123
|
+
4. Generate the regression comparison reports for this release, review them, and commit them to the `v1.2.1.rc0` branch:
|
|
86
124
|
```
|
|
87
125
|
cd tests/regression
|
|
88
126
|
python regression_test.py --parameters release.yml release
|
|
@@ -92,22 +130,35 @@ Common reasons to rebase include:
|
|
|
92
130
|
- The command compares the previous release with the branch, with the saved SIS metadata on as in the default configuration, and writes the report to `tests/regression/reports/v1.2.1/sis-on/`. It takes the version from `code.json` and the previous release from the latest tag. See `tests/regression/README.md`.
|
|
93
131
|
- When the SIS metadata or its use changes in the release, add `--sis-off` to also compare with the SIS metadata off in both versions. That report, in `sis-off/`, shows the code changes alone, so the two reports separate them from the SIS changes.
|
|
94
132
|
- The checkout must be clean. If the branch changes after the reports are made, generate them again, so that they describe the code that is merged and tagged.
|
|
95
|
-
|
|
133
|
+
5. Push the branch to your origin. For example:
|
|
134
|
+
```
|
|
135
|
+
git push -u origin v1.2.1.rc0
|
|
96
136
|
```
|
|
97
|
-
|
|
137
|
+
6. Create a merge request into upstream main, review the reports with the rest of the changes, and merge it.
|
|
138
|
+
7. Tag the release **from main**:
|
|
98
139
|
```
|
|
99
|
-
|
|
100
|
-
|
|
140
|
+
git checkout main
|
|
141
|
+
git pull --tags
|
|
142
|
+
releases tag
|
|
143
|
+
```
|
|
144
|
+
`releases tag` checks that main is clean and matches the branch it tracks
|
|
145
|
+
(so your main should track the upstream main), and that `code.json` and
|
|
146
|
+
the changelog agree on a version that has not been tagged yet. It then
|
|
147
|
+
creates an annotated tag such as `v1.2.1` and prints the command to push
|
|
148
|
+
it. Push the tag upstream:
|
|
101
149
|
```
|
|
102
|
-
git tag -a v1.2.1 -m "Version 1.2.1"
|
|
103
150
|
git push upstream v1.2.1
|
|
104
151
|
```
|
|
105
152
|
- This git push command is what triggers the "release" pipeline that includes the test, build, and deploy stages.
|
|
106
|
-
- *Note that we cannot have a hyphen in the tag name.*
|
|
107
|
-
- Also, if we end the tag name with "dev" then it will be build and uploaded to pypi as a pre-release version, which means that it will never be pip installed unless the user specifies the exact version of the pre-release.
|
|
108
|
-
- Maintenance note: the PYPI tokens are maintained in gitlab for the ESI group, under Settings then CI/CD, then Variables. These tokens are associated with the "pager_cicd" pypi service account.
|
|
109
|
-
|
|
110
|
-
|
|
153
|
+
- *Note that we cannot have a hyphen in the tag name.*
|
|
154
|
+
- Also, if we end the tag name with "dev" then it will be build and uploaded to pypi as a pre-release version, which means that it will never be pip installed unless the user specifies the exact version of the pre-release. `releases` does not create these tags; create them with `git tag -a`.
|
|
155
|
+
- Maintenance note: the PYPI tokens are maintained in gitlab for the ESI group, under Settings then CI/CD, then Variables. These tokens are associated with the "pager_cicd" pypi service account.
|
|
156
|
+
8. Create a release from the tag in GitLab, titled like `v1.2.1`. For the
|
|
157
|
+
"describe this release" section, use the release's changelog notes,
|
|
158
|
+
printed by:
|
|
159
|
+
```
|
|
160
|
+
releases changelog v1.2.1
|
|
161
|
+
```
|
|
111
162
|
|
|
112
163
|
|
|
113
164
|
## Build Documentation
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gmprocess
|
|
3
|
-
Version: 2.9.
|
|
3
|
+
Version: 2.9.1
|
|
4
4
|
Summary: USGS Automated Ground Motion Processing Software
|
|
5
5
|
Author-email: Eric Thompson <emthompsone@usgs.gov>, Mike Hearne <mhearne@usgs.gov>, Brad Aagaard <baagaard@usgs.gov>, Bruce Worden <cbworden@contractor.usgs.gov>, John Rekoske <jrekoske@ucsd.edu>, Heather Hunsinger <hhunsinger@usgs.gov>, Gabe Ferragut <gferragut@usgs.gov>
|
|
6
6
|
License: License
|
|
@@ -1,4 +1,45 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"name": "groundmotion-processing",
|
|
4
|
+
"description": "Read and process ground motion waveform data",
|
|
5
|
+
"version": "v2.9.1",
|
|
6
|
+
"status": "Production",
|
|
7
|
+
"organization": "U.S. Geological Survey",
|
|
8
|
+
"vcs": "git",
|
|
9
|
+
"repositoryURL": "https://code.usgs.gov/ghsc/esi/groundmotion-processing.git",
|
|
10
|
+
"homepageURL": "https://code.usgs.gov/ghsc/esi/groundmotion-processing",
|
|
11
|
+
"downloadURL": "https://code.usgs.gov/ghsc/esi/groundmotion-processing/-/archive/v2.9.1/groundmotion-processing-v2.9.1.zip",
|
|
12
|
+
"disclaimerURL": "https://code.usgs.gov/ghsc/esi/groundmotion-processing/-/raw/v2.9.1/DISCLAIMER.md",
|
|
13
|
+
"permissions": {
|
|
14
|
+
"licenses": [
|
|
15
|
+
{
|
|
16
|
+
"name": "Public Domain, CC0-1.0",
|
|
17
|
+
"URL": "https://code.usgs.gov/ghsc/esi/groundmotion-processing/-/raw/v2.9.1/LICENSE.md"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"usageType": "openSource",
|
|
21
|
+
"exemptionText": null
|
|
22
|
+
},
|
|
23
|
+
"laborHours": 1,
|
|
24
|
+
"languages": [
|
|
25
|
+
"python"
|
|
26
|
+
],
|
|
27
|
+
"tags": [
|
|
28
|
+
"earthquake",
|
|
29
|
+
"impact",
|
|
30
|
+
"strong motion",
|
|
31
|
+
"amplitudes",
|
|
32
|
+
"ground motion",
|
|
33
|
+
"usg-artificial-intelligence"
|
|
34
|
+
],
|
|
35
|
+
"contact": {
|
|
36
|
+
"name": "Eric Thompson",
|
|
37
|
+
"email": "emthompson@usgs.gov"
|
|
38
|
+
},
|
|
39
|
+
"date": {
|
|
40
|
+
"metadataLastUpdated": "2026-11-19"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
2
43
|
{
|
|
3
44
|
"name": "groundmotion-processing",
|
|
4
45
|
"description": "Read and process ground motion waveform data",
|
|
@@ -1063,4 +1104,4 @@
|
|
|
1063
1104
|
"metadataLastUpdated": "2019-08-22"
|
|
1064
1105
|
}
|
|
1065
1106
|
}
|
|
1066
|
-
]
|
|
1107
|
+
]
|
|
@@ -120,15 +120,22 @@ def fetch_data(
|
|
|
120
120
|
etpl = (time, magnitude, lat, lon)
|
|
121
121
|
esummary = efmt % etpl
|
|
122
122
|
for fetcher in instances:
|
|
123
|
+
logging.info(f"Trying fetcher {str(fetcher)}")
|
|
123
124
|
if "FDSN" in str(fetcher):
|
|
124
125
|
fetcher.retrieve_data()
|
|
125
126
|
else:
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
127
|
+
try:
|
|
128
|
+
events = fetcher.get_matching_events(solve=True)
|
|
129
|
+
if not events:
|
|
130
|
+
msg = "No event matching %s found by class %s"
|
|
131
|
+
logging.warning(msg, esummary, str(fetcher))
|
|
132
|
+
continue
|
|
133
|
+
fetcher.retrieve_data(events[0])
|
|
134
|
+
except Exception as e:
|
|
135
|
+
logging.warning(
|
|
136
|
+
f"Failure to retrieve data using {str(fetcher)}. "
|
|
137
|
+
f"'{str(e)}'. Skipping."
|
|
138
|
+
)
|
|
132
139
|
|
|
133
140
|
|
|
134
141
|
def find_fetchers(lat, lon):
|
|
@@ -47,7 +47,7 @@ DETAIL_TEMPLATE = (
|
|
|
47
47
|
"https://earthquake.usgs.gov/earthquakes/"
|
|
48
48
|
"feed/v1.0/detail/{eventid}.geojson"
|
|
49
49
|
)
|
|
50
|
-
|
|
50
|
+
NATTEMPTS = 3
|
|
51
51
|
|
|
52
52
|
# default values for this fetcher
|
|
53
53
|
# if None specified in constructor, AND no parameters specified in
|
|
@@ -62,6 +62,22 @@ class URLNotReachedException(Exception):
|
|
|
62
62
|
pass
|
|
63
63
|
|
|
64
64
|
|
|
65
|
+
def get_url_response(user, password, zipurl):
|
|
66
|
+
response = None
|
|
67
|
+
logger = logging.getLogger()
|
|
68
|
+
for i in range(NATTEMPTS):
|
|
69
|
+
try:
|
|
70
|
+
logger.info(f"Downloading zip file {zipurl} (Attempt {i})...")
|
|
71
|
+
response = requests.get(zipurl, auth=(user, password))
|
|
72
|
+
if response.status_code == 200:
|
|
73
|
+
return response
|
|
74
|
+
except Exception as e:
|
|
75
|
+
continue
|
|
76
|
+
raise URLNotReachedException(
|
|
77
|
+
f"Failed to download after {NATTEMPTS} failures."
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
|
|
65
81
|
def get_ascii_coordinates(fobj):
|
|
66
82
|
latitude = None
|
|
67
83
|
longitude = None
|
|
@@ -264,28 +280,7 @@ class KNETFetcher(DataFetcher):
|
|
|
264
280
|
url = URL_TEMPLATE.format(
|
|
265
281
|
year=str(jst_time.year), month=f"{jst_time.month:02d}"
|
|
266
282
|
)
|
|
267
|
-
|
|
268
|
-
response = requests.get(url, auth=(self.user, self.password))
|
|
269
|
-
if response.status_code != 200:
|
|
270
|
-
raise URLNotReachedException(
|
|
271
|
-
f"Could not access NIED url: {url}"
|
|
272
|
-
)
|
|
273
|
-
except requests.exceptions.ConnectionError:
|
|
274
|
-
time.sleep(NIED_DNS_SLEEP_TIME)
|
|
275
|
-
try:
|
|
276
|
-
response = requests.get(url, auth=(self.user, self.password))
|
|
277
|
-
if response.status_code != 200:
|
|
278
|
-
raise URLNotReachedException(
|
|
279
|
-
f"Could not access KIK url: {url}"
|
|
280
|
-
)
|
|
281
|
-
except Exception as e:
|
|
282
|
-
raise URLNotReachedException(
|
|
283
|
-
f"Could not access NIED url: {url} with exception {str(e)}"
|
|
284
|
-
)
|
|
285
|
-
except Exception as e:
|
|
286
|
-
raise URLNotReachedException(
|
|
287
|
-
f"Could not access NIED url: {url} with exception {str(e)}"
|
|
288
|
-
)
|
|
283
|
+
response = get_url_response(self.user, self.password, url)
|
|
289
284
|
events = self._get_event_times(url, jst_time, response.text)
|
|
290
285
|
if solve and len(events) > 1:
|
|
291
286
|
event = self.solve_events(events)
|
|
@@ -379,12 +374,13 @@ class KNETFetcher(DataFetcher):
|
|
|
379
374
|
continue
|
|
380
375
|
href = list_item.find_all("a")[0].attrs["href"]
|
|
381
376
|
zipurl = url + href
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
f"
|
|
377
|
+
try:
|
|
378
|
+
response = get_url_response(self.user, self.password, zipurl)
|
|
379
|
+
except URLNotReachedException as unre:
|
|
380
|
+
msg = (
|
|
381
|
+
f"Failed to download {zipurl} with message '{str(unre)}'."
|
|
387
382
|
)
|
|
383
|
+
raise URLNotReachedException(msg)
|
|
388
384
|
logging.info("Downloaded zip file.")
|
|
389
385
|
zip_bytes = BytesIO(response.content)
|
|
390
386
|
fcount = 0
|
|
@@ -10,12 +10,16 @@ base = LazyLoader("base", globals(), "gmprocess.subcommands.base")
|
|
|
10
10
|
constants = LazyLoader("constants", globals(), "gmprocess.utils.constants")
|
|
11
11
|
misc = LazyLoader("misc", globals(), "gmprocess.utils.misc")
|
|
12
12
|
obspy = LazyLoader("obspy", globals(), "obspy")
|
|
13
|
-
global_fetcher = LazyLoader(
|
|
13
|
+
global_fetcher = LazyLoader(
|
|
14
|
+
"global_fetcher", globals(), "gmprocess.io.global_fetcher"
|
|
15
|
+
)
|
|
14
16
|
|
|
15
17
|
download_utils = LazyLoader(
|
|
16
18
|
"download_utils", globals(), "gmprocess.utils.download_utils"
|
|
17
19
|
)
|
|
18
|
-
scalar_event = LazyLoader(
|
|
20
|
+
scalar_event = LazyLoader(
|
|
21
|
+
"scalar_event", globals(), "gmprocess.core.scalar_event"
|
|
22
|
+
)
|
|
19
23
|
|
|
20
24
|
|
|
21
25
|
class DownloadModule(base.SubcommandModule):
|
|
@@ -72,7 +76,7 @@ class DownloadModule(base.SubcommandModule):
|
|
|
72
76
|
self._check_arguments()
|
|
73
77
|
|
|
74
78
|
event_ids, events = self._get_event_ids_from_args()
|
|
75
|
-
logging.info(f"Number of events to
|
|
79
|
+
logging.info(f"Number of events to download: {len(event_ids)}")
|
|
76
80
|
download_all = (
|
|
77
81
|
(gmrecords.args.rupture is False)
|
|
78
82
|
and (gmrecords.args.origin is False)
|
|
@@ -84,17 +88,23 @@ class DownloadModule(base.SubcommandModule):
|
|
|
84
88
|
event_dir = gmrecords.data_path / event_id
|
|
85
89
|
event_dir.mkdir(exist_ok=True)
|
|
86
90
|
if (events is None) or (not events[ievent]):
|
|
91
|
+
logging.info("Downloading event json...")
|
|
87
92
|
event_info = download_utils.download_comcat_event(event_id)
|
|
93
|
+
logging.info("Writing event json...")
|
|
88
94
|
scalar_event.write_geojson(event_info, event_dir)
|
|
89
|
-
|
|
95
|
+
logging.info("Creating scalar event...")
|
|
90
96
|
event = scalar_event.ScalarEvent.from_params(
|
|
91
97
|
id=event_info["id"],
|
|
92
|
-
time=obspy.UTCDateTime(
|
|
98
|
+
time=obspy.UTCDateTime(
|
|
99
|
+
event_info["properties"]["time"] / 1000.0
|
|
100
|
+
),
|
|
93
101
|
latitude=event_info["geometry"]["coordinates"][1],
|
|
94
102
|
longitude=event_info["geometry"]["coordinates"][0],
|
|
95
103
|
depth_km=event_info["geometry"]["coordinates"][2],
|
|
96
104
|
magnitude=event_info["properties"]["mag"],
|
|
97
|
-
magnitude_type=event_info["properties"].get(
|
|
105
|
+
magnitude_type=event_info["properties"].get(
|
|
106
|
+
"magType", None
|
|
107
|
+
),
|
|
98
108
|
)
|
|
99
109
|
else:
|
|
100
110
|
event = events[ievent]
|
|
@@ -107,6 +117,7 @@ class DownloadModule(base.SubcommandModule):
|
|
|
107
117
|
|
|
108
118
|
if download_all or gmrecords.args.rupture:
|
|
109
119
|
# this uses download_comcat_event again!!
|
|
120
|
+
logging.info("Getting rupture file...")
|
|
110
121
|
download_utils.download_rupture_file(event.id, event_dir)
|
|
111
122
|
|
|
112
123
|
strec = None
|
|
@@ -114,7 +125,10 @@ class DownloadModule(base.SubcommandModule):
|
|
|
114
125
|
print("strec is not enabled, please enable and try again.")
|
|
115
126
|
sys.exit(0)
|
|
116
127
|
|
|
117
|
-
if config["strec"]["enabled"] and (
|
|
128
|
+
if config["strec"]["enabled"] and (
|
|
129
|
+
download_all or gmrecords.args.strec
|
|
130
|
+
):
|
|
131
|
+
logging.info("Getting STREC results...")
|
|
118
132
|
strec = download_utils.get_strec_results(event, event_dir)
|
|
119
133
|
|
|
120
134
|
if download_all or gmrecords.args.waveforms:
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"""Module for download unility functions."""
|
|
2
2
|
|
|
3
3
|
# stdlib imports
|
|
4
|
-
import sys
|
|
5
4
|
import json
|
|
6
5
|
import logging
|
|
6
|
+
import sys
|
|
7
7
|
|
|
8
8
|
# third party imports
|
|
9
9
|
import requests
|
|
@@ -32,8 +32,11 @@ def download_comcat_event(event_id):
|
|
|
32
32
|
Dictionary with event information.
|
|
33
33
|
"""
|
|
34
34
|
event_url = EVENT_TEMPLATE.replace("[EVENT]", event_id)
|
|
35
|
+
logging.info(f"Requests get of {event_url}...")
|
|
35
36
|
response = requests.get(event_url)
|
|
37
|
+
logging.info(f"Got response...")
|
|
36
38
|
if response.ok:
|
|
39
|
+
logging.info(f"Returning response dictionary...")
|
|
37
40
|
return response.json()
|
|
38
41
|
else:
|
|
39
42
|
logging.info(f"{event_id} not found in ComCat.")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gmprocess
|
|
3
|
-
Version: 2.9.
|
|
3
|
+
Version: 2.9.1
|
|
4
4
|
Summary: USGS Automated Ground Motion Processing Software
|
|
5
5
|
Author-email: Eric Thompson <emthompsone@usgs.gov>, Mike Hearne <mhearne@usgs.gov>, Brad Aagaard <baagaard@usgs.gov>, Bruce Worden <cbworden@contractor.usgs.gov>, John Rekoske <jrekoske@ucsd.edu>, Heather Hunsinger <hhunsinger@usgs.gov>, Gabe Ferragut <gferragut@usgs.gov>
|
|
6
6
|
License: License
|
|
@@ -1953,6 +1953,10 @@
|
|
|
1953
1953
|
"tests/regression/reports/v2.9.0/sis-on/metrics_rotd_percentile=50.0_differences.csv.gz",
|
|
1954
1954
|
"tests/regression/reports/v2.9.0/sis-on/report.pdf",
|
|
1955
1955
|
"tests/regression/reports/v2.9.0/sis-on/summary.json",
|
|
1956
|
+
"tests/regression/reports/v2.9.1/sis-on/gmpacket_differences.csv.gz",
|
|
1957
|
+
"tests/regression/reports/v2.9.1/sis-on/metrics_rotd_percentile=50.0_differences.csv.gz",
|
|
1958
|
+
"tests/regression/reports/v2.9.1/sis-on/report.pdf",
|
|
1959
|
+
"tests/regression/reports/v2.9.1/sis-on/summary.json",
|
|
1956
1960
|
"tests/regression/sis-off.yml",
|
|
1957
1961
|
"tests/regression/sis-on.yml",
|
|
1958
1962
|
"tools/housing/crawl_sis_housing.py",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|