上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页

2021年12月30日

python 如何读取GFS数据

摘要: 安装xarray包: conda install -c conda-forge xarray 安装解码库"eccodes": conda install -c conda-forge eccodes 安装cfgrib 库: conda install -c conda-forge cfgrib im 阅读全文

posted @ 2021-12-30 20:31 闹不机米 阅读(316) 评论(0) 推荐(0)

python 安装eccodes后报错 该怎么处理?

摘要: conda install eccodes -c conda-forge 成功安装eccodes 2.23.0 ,但是导入时报错No module named 'eccodes' 解决方式为继续安装python-eccodes conda install python-eccodes -c cond 阅读全文

posted @ 2021-12-30 20:29 闹不机米 阅读(831) 评论(0) 推荐(0)

2021年12月29日

basemap

摘要: m.drawmapboundary(color='red') # 绘制地图投影区域的边界,可选填充区域的内部 m.drawcoastlines() # 绘制海岸线 m.drawstates() # 划定美洲各州的边界。 m.drawrivers() # 画出主要河流。 m.drawlsmask() 阅读全文

posted @ 2021-12-29 10:26 闹不机米 阅读(129) 评论(0) 推荐(0)

2021年12月23日

xarray 绘制任意两点剖面图

摘要: metpy中的cross_section提供了非常便捷的绘制剖面图的方法,具体可见网: https://unidata.github.io/MetPy/latest/examples/cross_section.html#sphx-glr-examples-cross-section-py 如果只是 阅读全文

posted @ 2021-12-23 17:26 闹不机米 阅读(2785) 评论(1) 推荐(0)

2021年11月30日

pip 命令参数说明

摘要: 从本地目录文件安装(禁用联网检查PyPI) pip install --no-index --find-links=c:\xxx\xxx 或者.(相对当前目录) xxx.whl 或者 xxx.tar.gz 详细参考官方说明 https://packaging.python.org/tutorials 阅读全文

posted @ 2021-11-30 17:05 闹不机米 阅读(559) 评论(0) 推荐(0)

2021年11月29日

pyinstaller 打包成 exe

摘要: 通用参数 参数名描述说明 -h 显示帮助 无 -v 显示版本号 无 –distpath 生成文件放在哪里 默认:当前目录的dist文件夹内 –workpath 生成过程中的中间文件放在哪里 默认:当前目录的build文件夹内 -y 如果dist文件夹内已经存在生成文件,则不询问用户,直接覆盖 默认: 阅读全文

posted @ 2021-11-29 20:22 闹不机米 阅读(432) 评论(0) 推荐(0)

window 命令

摘要: 列出电脑上运行的 exe 程序 tasklist | findstr xxx.exe 阅读全文

posted @ 2021-11-29 11:51 闹不机米 阅读(27) 评论(0) 推荐(0)

2021年10月27日

线程,进程

摘要: 线程 from concurrent.futures.thread import ThreadPoolExecutor # 初始化线程池 设置最大线程数 executor = ThreadPoolExecutor(max_workers=5) for fn in range(10): # 任务数 # 阅读全文

posted @ 2021-10-27 23:30 闹不机米 阅读(56) 评论(0) 推荐(0)

2021年10月21日

denied: requested access to the resource is denied

摘要: 使用 docker push 镜像时,出现 denied: requested access to the resource is denied。原因和 Git push 代码一样,为了安全起见,在 Docker Hub 无法确定操作者的情况下,是无法完成 push 操作的。 需要使用 docker 阅读全文

posted @ 2021-10-21 10:00 闹不机米 阅读(292) 评论(0) 推荐(0)

python ftplib模块使用

摘要: Python中默认安装的ftplib模块定义了FTP类,可用来实现简单的ftp客户端,用于上传或下载文件。 ftp登陆连接 from ftplib import FTP #加载ftp模块 ftp=FTP() #设置变量 ftp.set_debuglevel(2) #打开调试级别2,显示详细信息 ft 阅读全文

posted @ 2021-10-21 09:55 闹不机米 阅读(280) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页

导航