Javascript implementation of the barometric function for determining air density and pressure as a function of altitude
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
README_js.md
air.js
package-lock.json
package.json

README.md

air.js


The Barometric Function for determining air pressure & density by altitude, in Javascript.

Installation - NPM

npm install airjs

Installation - Browser-ready

<script src="http://wzrd.in/standalone/airjs@latest"></script>
<script>
airjs.pressure(...); //  etc.
</script>

Usage

var airjs = require('airjs');

// E.g. Air pressure (Pascals) @ 1km AMSL
airjs.pressure(1000); // ⇨ 89874.57050221058

// E.g. Air density (kg/m^3) @ 2km AMSL
airjs.density(2000);  // ⇨ 1.0064902544633867

Markdown generated from README_js.md by RunMD Logo