选用蔡淼的论文:[1]蔡淼,欧建军,周毓荃,等.L波段探空判别云区方法的研究[J].大气科学,2014,38(02):213-222.
里面的阈值法:
#!/usr/bin/python3 # -*- coding: utf-8 -*- """ @Time : 2025/1/20 23:22 @Author : Suyue @Email : 1493117872@qq.com @File : cloud_area.py @Project : untitled4 """ import pandas as pddf = pd.read_csv('D:/探空数据计算/tankong-2020-50527_with_final_times_lat_lon_cleaned_data.csv') df = pd.DataFrame(df)# 根据条件筛选数据 mask = (((df['GPH'] >= 0) & (df['GPH'] < 1000) & (df['RHU'] == 91)) |((df['GPH'] >= 1000) & (df['GPH'] < 2000) & (df['RHU'] > 84) & (df['RHU'] <= 90)) |((df['GPH'] >= 2000) & (df['GPH'] < 7562) & (df['RHU'] > 78) & (df['RHU'] <= 84)) |((df['GPH'] >= 7562) & (df['GPH'] <= 10000) & (df['RHU'] >= 68) & (df['RHU'] <= 78)) |((df['GPH'] > 10) & (df['RHU'] == 68)) )# 保留满足条件的行 filtered_df = df[mask]# 将结果保存回CSV文件 filtered_df.to_csv('D:/探空数据计算/tankong-2020-50527_with_final_times_lat_lon_cleaned_data_filtered_data.csv', index=False)# 打印结果以确认(可选) # print(filtered_df)