2022年8月26日

geopandas 把 shp 文件入库到 postgis 数据库

摘要: lll = {'database': "test", 'user': 'postgres', 'password': 'postgis', 'host': '127.0.0.1', 'port': '5432'} engine = create_engine( f"postgresql+psycop 阅读全文

posted @ 2022-08-26 14:33 闹不机米 阅读(148) 评论(0) 推荐(0) 编辑

geopandas 生成 shp 文件

摘要: 生成 shp 文件 ss = [] for il in C.allsegs[1:5]: ss.append(geometry.MultiLineString([i.tolist() for i in il if len(i.tolist()) > 1])) cq = geopandas.GeoDat 阅读全文

posted @ 2022-08-26 14:31 闹不机米 阅读(549) 评论(0) 推荐(0) 编辑

cinrad 读取雷达 bz2 文件数据

摘要: 安装 pip install cinrad -i https:mirrors.aliyun.com/pypi/simple 读取文件 import cinrad filename = r"Z_RADA_C_BABJ_20220720060001_P_DOR_Z9518_BASE_20220821_0 阅读全文

posted @ 2022-08-26 14:27 闹不机米 阅读(641) 评论(0) 推荐(0) 编辑

xarray 生成 tiff 文件

摘要: 生成 tiff 文件 from eccodes import * import numpy as np import xarray as xr import rioxarray as rio t2 = xr.Dataset(data_vars={'REF': (['longitude', 'lati 阅读全文

posted @ 2022-08-26 14:15 闹不机米 阅读(316) 评论(0) 推荐(0) 编辑

导航