Skip to main content

A data access layer for atmospheric time series datasets

Project description

air-db

air-db is a data access layer (DAL) to easily query atmospheric time series datasets from various sources. air-db does not include any database. It is required to install corresponding database to work air-db properly.

To install sample database:

from airdb import Database

Database.install_sample()

A database query can be implemented as follows:

from airdb import Database

db = Database('samp', return_type='df')

q = db.query(param=['so2', 'pm10'], city='istanbul', date=['>2010-05-10', '<2012-10-07'], month=5)

print(q)

del db  # close connection to database

and the output is:

      param      reg      city              sta                date     value
0      pm10  marmara  istanbul      çatladıkapı 2010-05-10 00:00:00  0.798218
1      pm10  marmara  istanbul      çatladıkapı 2010-05-10 01:00:00  0.946180
2      pm10  marmara  istanbul      çatladıkapı 2010-05-10 02:00:00  0.884385
3      pm10  marmara  istanbul      çatladıkapı 2010-05-10 03:00:00  0.537993
4      pm10  marmara  istanbul      çatladıkapı 2010-05-10 04:00:00  0.136689
...     ...      ...       ...              ...                 ...       ...
16123   so2  marmara  istanbul  şirinevler mthm 2012-05-31 19:00:00  0.697663
16124   so2  marmara  istanbul  şirinevler mthm 2012-05-31 20:00:00  0.615755
16125   so2  marmara  istanbul  şirinevler mthm 2012-05-31 21:00:00  0.489289
16126   so2  marmara  istanbul  şirinevler mthm 2012-05-31 22:00:00  0.385102
16127   so2  marmara  istanbul  şirinevler mthm 2012-05-31 23:00:00  0.039451

[16128 rows x 6 columns]

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

air-db-0.0.5.tar.gz (23.2 kB view details)

Uploaded Source

Built Distribution

air_db-0.0.5-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

Details for the file air-db-0.0.5.tar.gz.

File metadata

  • Download URL: air-db-0.0.5.tar.gz
  • Upload date:
  • Size: 23.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for air-db-0.0.5.tar.gz
Algorithm Hash digest
SHA256 c953888b5d4e681bd705f4c954d54f23b8c7b0c0ae81041153593dd2172fcf6b
MD5 90603abbcc33126aad097cf3302ca9a5
BLAKE2b-256 d51e3d38826d4ad090c3cfd9e7e936f9c60a787ce5476eabd61e66ffcecca05f

See more details on using hashes here.

File details

Details for the file air_db-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: air_db-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 21.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for air_db-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ea75de2829826dfccf5035123d4281de95c1d45363e3bdecb46d966913a59caf
MD5 32199f61d3d7138e6b4661a8e272aba7
BLAKE2b-256 c9866fbaae4abf6958a93451e2a0cf02604d0a9abc65e113bb0f7f92339b4099

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