Skip to main content

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

Metadata

Release files for recentquake 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for recentquake 0.0.1
File Size Uploaded
recentquake-0.0.1.tar.gz 4.8 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for recentquake 0.0.1
File Interpreter ABI Platform
recentquake-0.0.1-py3.6.egg Legacy Egg format - - Details
recentquake-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 14.7 kB

Release files / recentquake-0.0.1.tar.gz

Download URL recentquake-0.0.1.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3f11a169e8dc2f7419543fbfe2de8a9fba37938cfc7c22506ce9487d40d9531b
BLAKE2b-256 checksum
How to use checksums
c6fe255ba243ad2ed8cb4f03dbef366ee469eeb06524acf5eb79e912591f9a2a
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / recentquake-0.0.1-py3.6.egg

Download URL recentquake-0.0.1-py3.6.egg
Size 4.8 kB
Tags Egg
SHA-256 checksum
How to use checksums
11ea8c26766037b210f5e69028e62187378991379abcb049b36ee8f3635e78b8
BLAKE2b-256 checksum
How to use checksums
9b6e27931d622181aa18175caac43d7f5d0db993768030c3be9a9a72093e2a51
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / recentquake-0.0.1-py3-none-any.whl

Download URL recentquake-0.0.1-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cadb2610ad040f9ed39a649fff44982b449bc3b6837cd7578e5ab8b2e6cb9ae8
BLAKE2b-256 checksum
How to use checksums
c8dd55efdef4c97947e5f3f8d1b55cf3d1578d80abda83ac91cab79e3251476b
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.1 This release

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page