上一页 1 2 3 4 5 6 ··· 12 下一页

2022年12月15日

raster2pgsql 执行命令

摘要: raster2pgsql -s 4326 -I -C -M /home/radar_202210251000.tif public.radar_data_xx | psql -h 120.46.210.160 -p 8431 -U nb_db -d nb_db -W回车后输入数据库密码 -h ip地 阅读全文

posted @ 2022-12-15 11:35 闹不机米 阅读(561) 评论(0) 推荐(0)

rt_raster_to_gdal: Could not load the output GDAL driver

摘要: 问题记录:postgis 安装后不能执行以下语句,查询入库的 tif 文件 SELECT ST_AsGDALRaster(rast, 'GTiff') As rastjpg FROM radar_data_xx WHERE rid=1; 解决办法: 1. 确认是否安装 GDAL ,否则安装GDAL 阅读全文

posted @ 2022-12-15 11:27 闹不机米 阅读(349) 评论(0) 推荐(0)

2022年12月14日

ubuntu 下如何设置环境变量

摘要: 一、设置环境变量的三种方法 1.1 临时设置 export PATH=/home/yan/share/usr/local/arm/3.4.1/bin:$PATH 1.2 当前用户的全局设置 打开~/.bashrc,添加行: export PATH=/home/yan/share/usr/local/ 阅读全文

posted @ 2022-12-14 14:03 闹不机米 阅读(2171) 评论(0) 推荐(0)

GDAL 安装

摘要: 命令总和 add-apt-repository ppa:ubuntugis/ppa apt-get update apt-get install gdal-bin apt-get install libgdal-dev export CPLUS_INCLUDE_PATH=/usr/include/g 阅读全文

posted @ 2022-12-14 10:12 闹不机米 阅读(1301) 评论(0) 推荐(0)

2022年11月18日

PostgreSQL 数据类型

摘要: 数据类型 阅读全文

posted @ 2022-11-18 10:17 闹不机米 阅读(36) 评论(0) 推荐(0)

2022年11月16日

python 基础操作 plus

摘要: 将python列表中的多个列表转化为一个列表:列表的扁平化处理总结 方法一: 使用 itertools # 速度最快 import itertools a = [[1, 2, 3, 4], [4, 4, 5, 6], [7], [7, 8, 9]] out = list(itertools.chai 阅读全文

posted @ 2022-11-16 15:18 闹不机米 阅读(55) 评论(0) 推荐(0)

2022年10月26日

OrdinaryKriging 克里金插值

摘要: x,y,d = 一维数组(散点数据) x0 = np.linspace(x.min, x.max, 150) y0 = np.linspace(y.min, y.max, 100) x1, y1 = np.meshgrid(x0, y0) for i in ['linear', 'power', ' 阅读全文

posted @ 2022-10-26 17:58 闹不机米 阅读(526) 评论(0) 推荐(0)

griddata 插值

摘要: x,y,d = 一维数组(散点数据) # 适用于散点数据插值为格点数据 x1, y1 = np.meshgrid(x, y) for i in ['linear', 'nearest', 'cubic']: DATA = griddata((x, y), d, (x1, y1), method=i) 阅读全文

posted @ 2022-10-26 17:37 闹不机米 阅读(83) 评论(0) 推荐(0)

Rbf 插值

摘要: i = ['multiquadric', 'inverse', 'gaussian', 'linear', 'cubic', 'quintic','thin_plate'] # 插值方法有这个几个 interp = Rbf(x, y, d, function=i) DATA = interp(x1, 阅读全文

posted @ 2022-10-26 17:23 闹不机米 阅读(190) 评论(0) 推荐(0)

2022年10月24日

cmap 自定义颜色卡

摘要: # 渐变色 cmap = LinearSegmentedColormap.from_list('white_to_red', ['#00FF00', '#0000FF', '#FFFF00', '#FF0000']) # 间隔色块 cmap = mpl.colors.ListedColormap([ 阅读全文

posted @ 2022-10-24 13:56 闹不机米 阅读(519) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 ··· 12 下一页

导航