Skip to main content

Library of atmospheric models

Project description

MATMOS

alt text

MATMOS is a direct and inverse atmospheric model library. Currently it supports the International Standard Atmosphere model.

Install

pip install matmos

User's guide

Given an altitude, MATMOS allows you to calculate the temperature, pressure and density of the atmosphere (direct model). If given any of these (temperature, pressure or density), MATMOS will calculate the corresponding altitude and remaining quantities (indirect model).

As temperature is not a monotonic function of altitude (equal values of temperature happen at different altitudes), its inverse cannot be determined without more information. To solve this, the option to specify an altitude range where the temperature is to be found is provided.

The API reference is available here.

Install

pip install matmos

Models

alt text

User's guide

Importing a model

from matmos import ISA

Running and retrieving results

The model is run by simply initializing an instance with height, temperature, pressure or density as inputs. The results are stored as instance attributes and can be retrieved with the usual notation.

MATMOS allows for input in the form of Python numeric types as well as NumPy arrays. The unit convention can be seen in the table below.

Magnitude Altitude Temperature Pressure Density
Unit km K Pa kg/m^3

Direct model

Solving for a given height:

m = ISA(23.5)                       # 23.5 km

m.t                                 # Temperature
m.p                                 # Pressure
m.d                                 # Density

Inverse model

Solving for a given temperature:

m = ISA(t=225, hrange=[0, 20])      # 225 K, in the range from 0 to 20 km

m.h                                 # Altitude
m.t                                 # Temperature
m.d                                 # Density

Solving for a given pressure:

m = ISA(p=98000)                    # 98000 Pa

m.h                                 # Altitude
m.t                                 # Temperature
m.d                                 # Density

Solving for a given density:

m = ISA(p=0.03)                     # 0.03 kg/m^3

m.h                                 # Altitude
m.t                                 # Temperature
m.p                                 # Pressure

Back to top

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

matmos-0.0.0a3.tar.gz (4.8 kB view details)

Uploaded Source

File details

Details for the file matmos-0.0.0a3.tar.gz.

File metadata

  • Download URL: matmos-0.0.0a3.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for matmos-0.0.0a3.tar.gz
Algorithm Hash digest
SHA256 d9608e6338ffdc8391f7ba0e8a91eea8e1c7254b8e7e359b1a86a5e9b917946b
MD5 ef896f6c6b6b1ec1105260ac4f7ec57b
BLAKE2b-256 fae7e17cb5b58ffc2d6b33ab6ef2b4fb0a56bd6f7584813172bac7d203c5910d

See more details on using hashes here.

Provenance

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