Optical Flow

International Standard Atmosphere (ISA)

class mitos.isa.CasadiISA(deltaT=0)[source]

Casadi implementation of the ISA atmosphere (troposphere and tropopause only)

var deltaT

Temperature differential w.r.t. ISA conditions

type deltaT

float

__init__(deltaT=0)[source]
Parameters

deltaT (float, optional) – Temperature differential w.r.t. ISA conditions

Returns

None

Utilities

mitos.utils.get_bracketing_indexes(array, value)[source]

Returns consecutive indexes idx_low and idx_high such that array[idx_low] <= value < array[idx_high].

Parameters
  • array (array_like) – Array to search. Must be 1D and monotonically sorted in ascending order. This condition is NOT checked here

  • value (Union[float, np.datetime64, np.timedelta64]) – Value to bracket

Returns

Indexes that fulfill the condition array[idx_low] <= value < array[idx_high].

Return type

tuple

Input/output

Constants

mitos.constants.P0_MSL = 101325.0

float : P0_MSL = 101325.0

mitos.constants.R_a = 6378137.0

float : R_a = 6378.137e3

mitos.constants.R_b = 6356.752

float : R_b = 6356.752

mitos.constants.R_mean = 6356800.0

float : R_mean = 6356.8e3

mitos.constants.Rg = 287.05287

float : Rg = 287.05287

mitos.constants.T0_MSL = 288.15

float : T0_MSL = 288.15

mitos.constants.T_tropopause = 216.65

float : T_tropopause = 216.65

mitos.constants.a0_MSL = 340.294

float : a0_MSL = 340.294

mitos.constants.d2r = 0.017453292519943295

float : d2r = np.pi/180

mitos.constants.first_eccentricity = 0.08181919084262149

float : first_eccentricity = (flattening*(2 - flattening))**0.5

mitos.constants.flattening = 0.0033528106647474805

float : flattening = 1/298.257223563

mitos.constants.ft = 0.3048

float : ft = 0.3048

mitos.constants.g = 9.80665

float : g0 = g = 9.80665

mitos.constants.g0 = 9.80665

float : g0 = g = 9.80665

mitos.constants.h_tropopause = 11000.0

float : h_tropopause = 11e3

mitos.constants.hour = numpy.timedelta64(3600000000000,'ns')

float : hour = np.timedelta64(1, ‘h’).astype(‘timedelta64[ns]’)

mitos.constants.kappa = 1.4

float : kappa = 1.4

mitos.constants.kt = 0.5144444444444445

float : kt = nmi/3600

mitos.constants.lapse_rate_troposphere = -0.0065

float : lapse_rate_troposphere = -0.0065

mitos.constants.m2ft = 3.280839895013123

float : m2ft = ft**-1

mitos.constants.minute = numpy.timedelta64(60000000000,'ns')

float : minute = np.timedelta64(1, ‘m’).astype(‘timedelta64[ns]’)

mitos.constants.ms2kt = 1.9438444924406046

float : ms2kt = 1/kt

mitos.constants.nmi = 1852.0

float : nmi = 1852.0

mitos.constants.rho0_MSL = 1.225

float : rho0_MSL = 1.225