src/main/kotlin/com/flightfeather/uav/domain/entity/ExpandFun.kt
@@ -143,6 +143,26 @@ } } fun GridDataDetail.getByFactorType(type: FactorType?): Float? { return when (type) { NO2 -> no2 CO -> co H2S -> h2s SO2 -> so2 O3 -> o3 PM25 -> pm25 PM10 -> pm10 TEMPERATURE -> temperature HUMIDITY -> humidity VOC -> voc NOI -> noi WIND_SPEED -> windSpeed WIND_DIRECTION -> windDirection NO -> no else -> null } } fun List<GridDataDetail>.avg(): GridDataDetail { //风向采用单位矢量法求取均值 var u = .0//东西方位分量总和