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 hashes)

Uploaded Source

Built Distributions

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

Uploaded Source

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

Uploaded Python 3

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