2023年8月11日

apt update 失败

摘要: 报错: E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then 阅读全文

posted @ 2023-08-11 13:19 闹不机米 阅读(193) 评论(0) 推荐(0) 编辑

2023年6月12日

通过tar命令将现有的系统打包成docker容器,用于构建镜像文件

摘要: 选择一个系统,在根目录下将已有系统打包成tar文件: tar -cvpf /tmp/system.tar --directory=/ --exclude=proc --exclude=sys --exclude=dev --exclude=run --exclude=boot . /proc、/sy 阅读全文

posted @ 2023-06-12 17:11 闹不机米 阅读(190) 评论(0) 推荐(0) 编辑

2023年3月10日

docker 默认目录修改或迁移

摘要: 停止docker服务 systemctl stop docker 移动源数据 在修改docker存储目录前需要创建一个新的目录,以/home/docker/data-root目录为例,需要将docker的源数据拷贝到此目录下,一般情况下源数据在目录/var/lib/docker内,可以使用以下命令进 阅读全文

posted @ 2023-03-10 16:14 闹不机米 阅读(328) 评论(0) 推荐(0) 编辑

2023年3月2日

ubuntu 删除容器内没用的包

摘要: 删除多余 apt 包 这些就是依赖的所有动态链接库,接着我们将这些包用 apt-mark 声明为“手工安装的包”,即可阻止 apt purge 的自动卸载。 然后,我们再自动卸载其余没有用到的包即可。完整shell脚本如下: find /usr/local -type f -executable - 阅读全文

posted @ 2023-03-02 17:06 闹不机米 阅读(95) 评论(0) 推荐(0) 编辑

2023年1月13日

cartopy 投影大全

摘要: https://www.cnblogs.com/youxiaogang/p/14247184.html 阅读全文

posted @ 2023-01-13 11:31 闹不机米 阅读(9) 评论(0) 推荐(0) 编辑

2023年1月9日

satpy 处理卫星 FY4A 数据

摘要: 读取数据并画图 import os import glob from datetime import datetime, timedelta from satpy.scene import Scene from pyresample import get_area_def import warnin 阅读全文

posted @ 2023-01-09 13:38 闹不机米 阅读(781) 评论(0) 推荐(0) 编辑

2023年1月4日

pillow 创建图片并添加一些自定义信息

摘要: from PIL import Image vm = Image.new('RGBA', (dshape[1], dshape[0])) vm = Image.fromarray(np.array(ssddff, dtype=np.uint8)) from PIL.PngImagePlugin im 阅读全文

posted @ 2023-01-04 10:02 闹不机米 阅读(92) 评论(0) 推荐(0) 编辑

2022年12月15日

GeoServer 发布PostGIS数据库中的栅格数据

摘要: 1.导入栅格数据 进入PostgreSQL\bin目录,利用raster2pgsql工具导入栅格数据,具体命令如下所示: <!-- 分块,切片存储到PostGIS数据库中 --> raster2pgsql -s 4326 -I -C -M E:/personalfile/cs1/alt.tif -F 阅读全文

posted @ 2022-12-15 13:14 闹不机米 阅读(1181) 评论(0) 推荐(0) 编辑

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:36 闹不机米 阅读(328) 评论(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 闹不机米 阅读(187) 评论(0) 推荐(0) 编辑

导航