# pg-atmospherics

> Atmospherics JavaScript Library

Latest version **1.0.1** (published 2020-03-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install pg-atmospherics
pnpm add pg-atmospherics
yarn add pg-atmospherics
bun add pg-atmospherics
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-03-05 |
| First published | 2020-03-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Paul Gilchrist |
| Maintainers | paulgilchrist |
| Keywords | atmospherics, ballistics, npm, pg-atmospherics |

## Links

- npm: https://www.npmjs.com/package/pg-atmospherics
- Repository: https://github.com/PaulGilchrist/pg-atmospherics
- Homepage: https://github.com/PaulGilchrist/pg-atmospherics.git
- Issues: https://github.com/PaulGilchrist/pg-atmospherics/issues
- npm.io page: https://npm.io/package/pg-atmospherics

## Recent versions

- 1.0.1 (latest) — 2020-03-05
- 1.0.0 — 2020-03-05

## README

# Atmospherics NPM library

## Constants

* `altitudeAdjustmentFactorTable` - Altitude adjustment factor at altitude (feet / 1000)
* `barometricPressureTable` - Standard barometric pressure (inches Hg) at altitude (feet / 1000)
* `dropTable` - currentVelocity/muzzleVelocity (feet per second / 1000)
* `speedOfSoundAtSeaLevel` - (feet per second)
* `temperatureTable` - Standard temperature (degrees F) at altitude (feet / 1000)
* `vaporPressureOfWaterTable` - Vapor pressure of water (inches Hg) at temperature (degrees F / 2)
* `weightDensityOfAirAtSeaLevel` - (pounds per cubic foot)

## Functions

* `altitudeAdjustmentFactor(altitude)` - Adjusts from the standard altitude (sea level) to the current altitude.
* `barometricPressureAdjustmentFactor(altitude, barometricPressure)` - Compares the barometric pressure (inches Hg) at a given altitude (feet) to the standard barometric pressure at that altitude.
* `interpolateArray(array, arrayIndex)` - Takes the nearest 2 numbers in a lookup table and returns a number between them.
* `relativeHumidityAdjustmentFactor(temperature, barometricPressure, relativeHumidity)` - Compares the relative humidity (percentage) at a given altitude (feet) to the standard relative humidity at that altitude.
* `speedOfSound(altitude)` - Speed of sound (feet per second) at a given altitude (feet).
* `speedOfSoundFactor(altitude)` - The speed of sound factor compares the speed of sound (feet per second) at a given altitude (feet) to the standard speed of sound at sea level.
* `standardRelativeHumidity(altitude)` - Compares the relative humidity (percentage) at a given altitude (feet) to the standard relative humidity at that altitude.
* `temperatureAdjustmentFactor(altitude, temperature)` - Compares the temperature (degrees F) at a given altitude (feet) to the standard temperature at that altitude.
* `weightDensityOfAir(altitude)` - Barometric pressure (inches Hg) at a given altitude (feet)

---
_Source: https://npm.io/package/pg-atmospherics · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
