def get_caqi_pm10_24h(pm10_24h: float) -> float: """ Calculates PM10 (24h) CAQI Europe :param pm10_24h: PM10 (24h), µg/m3 :return: PM10 CAQI Europe """ cp = __round_down(pm10_24h) return __get_aqi_general_formula(cp, EU_PM10_24H, EU_CAQI)
def get_caqi_pm25_1h(pm25_1h: float) -> float: """ Calculates PM2.5 (1h) CAQI Europe :param pm25_1h: PM2.5 (1h), µg/m3 :return: PM2.5 CAQI Europe """ cp = __round_down(pm25_1h) return __get_aqi_general_formula(cp, EU_PM25_1H, EU_CAQI)
def get_caqi_o3_1h(o3_max_1h: float) -> float: """ Calculates O3 (max in 1h) CAQI Europe :param o3_max_1h: O3 (1h), ppm :return: O3 CAQI Europe """ cp = __round_down(o3_max_1h * 1000) return __get_aqi_general_formula(cp, EU_O3_1H, EU_CAQI)
def get_caqi_co_1h(co_8h: float) -> float: """ Calculates CO (8h) CAQI Europe :param co_8h: CO (8h), ppm :return: CO CAQI Europe """ cp = __round_down(co_8h, 1) return __get_aqi_general_formula(cp, EU_CO_8H, EU_CAQI)
def get_caqi_so2_1h(so2_max_1h: float) -> float: """ Calculates SO2 (max in 1h) CAQI Europe :param so2_max_1h: SO2 (1h), ppm :return: SO2 CAQI Europe """ cp = __round_down(so2_max_1h * 1000) return __get_aqi_general_formula(cp, EU_SO2_1H, EU_CAQI)