检查开头并移动不符合条件的文件 我有一堆雨滴谱txt文件,有的是以:速度 → :V1-V32,这个为开头的。 有些是把前面这个删除,直接是时间戳的结果的,我需要批量处理,找出来不是以速度为开头的,然后再处理以速度为开头的,删除他们 找出不是以速度为开头的文件并移动它们 import os impor Read More
posted @ 2026-05-20 21:08 目黑的小雪人 Views(3) Comments(0) Diggs(0)
采用OSGeo4W 把两个栅格数据拖进去 然后点击run Read More
posted @ 2026-05-17 16:57 目黑的小雪人 Views(3) Comments(0) Diggs(0)
行是速度:measured_velocity = np.array([ 0.05, 0.15, 0.25, 0.35, 0.45, 0.55, 0.65, 0.75, 0.85, 0.95, 1.1, 1.3, 1.5, 1.7, 1.9, 2.2, 2.6, 3, 3.4, 3.8, 4.4, 5 Read More
posted @ 2026-05-13 20:39 目黑的小雪人 Views(5) Comments(0) Diggs(0)
单个过程 import numpy as np import matplotlib.pyplot as plt import matplotlib from datetime import datetime import os # 设置中文字体 matplotlib.rcParams['font.s Read More
posted @ 2026-05-07 21:15 目黑的小雪人 Views(5) Comments(0) Diggs(0)
我的雨滴谱要做个相态分类,在分类之前需要数据清洗。 一、数据清洗 参考的是jia的论文: Jia X , Liu Y , Ding D ,et al.Combining disdrometer, microscopic photography, and cloud radar to study di Read More
posted @ 2026-04-30 09:21 目黑的小雪人 Views(3) Comments(0) Diggs(0)
需要判别相态的月份: 季节 月份 策略 原因 夏季 6、7、8 直接雨 气温高,不可能有雪 冬季 12、1、2 直接雪 气温低,不可能有雨 春季 3、4、5 完整流程 雨雪混合,需要判断 秋季 9、10、11 完整流程 雨雪混合,需要判断 文件名字是:50425-20200106091000-202 Read More
posted @ 2026-04-27 10:20 目黑的小雪人 Views(6) Comments(0) Diggs(0)
excel是这样的 多个这样的合并 import pandas as pd import os import glob def merge_excel_files_with_source(input_folder, output_file): """ 批量合并Excel文件,并添加来源文件列 Par Read More
posted @ 2025-11-09 16:14 目黑的小雪人 Views(47) Comments(0) Diggs(0)
我有个arcgis里面有一堆图 在输入代码的框里面输入 import arcpy import os mxd = arcpy.mapping.MapDocument("CURRENT") layers = arcpy.mapping.ListLayers(mxd) print "=" * 60 pr Read More
posted @ 2025-10-22 11:51 目黑的小雪人 Views(18) Comments(0) Diggs(0)
有个excel叫典型草原降水强度,还有个excel叫典型草原数浓度,这两个excel里面time和data_name列,time列里面的数据格式是YYYY-M-D空格H:S,data_name列里面是XXXX-时间戳,53192-20240510101700-20240510105559-0_N_R Read More
posted @ 2025-10-03 15:36 目黑的小雪人 Views(24) Comments(0) Diggs(0)
我有一堆雨滴谱txt数据,第一行是时间就是2024-05-10 10:21:00这样的格式,第二行是值,第三行是空格,然后第四行又是2024-05-10 10:21:00,第五行是值,第六行是空格,这样循环往复。给我写一个批量提取这些值的python代码,提取出来的值写入CSV。 import os Read More
posted @ 2025-09-30 15:39 目黑的小雪人 Views(22) Comments(0) Diggs(0)