- 博客(9)
- 资源 (2)
- 收藏
- 关注
原创 arcpy栅格归一化
import arcpyfrom arcpy import envfrom arcpy.sa import *arcpy.CheckOutExtension("Spatial") env.workspace = "H:\\Nth_MasterPaper\\nth_yfx\\nth" rasterList = arcpy.ListRasters("*") output_path = "H:\\Nth_MasterPaper\\nth_yfx\\gyhresult" f.
2022-03-13 00:47:20 554
原创 arcpy栅格批量裁剪
# Import system modulesimport arcpyfrom arcpy import envfrom arcpy.sa import * # Set environment settingsenv.workspace = "D:/img"rasterList = arcpy.ListRasters("*","tif") #输出路径output_path = "D:/imgMask/"# mask shpinMaskData = "D:/range.shp" .
2022-03-13 00:34:00 528
转载 ‘gbk‘ codec can‘t decode byte 0xbf in position 2: illegal multibyte sequence
转载'gbk' codec can't decode byte 0xbf in position 2: illegal multibyte sequence-白红宇的个人博客python 读取文件报错UnicodeDecodeError Traceback (most recent call last)<ipython-input-6-0e9485397930> in <module>() 6 path = "data.txt" 7 with open(path,'r'..
2022-01-16 21:29:57 1025
转载 经纬度转换为十进制
转载经纬度度分秒与十进制之间的转换_锐剑_新浪博客设117.59709是某个经度的十进制表示,则起对应的经度用度分秒表示的方法为0.59709°==0.59709*60=35.8254′,0.8254′=0.8254*60=49.52″因此换算后应该是117°35′49.52″反之117+35/60+49.52/3600...
2022-01-15 12:07:05 5590
原创 基于Arcpy 进行水文分析并提取出流域
import arcpyarcpy.env.overwriteOutput = Truefrom arcpy import envfrom arcpy.sa import *# Set workspacearcpy.env.workspace = "C:/test.gdb"# Input DEM ratser fileDEM = "AsterDEM"# Check SRSsr = arcpy.Describe(DEM).spatialReferenceprint "Spatial.
2022-01-11 20:17:07 673
原创 Check failed: preds.Size() == info.labels_.Size() (2697 vs. 899); raise XGBoostError(py_str(_LIB.XGB
解决方法参数设置里如果是二分类'num_class':2,非二分类视具体情况而定
2022-01-02 05:04:36 664
原创 params = self._configure_metrics(params.copy())AttributeError: ‘dict_items‘ object has no attribut
xgboost构造参数报错解决方法;#在代码中找到plstplst = params.items()#修改为list()即可plst = list(params.items())
2022-01-02 04:42:45 825
原创 XGBoost 参数优化bug
1.fscore报错feat_imp = pd.Series(alg.booster().get_fscore()).sort_values(ascending=False)TypeError: 'NoneType' object is not callable解决方法:feat_imp = pd.Series(alg.get_booster().get_fscore()).sort_values(ascending=False)
2022-01-02 00:50:29 353
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人