Skip to main content

Atmospheric sciences utility library

Project description

atmos is a library of Python programming utilities for the atmospheric sciences. It is in ongoing development. If you have an idea for a feature or have found a bug, please post it on the GitHub issue tracker.

Information on how to use the module can be found predominantly by using the built-in help() function in Python. Many docstrings are automatically generated by the module and so information may appear to be missing in the source code. HTML documentation will be available at a later date.

This module is currently alpha. The API of components at the base module level should stay backwards-compatible, but sub-modules are subject to change. In particular, features in the util module are likely to be changed or removed entirely.

Features

  • defined constants used in atmospheric science

  • functions for common atmospheric science equations

  • a simple calculate() interface function for accessing equations

  • no need to remember equation function names or argument order

  • fast calculation of quantities using numexpr

Dependencies

This module is tested to work only with Python 2.7 on Unix, but support is given for Python 3.x and all platforms. If there are bugs on your particular version of Python, please submit it to the GitHub issue tracker.

Package dependencies:

  • numpy

  • numexpr

  • six

  • nose

Installation

To install this module, download and run the following:

$ python setup.py install

If you would like to edit and develop the code, you can instead install in develop mode

$ python setup.py develop

If you are running Anaconda, you can install using conda:

$ conda install -c mcgibbon atmos

Development version

The most recent development version can be found in the GitHub develop branch.

Examples

Calculating pressure from virtual temperature and air density:

>>> import atmos
>>> atmos.calculate('p', Tv=273., rho=1.27)
    99519.638400000011

License

This module is available under an MIT license. Please see LICENSE.txt.

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

atmos-0.2.1.tar.gz (25.8 kB view details)

Uploaded Source

File details

Details for the file atmos-0.2.1.tar.gz.

File metadata

  • Download URL: atmos-0.2.1.tar.gz
  • Upload date:
  • Size: 25.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for atmos-0.2.1.tar.gz
Algorithm Hash digest
SHA256 22b96d299bf9cbec29dccc6784a55e59c2967afb2862190e11d80e55fb69116f
MD5 464b5b55a2c00d4380f92793a90dcd37
BLAKE2b-256 c9cda1332f3ff8b3344e99501fef941de760e17e15771ffe8ef950f52d4b0d78

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