按行政区裁剪 按内蒙古边界裁剪 注意一定要加.tif Read More
posted @ 2026-06-02 10:28 目黑的小雪人 Views(3) Comments(0) Diggs(0)
随机生成1-20的32×32数组 import random # 生成32x32的数组,每个数在1-20之间(不含0) array = [[random.randint(1, 20) for _ in range(32)] for _ in range(32)] # 保存到txt文件,数字之间用空格 Read More
posted @ 2026-05-29 06:17 目黑的小雪人 Views(2) Comments(0) Diggs(0)
检查开头并移动不符合条件的文件 我有一堆雨滴谱txt文件,有的是以:速度 → :V1-V32,这个为开头的。 有些是把前面这个删除,直接是时间戳的结果的,我需要批量处理,找出来不是以速度为开头的,然后再处理以速度为开头的,删除他们 找出不是以速度为开头的文件并移动它们 import os impor Read More
posted @ 2026-05-20 21:08 目黑的小雪人 Views(5) 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(6) 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(4) 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(48) 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(19) Comments(0) Diggs(0)