/**
 * Given a dictionary 'data' containing measurements for different parameters,
 * and a list of 'searchKeys', return a dictionary containing only the data
 * for the specified keys.
 *
 * @param data A dictionary containing measurements for different parameters.
 * @param searchKeys A list of search keys.
 * @return A dictionary containing only the data for the specified search keys.
 */
fun extractData(data: Map<String, Any>, searchKeys: List<String>): Map<String, Any> {

    val result = mutableMapOf<String, Any>()
    for (key in searchKeys) {
        if (data.containsKey(key)) {
            result[key] = data[key]!!
        }
    }
    return result
}
/**
 * Given a dictionary 'data' containing measurements for different parameters,
 * and a list of 'searchKeys', return a dictionary containing only the data
 * for the specified keys.
 *
 * @param data A dictionary containing measurements for different parameters.
 * @param searchKeys A list of search keys.
 * @return A dictionary containing only the data for the specified search keys.
 */
fun extractData(data: Map<String, Any>, searchKeys: List<String>): Map<String, Any> {
/**
 * Given a dictionary 'data' containing measurements for different parameters,
 * and a list of 'searchKeys', return a dictionary containing only the data
 * for the specified keys.
 *
 * @param data A dictionary containing measurements for different parameters.
 * @param searchKeys A list of search keys.
 * @return A dictionary containing only the data for the specified search keys.
 */
fun extractData(data: Map<String, Any>, searchKeys: List<String>): Map<String, Any> {

    val result = mutableMapOf<String, Any>()
    for (key in searchKeys) {
        if (data.containsKey(key)) {
            result[key] = data[key]!!
        }
    }
    return result
}