ArcGIS 10文档有时候不准确

在Arcmap 10的Python Window里执行 MosaicToNewRaster_management时,按其文档给出的例子对应修改各个参数,发现总是提示Cannot set input into parameter coordinate_system_for_the_raster错误,即投影文件参数没有设对。

ArcGIS 10文档里的例子:
arcpy.MosaicToNewRaster_management(“land1.tif;land2.tif”, “landnew.tif”, “World_Mercator.prj”, “8_BIT_UNSIGNED”,  “40”, “1”, “LAST”,”FIRST”)

函数原型:
MosaicToNewRaster_management (input_rasters, output_location, raster_dataset_name_with_extension, {coordinate_system_for_the_raster}, {Pixel_type}, {cellsize}, Number_of_bands, {mosaic_method}, {mosaic_colormap_mode})

仔细对照其参数列表,发现参数列表里比例子多了一项,即在投影参数前有两项,一项是输出位置,一项是输出文件名,而不是列子里只有一项。修正后问题仍然存在。

不过现在的问题是找不到投影文件.prj,将之扩展为绝对路径即可以执行。

我猜ArcGIS文档里一些例子是以前版本的,在新版本里参数发现了变化,但例子没有及时更新过来。所以大家在使用时,还是不能尽相信例子,当发现问题的时候,对照函数原型会更靠谱。

在sandboxie中启动QQ的方法

新版qq无法在sandboxie中启动,各种版本如light,国际版等都不行。sandboxie的资源监视可以发现是qqprotect出的问题。手工先启动qqprotect,再点击qq,可以成功启动qq。

qqprotect.exe在 program files (86) > common files > qqprotect > bin下可以找到。

qq.exe 在program files (86) > tencent > qq >bin下。

机顶盒维修

话说个把月前,有线电视的机顶盒突然坏了,电源按钮按下去不通电。熊猫3237A型,只有某宝有卖,需要近400大洋。这个电视和机顶盒都是房东留下的老旧的,很不划算。所以打算自己拆开看看。

螺丝拧开,里面其实就一块集成板。拉了一个台灯的电源(12V输出),插到机顶盒,启动不起来。排除了外电源(Adapter)问题。用万用表检测,发现电源接口通,但到开关处不通,所以判断是否开关坏了。将开关上的线剪断,将线直接连接起来。但居然还是启动不起来。主板上的东西轻易都没法子换。所以事情就搁下来了。

房子临近租期结束,所以找了个专门师傅上门。师傅用一个新电源适配器测试了一下,居然是通的。我郁闷了。原来问题是出在我前面测试时用的是12V输出,而机顶盒需要5V输入,不匹配启动不起来。原5V Adapter内部鼓了两个包,将5V降压成3V,所以也带不起来。更换成一个新的就好了。师傅将剪断的电线重新焊上,一刻钟搞定。上门费20,维修费30,新Adapter 80。

粗心阿!

IMG_3515

烧坏了的电源适配器

王玉丹等,2016,遥感技术与应用

王玉丹,南卓铜,陈浩,吴小波. 基于K最近邻模型的青藏高原CMORPH日降水数据的订正研究. 遥感技术与应用. 2016, 31(3): 607-616.

摘要:

青藏高原的降水数据主要由遥感产品和多源观测数据融合产生,由于青藏高原的观测站点分布稀疏不均,遥感数据误差较大,因此常用的CMORPH(Climate Prediction Center Morphing Technique)等降水数据集精度有限.通过K 最近邻(K-Nearest Neighbor,简称KNN)模型,可以建立环境(海拔、坡度、坡向、植被)、气象因子(气温、湿度、风速)和日降水量的关系,从而订正青藏高原的CMORPH 日降水数据集,提高数据精度.对CMORPH 日降水数据的误差分析表明,采用KNN 模型订正后的CMORPH 降水数据优于原始数据和采用PDF(Probability Density Function Matching Method)法订正的CMORPH 数据,且空间分布较好地符合青藏高原的降水分布特征.

下载 (~11MB, pdf) Link

一篇冻土建模的中文论文

马启民,黄滢冰,南卓铜*,吴小波. 青藏高原典型多年冻土区的一维水热过程模拟研究. 冰川冻土. 2016, 38(2): 341-350.

摘要:

了解多年冻土内部的水热过程对寒区工程规划和建设的辅助决策具有重要意义。冻土的水分迁移与温度变化密切相关,然而传统的经验模型局限性大,对水热物理过程考虑不足;陆面过程模型所需的驱动数据多且很难准确模拟深层土温,尽管数值模型在工程上应用的比较多,但很少应用到冻土的演化过程中。基于非饱和土壤渗流和热传导理论,实现了冻土水分场与温度场的水热耦合数值模拟。以唐古拉综合观测场为例,将数值模拟结果与观测数据进行对比,验证水热耦合数值模拟的有效性。结果表明:模型对土壤温度模拟效果较好,15 m以上R2在0.88以上,RMSE在1℃以内;水分模拟尚可,但仍存在一定误差,R2在0.7以上,RMSE在7.65%以内。模拟的活动层厚度约3.6 m,年平均地温所在的深度约为15 m,与实测值基本一致。该水热耦合模型可用于研究多年冻土区土壤水热变化规律.

下载 (pdf, ~10.8 MB): mqm.et al. bcdt.2016

A Plos One Paper

Zhang L, Nan Z, Xu Y, Li S. Hydrological Impacts of Land Use Change and Climate Variability in the Headwater Region of the Heihe River Basin, Northwest China. PloS One. 2016, 11(6): e158394. DOI:10.1371/journal.pone.0158394.

ABSTRACT:

Land use change and climate variability are two key factors impacting watershed hydrology, which is strongly related to the availability of water resources and the sustainability of local ecosystems. This study assessed separate and combined hydrological impacts of land use change and climate variability in the headwater region of a typical arid inland river basin, known as the Heihe River Basin, northwest China, in the recent past (1995–2014) and near future (2015–2024), by combining two land use models (i.e., Markov chain model and Dyna-CLUE) with a hydrological model (i.e., SWAT). The potential impacts in the near future were explored using projected land use patterns and hypothetical climate scenarios established on the basis of analyzing long-term climatic observations. Land use changes in the recent past are dominated by the expansion of grassland and a decrease in farmland; meanwhile the climate develops with a wetting and warming trend. Land use changes in this period induce slight reductions in surface runoff, groundwater discharge and streamflow whereas climate changes produce pronounced increases in them. The joint hydrological impacts are similar to those solely induced by climate changes. Spatially, both the effects of land use change and climate variability vary with the sub-basin. The influences of land use changes are more identifiable in some sub-basins, compared with the basin-wide impacts. In the near future, climate changes tend to affect the hydrological regimes much more prominently than land use changes, leading to significant increases in all hydrological components. Nevertheless, the role of land use change should not be overlooked, especially if the climate becomes drier in the future, as in this case it may magnify the hydrological responses.

http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0158394

个人WordPress Blog上的插件 as of Jun 17, 2016

Akismet:反垃圾插件,最好,没有更好。

Annual Archive:按年、月整理,见Archvie页面的效果。

autoQR:自动生成二维码,方便在手机上看。我做了修改。

Widget Logic:控制哪些Widget在哪个页面(如首页)显示

WordPress Importer:将别的博客数据导入

WP Broken Link Status Checker:检查坏链接(我上面现在坏链接太多了)

WP Statistics:统计

WPFavicon:在浏览器里显示自定义的页面图标

Yet Another Related Posts Plugin:相关帖子显示