https://github.com/htofi/isadata.jl
A Julia package to calculate International Standard Atmosphere data
https://github.com/htofi/isadata.jl
atmosphere julia
Last synced: 4 months ago
JSON representation
A Julia package to calculate International Standard Atmosphere data
- Host: GitHub
- URL: https://github.com/htofi/isadata.jl
- Owner: HTofi
- License: other
- Created: 2020-05-17T12:58:35.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-01-24T23:28:51.000Z (over 5 years ago)
- Last Synced: 2025-11-21T12:15:49.066Z (7 months ago)
- Topics: atmosphere, julia
- Language: Julia
- Homepage:
- Size: 21.5 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ISAData
[](https://travis-ci.com/HTofi/ISAData.jl) [](http://codecov.io/github/HTofi/ISAData.jl?branch=master)
ISAData is a Julia package that can be used to calculate thermodynamic properties of air (density, pressure, temperature, and viscosity) at a certain altitude in the atmosphere using the **I**nternational **S**tandard **A**tmosphere (ISA) model.
## Installation
ISAData can be installed from Julia's REPL with the following command:
```
]add ISAData
```
## Usage
The package contains only one exported function called `ISAdata`. The function is called with the altitude as the input parameter, and it returns a tuple containing the values for density, pressure, temperature, and dynamic viscosity. For example:
```
julia> using ISAData
julia> ρ, P, T, μ = ISAdata(10000)
(0.4136571526878796, 26510.092578167572, 223.25492665430897, 1.461852633009453e-5)
```
where all quantities are in SI units.
`ISAdata` also supports the `Quantity` type provided by the [Unitful](https://github.com/PainterQubits/Unitful.jl) package. For example:
```
julia> using Unitful
julia> ρ, P, T, μ = ISAdata(10u"km")
(0.4136571526878796 kg m^-3, 26510.092578167572 Pa, 223.25492665430897 K, 1.461852633009453e-5 Pa s)
```
Here, output values are also of the type `Quantity`, and this provides the flexibility to convert quantities into different units:
```
julia> P |> u"lbf/ft^2"
553.6747950560401 lbf ft^-2
```