![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
气象python
python处理气象数据的学习记录
钦天监摸鱼记事
这个作者很懒,什么都没留下…
展开
-
气象 python二维插值
一、函数scipy.interpolate.griddata(points, values, xi, method=‘linear’, fill_value=nan, rescale=False)官网:https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.griddata.html?highlight=griddata二、参数values一维数组,shape为(n,) ,是需要插值的变量数据如果需要插值的变量原创 2022-04-03 10:07:58 · 1773 阅读 · 0 评论 -
cmorph数据读取 python
首先将下载得到的文件解压python读取import numpy as npntime = 8nlon = 1440nlat = 480fnm = r'd:/CMORPH_V1.0_ADJ_0.25deg-3HLY_20190804'with open(fnm, 'rb') as f: prerate=np.fromfile(f,dtype=np.float32)prerate = np.reshape(prerate,(ntime,nlat,nlon))...原创 2022-03-17 20:55:07 · 1150 阅读 · 0 评论 -
python 安装包出现的问题
pip install pylab结果:ERROR: Could not find a version that satisfies the requirement pylab (from versions: none)ERROR: No matching distribution found for pylab解决方法:pip install pylab -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com...原创 2022-03-17 19:06:01 · 918 阅读 · 0 评论 -
Python气象图形的绘制——Day1
需要用到的库import xarray as xr #数据读取import numpy as np #用于计算import matplotlib.pyplot as plt #数据可视化import cartopy.crs as ccrs #地图投影from cartopy.mpl.ticker import LongitudeFormatter, LatitudeFormatternc数据的读取file_n原创 2021-03-19 22:45:44 · 1366 阅读 · 1 评论 -
Python气象图形的绘制——预
引入库安装库时报错:Solving environment: failed with initial frozen solve. Retrying with flexible solve.解决办法:conda install -c conda-forge 包来源:https://blog.csdn.net/hahadelaochao/article/details/106745221but 遇到netcdf4的时候问题又重现了解决办法:pip install 包但是问题没有解决解原创 2021-03-19 17:25:50 · 243 阅读 · 1 评论