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))
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
def execute4(dewpoint, dpFromTenths): return celciusToKelvin(combineTemps(dewpoint, dpFromTenths))
def execute3(temperatureStation, tempFromTenthsStation): return celciusToKelvin( combineTemps(temperatureStation, tempFromTenthsStation))
def execute1(temperature, tempFromTenths): return celciusToKelvin(combineTemps(temperature, tempFromTenths))
def execute3(temperatureStation,tempFromTenthsStation): return celciusToKelvin(combineTemps(temperatureStation, tempFromTenthsStation))
def execute1(temperature,tempFromTenths): return celciusToKelvin(combineTemps(temperature,tempFromTenths))