Skip to main content

A package for visualization of the characteristics of earthquakes in the last 30 days

Project description

recentquake

 過去30日の地震のリアルタイムのデータからどのような特徴があるのかを示したグラフを表示する。国名とマグニチュードを指定することができる。知りたい国で知りたいマグニチュードを引数に入力すれば、指定した条件のデータ数と、その条件にあった4つのグラフが表示され、1つのhtmlファイルがブラウザで表示される。 データ:usgs(https://earthquake.usgs.gov/earthquakes/feed/v1.0/) 世界中のリアルタイムのデータベース

グラフ1:指定したマグニチュードと国での、マグニチュードの箱ひげ図
グラフ2:指定したマグニチュードと国での、マグニチュードのヒストグラム
グラフ3:指定したマグニチュードと国での、マグニチュードと深さの散布図
グラフ4:指定したマグニチュードと国での、1日ごとの地震の回数の棒グラフ
htmlファイル:指定したマグニチュードと国での、地震が起きたところの緯度経度をプロットした地図

recentquakeのインストール方法

recentquakeは公開されており、次のPyPIパッケージコマンドでインストールできます。
$pip install recentquake

recentquakeを実行する方法

recentquakeには3つのパラメータ(国、マグニチュードの最小値、マグニチュードの最大値)を設定する必要がある。
国名は一度実行した時にcountry_listとして得られるが、例として下に示しておく。
$recentquake 'Japan' 4 7
#出力例
$recentquake 'Japan' 4 7
country_list
['Nevada', 'CA', 'Hawaii', 'Alaska', 'Pakistan', 'Timor Leste', 'south of the Kermadec Islands', 'California', 'Peru', 'Fiji region', 'France', 'South Sandwich Islands region', 'Papua New Guinea', 'Idaho', 'Puerto Rico region', 'New Zealand', 'Puerto Rico', 'Fiji', 'Laos', 'Southern Alaska', 'Myanmar', 'Greece', 'Yemen', 'Chile', 'Maine', 'Afghanistan', 'Indonesia', 'Mexico', 'Washington', 'Oklahoma', 'Colorado', 'California-Nevada border region', 'Turkey', 'Pacific-Antarctic Ridge', 'Nicaragua', 'Mongolia', 'Banda Sea', 'India region', 'Italy', 'Utah', 'Montana', 'Tennessee', 'Bolivia', 'U.S. Virgin Islands', 'B.C., MX', 'Texas', 'Wyoming', 'Kentucky', 'Japan', 'Canada', 'New Mexico', 'Morocco', 'Vanuatu', 'Antigua and Barbuda', 'Oregon', 'Argentina', 'Central Alaska', 'south of the Fiji Islands', 'Dominican Republic', 'China', 'Molucca Sea', 'Russia', 'Iceland', 'Alabama', 'Japan region', 'Missouri', 'India', 'Mona Passage', 'Western Montana', 'Iran', 'Haiti', 'Tristan da Cunha region', 'Guatemala', 'central Mid-Atlantic Ridge', 'Alaska, Alaska', 'South Atlantic Ocean', 'Philippines', 'off the coast of Oregon', 'Svalbard and Jan Mayen', 'Tonga', 'Ecuador', 'South Carolina', 'Virgin Islands region', 'Central California', 'Colombia', 'western Montana', 'Aleutian Islands, Alaska', 'northern Alaska', 'Illinois', 'Solomon Islands', 'Kuril Islands', 'Arkansas', 'Arizona', 'Guam', 'El Salvador', 'Prince Edward Islands region', 'Taiwan', 'Costa Rica', 'Kansas', 'Chagos Archipelago region', 'Greenland Sea', 'Tajikistan', 'Nepal', 'Kermadec Islands region', 'Honduras', 'Celebes Sea', 'Somalia', 'western Xizang', 'south of Panama', 'Mid-Indian Ridge', 'southeastern Missouri', 'western Texas', 'Federated States of Micronesia', 'Malawi', 'South Africa', 'western Indian-Antarctic Ridge', 'Carlsberg Ridge', 'northwest of the Kuril Islands', 'Philippine Islands region', 'Flores Sea', 'north of Severnaya Zemlya', 'South Korea', 'Northern Mariana Islands', 'Bonaire, Saint Eustatius and Saba ', 'southeast of Easter Island', 'Vietnam', 'New Caledonia', 'southern East Pacific Rise', 'Sea of Okhotsk', 'south of Africa', 'Ohio', 'west of Macquarie Island', 'Mauritius - Reunion region', 'Balleny Islands region', 'Anguilla', 'Washington-Oregon border region', 'Poland', 'Australia', 'Panama', 'central East Pacific Rise', 'Alaska Peninsula', 'South Indian Ocean', 'Venezuela', 'Gulf of Alaska', 'Azores-Cape St. Vincent Ridge', 'West Virginia', 'Louisiana', 'West Chile Rise', 'Afghanistan-Tajikistan-Pakistan region', 'Southwest Indian Ridge', 'near the coast of Nicaragua', 'North Carolina', 'Near the coast of western Turkey', 'southeast of the Loyalty Islands', 'Easter Island region', 'Norway', 'southern Mid-Atlantic Ridge', 'Chile-Argentina border region', 'southern Iran', 'North Atlantic Ocean', 'Azerbaijan', 'New Hampshire', 'OR', 'Wallis and Futuna', 'Idaho-Montana border region', 'southeast Indian Ridge', 'Myanmar-India border region', 'north of Svalbard', 'central Peru', 'Reykjanes Ridge', 'northern Mid-Atlantic Ridge', 'Vanuatu region', 'Santa Cruz Islands']
データ数:68

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

recentquake-0.0.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distributions

recentquake-0.0.1-py3.6.egg (4.8 kB view details)

Uploaded Source

recentquake-0.0.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file recentquake-0.0.1.tar.gz.

File metadata

  • Download URL: recentquake-0.0.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.7

File hashes

Hashes for recentquake-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3f11a169e8dc2f7419543fbfe2de8a9fba37938cfc7c22506ce9487d40d9531b
MD5 38a81617c2fdf27abee7e767c57f67f5
BLAKE2b-256 c6fe255ba243ad2ed8cb4f03dbef366ee469eeb06524acf5eb79e912591f9a2a

See more details on using hashes here.

File details

Details for the file recentquake-0.0.1-py3.6.egg.

File metadata

  • Download URL: recentquake-0.0.1-py3.6.egg
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.7

File hashes

Hashes for recentquake-0.0.1-py3.6.egg
Algorithm Hash digest
SHA256 11ea8c26766037b210f5e69028e62187378991379abcb049b36ee8f3635e78b8
MD5 66a16b67b7f0c090b6204b1d845c1387
BLAKE2b-256 9b6e27931d622181aa18175caac43d7f5d0db993768030c3be9a9a72093e2a51

See more details on using hashes here.

File details

Details for the file recentquake-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: recentquake-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.7

File hashes

Hashes for recentquake-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cadb2610ad040f9ed39a649fff44982b449bc3b6837cd7578e5ab8b2e6cb9ae8
MD5 09a95af4e48126d1f9070a542cf0fc77
BLAKE2b-256 c8dd55efdef4c97947e5f3f8d1b55cf3d1578d80abda83ac91cab79e3251476b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page