Git Product home page Git Product logo

gdmspy's Introduction

  • Note: Because "Old-GDMS" System is closed by CW"A", although new GDMS system is not that perfect, we still move forward and archive this repo. :)

GDMSpy: the Old-GDMS P-file Downloader

This program can help you login Old-GDMS system, and get Picking-file by filename in correct format you give. If you have Earthquake Catalog from CWB Old-GDMS system, This program helps you a lot when you want to batch download multiple P-files.

  • Note: If your research agency has archived several years of data, we encourage you to use that, preventing make too much load to that server.

Download

Demo

Requirement

  • Poetry (>=1.1.13)
  • python3 (>=3.8)
  • gtk3 (PyGObject >=3.38.0)
  • zenipy (0.1.5)
  • requests (>=2.25.1)
  • urllib3 (>=1.26.5)

Installation (Dependencies)

System package first

sudo apt install python3-gi python3-requests python3-urllib3 libgtk-3-dev
pip install --user zenipy

System pacakge and Poetry

sudo apt install libgtk-3-dev
cd $PROJECT_ROOT   ## enter your project top dir path
poetry install

Usage

Installed by system pacakge fist:

python3 downloader.py

Installed by Poetry:

poetry run python3 downloader.py

post processing

dos2unix *
sed -i 's/ \./0\./g' ????????.???  
sed -i 's/ -\./-0\./g' ????????.???                      

Known Problems

Because GDMS website will still response HTTP 200 when Pfile search error occurs. Please manually check your downloaded P-file format is correct by file ????????.??? (in Unix-like system)

TODO

  • Auto Choose which network to use: CWB24 or CWBSN by years of data

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.