Esempio n. 1
0
def _soviet_ground(range):
    if _soviet_groundx[0] <= range <= _soviet_groundx[-1]:
        return np.interp(range, _soviet_groundx, _soviet_groundy)
    else:
        raise ValueOutsideGraphError(range)
Esempio n. 2
0
def _soviet_thermal9(scale_range):
    logrange = np.log10(scale_range)
    if _sovietthermal9x[0] <= logrange <= _sovietthermal9x[-1]:
        return np.interp(logrange, _sovietthermal9x, _sovietthermal9y)
    else:
        raise ValueOutsideGraphError(scale_range)
Esempio n. 3
0
def _soviet_nomach_sh7(range):
    if _soviet_nomach_sh7x[0] <= range <= _soviet_nomach_sh7x[-1]:
        return np.interp(range, _soviet_nomach_sh7x, _soviet_nomach_sh7y)
    else:
        raise ValueOutsideGraphError(range)
Esempio n. 4
0
def _soviet_nomach_sh12(range):
    if 0 <= range <= _soviet_nomach_sh12x[-1]:
        return np.interp(range, _soviet_nomach_sh12x, _soviet_nomach_sh12y)
    else:
        raise ValueOutsideGraphError(range)
Esempio n. 5
0
def _soviet_mach_sh20(range):
    if 0 <= range <= _soviet_mach_sh20x[-1]:
        return np.interp(range, _soviet_mach_sh20x, _soviet_mach_sh20y)
    else:
        raise ValueOutsideGraphError(range)
Esempio n. 6
0
def _rsoviet_ground(overpressure):
    if _rsoviet_groundy[0] <= overpressure <= _rsoviet_groundy[-1]:
        return np.interp(overpressure, _rsoviet_groundy, _rsoviet_groundx)
    else:
        raise ValueOutsideGraphError(overpressure)
Esempio n. 7
0
def _rsoviet_nomach_sh7(overpressure):
    if _rsoviet_nomach_sh7y[0] <= overpressure <= _rsoviet_nomach_sh7y[-1]:
        return np.interp(overpressure, _rsoviet_nomach_sh7y,
                         _rsoviet_nomach_sh7x)
    else:
        raise ValueOutsideGraphError(overpressure)