Se Level DBs
Project description
sealev
Allows to access various Sea Level Databases via python.
Installation
To install the package use the command:
pip install sealev
After the installation, it is possible to use the package in python:
python
Once you are in python environment you can give the following collamnds
from sealev.sldb import seaLevelDB
sl=seaLevelDB()
#
# get the list of available database sources:
dbs=sl.getDBs()
#
for db in dbs:
print(db)
You will get a list of all the database that you can query. You can select one specific database, i.e. DART, and requst the list of available devices:
darts=sl.getDevs('DART')
#
for dart in darts:
print(dart['id'],dart['location'],format(dart['lat'])+'/'+format(dart['lon']))
#
The response will be:
21413 Station 21413 - SOUTHEAST TOKYO - 700NM ESE of Tokyo, JP 30.492/152.085
21414 Station 21414 - AMCHITKA - 170 NM South of Amchitka, AK 48.97/178.165
21415 Station 21415 - ATTU - 175 NM South of Attu, AK 50.12/171.867
21416 Station 21416 - KAMCHATKA PENINSULA - 240NM SE of Kamchatka Peninsula, RU 48.12/163.43
21418 Station 21418 - NORTHEAST TOKYO - 450 NM NE of Tokyo, JP 38.73/148.8
...
56003 Station 56003 - Indian Ocean 2 - 630km NNE of Dampier -15.019/118.073
the keyword 'id' contains the reference identifier to retrieve the level data.
Suppose you want to retrieve the level values of one specific device, such as 21414 (Station 21414 - AMCHITKA - 170 NM South of Amchitka), you can give the following command:
values=sl.getLevel('DART','21414')
for j in range(len(values['x'])):
print(values['x'][j],values['y'][j])
The response is a list of data if the device has recent recorded data:
2024-10-02 00:00:00 5442.868
2024-10-02 00:15:00 5442.874
2024-10-02 00:30:00 5442.882
2024-10-02 00:45:00 5442.891
2024-10-02 01:00:00 5442.897
...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sealev-0.0.2.tar.gz.
File metadata
- Download URL: sealev-0.0.2.tar.gz
- Upload date:
- Size: 18.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48589e029ae011e2dd2dbfa91755b5da10c488c02a3d31f1ce6ebda09971a88e
|
|
| MD5 |
954e72e82821e64eb2979058ecbe630a
|
|
| BLAKE2b-256 |
c79674b3f1899e0c90d3b5e286bdc370db854912f169cf2cb9d3d7664ffed834
|
File details
Details for the file sealev-0.0.2-py3-none-any.whl.
File metadata
- Download URL: sealev-0.0.2-py3-none-any.whl
- Upload date:
- Size: 17.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6789863770e50c9653f171a420abee85ad4a1180e1c9d22674e7e5e51f5609e0
|
|
| MD5 |
5230ad40ce26b2663dbf9925fb62dbd5
|
|
| BLAKE2b-256 |
78026972f34c7ebc4bb61cd16de102c9c59412c99f555529f726e9642ead370b
|