Skip to main content

Python Package for Standard Atmosphere

Project description

pystdatm

Python Package for Standard Atmosphere

The set of functions that follow International Standard Atmosphere model.

Note: Only SI units are supported.

Sample Code:

from pystdatm import (density, geometric_altitude, pressure,
                      speed_of_sound, temperature, viscosity)

alt = 14000.0 # metres above sea level
print(f'Altitude = {alt:.0f} m\n')

altz = geometric_altitude(alt)
print(f'Geometric Altitude = {altz:.0f} m\n')

temp = temperature(alt)
print(f'Air Temperature = {temp:.2f} K\n')

pres = pressure(alt)
print(f'Air Pressure = {pres:.6g} Pa\n')

rho = density(alt)
print(f'Air Density = {rho:.4f} kg/m**3\n')

mu = viscosity(temp)
print(f'Air Viscosity = {mu:.5g} Pa.s\n')

a = speed_of_sound(temp)
print(f'Speed of Sound = {a:.1f} m/s\n')

# Example of ISA Properties at Altitude with Temperature Deviation
deviation = 10.0 # K

rho_dev = density(alt, deviation=deviation)
print(f'Density ISA+{deviation:.0f} = {rho_dev:.4f} kg/m**3\n')

Sample Output:

Altitude = 14000 m

Geometric Altitude = 14031 m

Air Temperature = 216.65 K

Air Pressure = 14101.8 Pa

Air Density = 0.2268 kg/m**3

Air Viscosity = 1.7826e-05 Pa.s

Speed of Sound = 339.5 m/s

Density ISA+10 = 0.2167 kg/m**3

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

pystdatm-0.2.1.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pystdatm-0.2.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pystdatm-0.2.1.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pystdatm-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f84af3b3a915583172f4fb167df0d48f914bdf4ecd117615e08ba4b5e18454a6
MD5 cfa3831dde0c1da88875bc5a6860f14b
BLAKE2b-256 6ee4bff2ca8411627f599bddf1ba2436e4a95aa453a82ee3fcc13fa79287a66f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pystdatm-0.2.1.tar.gz:

Publisher: publish-to-pypi.yml on Xero64/pystdatm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pystdatm-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: pystdatm-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pystdatm-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a602556599801d2bc9f9a587b10a2da803232473a5ba200ad5486d17828e8412
MD5 fd0c99b9005a5d5b4b56a32fcba1edfc
BLAKE2b-256 37af0257ea5629e95110e1549bddf2f9af0da52d37d10fd630aeb41279fb2503

See more details on using hashes here.

Provenance

The following attestation bundles were made for pystdatm-0.2.1-py3-none-any.whl:

Publisher: publish-to-pypi.yml on Xero64/pystdatm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page