This release is a pre-release and may not be stable for production use.
MATMOS
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
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
Metadata
Release files for matmos 0.0.0a3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| matmos-0.0.0a3.tar.gz | 4.8 kB | Without provenance | Details for matmos-0.0.0a3.tar.gz |
Release files / matmos-0.0.0a3.tar.gz
| Download URL | matmos-0.0.0a3.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9608e6338ffdc8391f7ba0e8a91eea8e1c7254b8e7e359b1a86a5e9b917946b
|
|
BLAKE2b-256 checksum How to use checksums |
fae7e17cb5b58ffc2d6b33ab6ef2b4fb0a56bd6f7584813172bac7d203c5910d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for matmos 0.0.0a3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.