Skip to content

Instantly share code, notes, and snippets.

View buzzerrookie's full-sized avatar

Tao Sun buzzerrookie

View GitHub Profile
@buzzerrookie
buzzerrookie / isa.py
Created January 28, 2016 07:07
Python program to compute International Standard Atmosphere
import sys
import math
g = 9.80665
R = 287.00
def cal(p0, t0, a, h0, h1):
if a != 0:
t1 = t0 + a * (h1 - h0)
p1 = p0 * (t1 / t0) ** (-g / a / R)
else: