|
|
新盛娱乐游戏APP下载链接【xs10159.com】新盛娱乐游戏下载教程 复制链接打开浏览器 粘贴点击进入 在线开户 注册账号密码登录游戏 充值提现上下分办理业务 咨询在线客服【飞机 @xg88011】资金安全可靠 大额无优 y: arcpy.stats.HotSpotAnalysis( input_shp, "height", out_hotspot_path, "FIXED_DISTANCE_BAND", "EUCLIDEAN_DISTANCE", "NONE", None, None, "FEATURE_CLASS" ) except AttributeError: try: arcpy.stats.HotSpotAnalysis_GetisOrdGi( input_shp, "height", out_hotspot_path, "FIXED_DISTANCE_BAND", "EUCLIDEAN_DISTANCE", "NONE", None, None, "FEATURE_CLASS" ) except AttributeError: arcpy.HotSpots_stats(input_shp, "height", out_hotspot_path) print(f" √ 任务2完成: 热点分析") # --- 任务3: 平均中心 --- out_center_path = os.path.join(output_base_dir, sub_folders["mean_center"], f"{year}郑州.shp") arcpy.stats.MeanCenter(input_shp, out_center_path, "height") arcpy.management.AddField(out_center_path, "年份", "TEXT", field_length=10) with arcpy.da.UpdateCursor(out_center_path, ["年份"]) as cursor: for row in cursor: row[0] = str(year) cursor.updateRow(row) print(f" √ 任务3完成: 平均中心 (已添加年份字段)") # --- 任务4: 方向分布 --- out_ellipse_path = os.path.join(output_base_dir, sub_folders["ellipse"], f"{year}郑州.shp") arcpy.stats.DirectionalDistribution(input_shp, out_ellipse_path, "1_STANDARD_DEVIATION", "height")
|
|