自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 ImportError: cannot import name ‘AuthorityMatchInfo‘ from ‘pyproj._crs‘ (D:\ProgramData\Anaconda\lib

【代码】ImportError: cannot import name 'AuthorityMatchInfo' from 'pyproj._crs' (D:\ProgramData\Anaconda\lib。

2022-08-29 15:57:07 521 1

原创 python 读取栅格数据时的CRS是None

使用python 读取tiff后,发现其中的'crs': None, 并且python生成的tiff导入arcgis中有:“Unknown Spatial Reference: the following data sources you added are missing spatial reference information.this data can be draw in arcmap but cannot be projected”,提醒。之前遇到了这样的问题,稀里糊涂的解决后,今天又出现了

2021-12-27 14:33:38 473

原创 from ._nnls import nnls ImportError: DLL load failed: 找不到指定的模块

今天通过Pycharm 使用Python,不知道怎么操作,就先出现了 ”from ._nnls import nnls ImportError: DLL load failed: 找不到指定的模块“ 和 ”AttributeError: module ‘numpy‘ has no attribute ‘ndarray‘“这样的错误,经过一番的谷歌和百度,使用最多的方案是:如链接:from ._nnls import nnls ImportError: DLL load failed: 找不到指定的模..

2021-12-07 16:03:14 1405 2

原创 GEE 与 Python

首先在此感谢https://www.zhihu.com/people/li-shi-wei-36无形的风 在知乎上的分享.1.在本地配置GEE Python API【1】首先要保证网络能够访问Google.【2】然后,配置号本地的python环境,方式有很多,python,或者Anaconda等方式都能够实现本地的python.推荐使用Anaconda (自行搜索链接和教程)【3】此时打开命令行窗口 (Win+R输入cmd 或者PowerShell) 接下来的操...

2021-04-25 17:11:58 1383 1

原创 python 快速替换Numpy 中的Nan(空值)和inf (无限值)

python 快速替换Numpy 中的Nan(空值)和inf (无限值)在做数据处理的时候由于要保证数据的个数不变,需要把数据中的空值和无穷值替换为指定的值(此处为255),考虑到数据量比较大(50000000条数据),效率也是一个考虑因素。下面主要给出了替换数据的核心代码。# +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+pri

2021-03-18 20:19:26 8584

原创 Python使用Xgboost算法:ValueError: feature_names mismatch

在使用python中的Xgboost时,调用训练好的模型的时候,出现“ValueError: feature_names mismatch”这样的错误。首先,尝试了更新xgboost库,但是仍然会出现同样的错误;后来搜索到了以下两个链接: https://stackoverflow.com/questions/42338972/valueerror-feature-names-mismatch-in-xgboost-in-the-predict-function ...

2021-01-21 21:08:28 1055

原创 python 画散点密度图,设置图例,标题等细节

最初接触python画图的时候,这个散点密度图也是经历了一波三折才做出来。直接给一个画图的代码,方便又需要的同学做个参考def scatter_out_1(x, y, title_name, savename): ## x,y为两个需要做对比分析的两个量。 # ==========计算评价指标========== BIAS = mean(x - y) MSE = mean_squared_error(x, y) RMSE = np.power(MSE, 0.5) .

2020-09-01 19:49:39 5821 13

原创 Linux下的python修改画图的字体

写在前面:最近在Linux上使用python,需要画图,但是默认的字体不是‘Times New Roman’,自己的代码设置的字体为‘Times New Roman’,因此出图的时候会报出:findfont: Font family ['Times New Roman'] not found. Falling back to DejaVu Sans。为了一劳永逸,决定将字体改为‘Times New Roman’。一、字体准备:Linux上的python没有‘Times New Roman’的库,需要先安

2020-08-29 20:33:37 2543

原创 Download the MODIS data

Write in front:Acturely nothing to say. heiheiplan 1:website:https://ladsweb.modaps.eosdis.nasa.gov/search/NOTE: You must registered account befor you do the next steps.step 1:Chose the se...

2019-03-26 21:04:13 225

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除