Exemplo n.º 1
0
def execute3(T,DpT,wSpd):
    TC = T - 273.15 #convert from K to C
    DpTC = DpT - 273.15 #convert to from K to C
    wSpd_kmh = wSpd * 1.85200 #convert from m/s to km/h
    Hi = HeatIndex.calculate(TC,DpTC) #Outputs Celsius
    Wc = WindChill.calculate(TC,wSpd_kmh) #Outputs Celsius
    HiK = numpy.where(Hi != -9999.0, celciusToKelvin(Hi),-9999.0)
    WcK = numpy.where(Wc != -9999.0, celciusToKelvin(Wc),-9999.0)
    return numpy.where(HiK != -9999.0, HiK, numpy.where(WcK != -9999.0, WcK, -9999.0))
Exemplo n.º 2
0
def execute3(T, DpT, wSpd):
    TC = T - 273.15  #convert from K to C
    DpTC = DpT - 273.15  #convert to from K to C
    wSpd_kmh = wSpd * 3.6  #convert from m/s to km/h
    Hi = HeatIndex.calculate(TC, DpTC)  #Outputs Celsius
    Wc = WindChill.calculate(TC, wSpd_kmh)  #Outputs Celsius
    maskHi = (Hi != -9999.0)
    Hi[maskHi] = celciusToKelvin(Hi)[maskHi]
    maskWc = (Wc != -9999.0)
    Wc[maskWc] = celciusToKelvin(Wc)[maskWc]
    maskHi = (Hi == -9999.0)
    Hi[maskHi] = Wc[maskHi]
    return Hi
Exemplo n.º 3
0
def execute4(dewpoint, dpFromTenths):
    return celciusToKelvin(combineTemps(dewpoint, dpFromTenths))
Exemplo n.º 4
0
def execute3(temperatureStation, tempFromTenthsStation):
    return celciusToKelvin(
        combineTemps(temperatureStation, tempFromTenthsStation))
Exemplo n.º 5
0
def execute1(temperature, tempFromTenths):
    return celciusToKelvin(combineTemps(temperature, tempFromTenths))
Exemplo n.º 6
0
def execute3(temperatureStation,tempFromTenthsStation):
    return celciusToKelvin(combineTemps(temperatureStation, tempFromTenthsStation))
Exemplo n.º 7
0
def execute1(temperature,tempFromTenths):
    return celciusToKelvin(combineTemps(temperature,tempFromTenths))