Skip to main content

Library of atmospheric models

Project description

MATMOS

alt text

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

MATMOS allows you to calculate the temperature, pressure and density of the atmosphere receiving as input a given height (direct model), or any of the other quantities (indirect).

As temperature is not a monotonic function of height (equal values of temperature happen at different heights), 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

Use

MATMOS allows for input in the form of floats and 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

Importing a model

from matmos import ISA

Running and retrieving results

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

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.0a1.tar.gz (4.3 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: matmos-0.0.0a1.tar.gz
  • Upload date:
  • Size: 4.3 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.0a1.tar.gz
Algorithm Hash digest
SHA256 1740325f9540478dce836e2aa532b67888aa9b7d358880eac944e8b702fba34c
MD5 d1caa85b146aa0dbaf311148f362a3f5
BLAKE2b-256 6a359e45dd77e2a1f44c63cae3f9e71fbd7a4fff18748da6b300a8540d715029

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