Yearly Archives: 2008

眼睛疼

看了一下午的文献,眼睛酸疼。
看文献找思路
过去跟老梁谈,一下子就问了几个问题,都是我在看的时候没想到的
不佩服不行

今天讲了一堂GIS课

下午4点-5点半给这边的Under讲了一堂ArcGIS的基础课,Overview了一下,并结合一个实例给演示了一下。英语还是比较糟糕,不过结束的时候,老梁显的还是挺高兴,说挺好挺好,以后多锻炼会更好。怕后半句才是实话吧。好在都还是鼓励的话。不过我倒知足了,至少没有出现冷场的情况。看下面的学生听的也还是蛮认真,好玩的是有一个学生上课时当我看他,就使劲地点头,难道我有讲的这么好?

为什么大家关注姜岩自杀事件

昨晚上QQ上一个朋友突然问,按说每年自杀上百万人,成功也有20来万,为什么单姜岩这事引起大家这么大的关注与愤慨?

仔细想了下,可能有这么几个原因

很多女性都有类似的被男人伤害的经历,所以她们感同身受,所以同情

男人们欣赏姜对爱情婚姻的执着专一,在这个物欲横流道德沦丧一切向金钱看的年代,更显得尤为可贵

其实从大家的反应看,对自杀行为大家还是理性看待的,大家欣赏的是执着和显示出来的才情,愤慨的是王家人的薄情

刚才看到北京有网友自发组织到王家抗议他们的行为

Advanced Areal Weighted Interpolation by ArcView 9.2 – draft version

Part III Advanced areal weighted interpolation

Zhuotong Nan (南卓铜) ([email protected])

Motivation and objective

ArcView 9.2 comes with some basic interpolation approaches, for example, inverse distance weighted, Kringing, etc. In some cases, we want interpolate based on areal weighted. For example, Radar measurement can produce rainfall data over a study area. In order to use those Radar rainfall in hydrological model, e.g., VIC model, with a 1/8 degree spatial resolution, we need to do interpolation from a higher resolution, e.g., 4km by 4km. As shown in Figure 1, each grey cell has a measured value from Radar. We would like to generate an appropriate value for a VIC cell which might cover several Radar cells. In this part, we will illustrate an areal weighted approach.

clip_image002[8] clip_image004[8]

Figure 1 Radar rainfall cells and 1/8 deg VIC cells

1. Create VIC grid polygons

Install Fishnet script with ArcView 9.2

ArcView 9.2 comes with a fishnet function (Data Management Tools → Feature Class → Create Fishnet) which is capable of generating a regular grid lines. However due to the limitation of ArcView license, it’s hard to implement conversion from polyline to polygon which is necessary to do areal weighted interpolation to be introduced in this section. Therefore, we will employ a free yet powerful script from ArcScripts website.

  • Get this free script from http://arcscripts.esri.com/details.asp?dbid=12807. Unzip it to any location. We will see fishnet.dll in this location.
  • Start ArcMap with a new document.
  • Open Customize… dialog (Tools → Customize…), in Commands tab click Select from files… button to load fishnet.dll. You will see,

clip_image006[6]

Figure 2 Customization dialog

Drag Create Fishnet to any place on toolbar. You will see clip_image008[14] on toolbar. Close Customize dialog.

Note, to uninstall the script, you can open Customize dialog again, and drag fishnet icon clip_image008[15] on toolbar to any place except toolbar.

Create 1/8 degree VIC grid polygons

VIC is a macroscale hydrologic model that solves full water and energy balances. It runs on basis of VIC grid. See http://ldas.gsfc.nasa.gov/LDAS8th/LDASspecs/LDASspecs.shtml for details of grid extent. We will generate VIC grid polygons using Fishnet utility download from ArcScripts in a scale of 1/8 degree.

  • Open Create Fishnet utility (clip_image008[16]).
  • Configure parameters as following figure.

clip_image010[6]

Figure 3 Parameters for creating 1/8 degree VIC grid

  • Wait its completion. This might take a couple of minutes. A polygon shapefile “vicgrd8.shp” in geographic coordinate system (i.e., longitude and latitude, specified by GCS_North_American_1927 parameter) will be generated upon its completion.
Reproject VIC grid polygons to Albers equal-area projection system
  • Run Feature project utility under Data Management Tools → Projections and Transformations → Feature → Project in ArcToolbox. Configure parameters as following,

clip_image012[6]

Figure 4 Reproject to Albers Equal Area projection system

The produced vicgrd8_alb.shp now is in Albers Equal Area projection system. Note here we specified a transformation method to convert NAD_1927 to NAD_1983. Remember vicgrd8.shp is in NAD_1927 system and now vicgrd8_alb.shp is in NAD_1983 system.

  • Close ArcMap without saving the current document.

2. Generate polygons for XMRG radar data file

xster=hrapx*4762.5 – 401*4762.5
yster=hrapy*4762.5-1601*4762.5

Copy 0703200407z.asc to 0703200407z_ster.asc. Then open 0703200407z_ster.asc using any text editor, change its header to,

ncols 335
nrows 159
xllcorner -161925
yllcorner -6372225
cellsize 4762.5

Save 0703200407z_ster.asc.

  • Convert 0703200407z_ster.asc to binary Grid file. In Command Line Window, run

ASCIIToRaster c:workspacelab2703200407z_ster.asc c:workspacelab2g0703200407z FLOAT

  • Define Polar Stereographic Coordinate System for g0703200407z grid file.

In ArcCatalog, right click g0703200407z to open its Properties window. Navigate to Spatial Reference section, click Edit… to define its spatial reference. Choose Define the coordinate system interactively. Select Stereographic (Polar view) and configure it as shown below.

clip_image014[4] clip_image016[4]

Figure 5 Parameters for Polar Ster projection system

  • Convert raster to polygon

The conversion from raster to polygon only support grid file in integer. To do this, run following commands in Command Line Window.

Times_sa c:workspacelab2g0703200407z 100 c:workspacelab2g07032004_100

Int_sa c:workspacelab2g07032004_100 c:workspacelab2g07032004int

At this point, the produced g07032004int is already an integer grid file.

RasterToPolygon c:workspacelab2g07032004int c:workspacelab2g0703200407_poly NO_SIMPLIFY VALUE

A field “GRIDCODE” in the generated polygon (g0703200407_poly) is corresponding to cell values in g07032004int, which is 100 times real rainfall value.

  • Project XMRG polygons to Albers projection system

Using Data Management Tools → Projections and Transformations → Feature → Project in ArcToolbox to project g0703200407_poly in Polar Stereographic coordinate system to g0703200407_alb in Albers Equal Area Coordinate System. This target coordinate system can be imported from vicgrd8_alb.shp.

3. Calculate area contribution to each VIC cell

Calculate area for each VIC cell

Using CalculateAreas command to calculate area for each VIC cell in Command Line Window.

CalculateAreas c:workspacelab2vicgrd8_alb.shp c:workspacelab2vicgrd8_alb_area.shp

The field “F_AREA” in vicgrd8_alb_area.shp indicates area in square meter.

Overlay

Intersect utility is used to calculate areal contribution from XMRG polygons to each VIC cell.

  • First we will clip the whole VIC grid shapefile with XMRG polygons extent. In Command Line Window,

Workspace c:workspacelab2
Clip_analysis vicgrd8_alb_area g0703200407_alb c:workspacelab2vicgrd8_clp.shp

  • In Arctoolbox, run Analysis Tools → Overlay → Intersect with input parameters specified as below.

clip_image018[4]

Figure 6 Intersect input parameters

  • Start ArcMap with a new document. Add intersect.shp. Save map document into c:workspacelab2partIII.mxd.
  • Open intersect.shp attribute table.

clip_image020[4]

Figure 7 Attribute table of intersect.shp

Here FID_vicgrd and F_AREA come from VIC cells, while FID_g07032 and GRIDCODE come from XMRG polygon file. FID_vicgrd uniquely represents each VIC cell whose area is show in F_AREA field. GRIDCODE is actually equal to 100 * rainfall.

Querying attribute, for example FID_vicgrd = 1400, will extract all small polygons consisting a VIC cell.

Calculate areal weighted rainfall
  • Add a new field VIC_AREA with values come from F_AREA.

Open intersect.shp’s attribute table, Click Options → Add Field…

clip_image022[4]

Figure 8 Add a new field

Click the header of VIC_AREA column to select this field, right click it then select Field Calculator…, Yes upon warning message. Input [F_AREA] in the lower textbox then click OK to start calculation.

clip_image024[4]

Figure 9 Field calculator

  • Calculate area by running CalculateAreas in Command Line Window.

CalculateAreas intersect c:workspacelab2inters_area

  • Add a new field named “percentage” in double type to inters_area.shp.
  • Calculate [percentage] = [F_AREA] * [GRIDCODE]/100 / [VIC_AREA].

clip_image026[4]

Figure 10 Calculate Percentage field

  • Export areal weighted rainfalls upon each VIC cell

Make inters_area layer visible, and make sure there is no selection in this layer. Otherwise use clip_image028[4] on the Tools toolbar to clear any existing selection. In ArcToolbox, run Analysis Tools → Statistics → Summary Statistics to calculate rainfalls cell by cell.

clip_image030[4]

Figure 11 Summary statistics

Link interpolated rainfall data to VIC cells

  • Make vicgrid8_clp.shp visible and be topmost. Link this layer’s attribute table to rainfalls.dbf by using context menu → Joins and Relates → Join. In Join Data window, enter inputs as shown below,

clip_image032[4]

Figure 12 Join to rainfalls.dbf

  • Export vicgrd8_clp to vicgrd8_rainfall.shp. The output shapefile will physically contain rainfall values (stored in field SUM_percen).
  • Save partIII.mxd.
  • Project vicgrd8_rainfall to rainfall_geo.shp.
  • Add an alias “Rainfall” to field “SUM_Percen”. This makes the field name more straightforward.

clip_image034[4]

Figure 13 Make field name self-explanatory

In order to use in combination with other raster, we can also convert this polygon shapefile to raster using FeatureToRaster command in Command Line Window.

4. Visualization

  • Open partIII.mxd, switch all layers off except rainfall_geo. Set current data framework coordinate system to GCS_North_American_1983 using menu View→Data framework properties…→Coordinate System.
  • Open rainfall_geo layer properties window, make symbology settings same as below. You can also choose a different color schema for this.

clip_image036[4]

Figure 20 Symbology

  • Export map for submission. See Figure 21 for reference.

clip_image038[4]

Figure 21 Exported map

Conclusion

Although ArcView 9.2 has already included some basic interpolation approaches, it turns out in many cases hard to meet our specific requirements. This handout walks through how to interpolate Radar rainfall data to 1/8 degree VIC grid, illustrating necessary steps to implement areal weighted interpolation approach using ArcView. This handout also show us essential GIS operations such as project, clip, intersect, export, manipulate attribute table, link feature class to external table, etc, as well as making use of third party script.

(Http://nzt.spaces.live.com)

(转载请保持信息的完整,并加以适当引用)

SimCity开源了

On January 10 2008 the SimCity source code was released under the free
software GPL 3 license under the name Micropolis.

http://en.wikipedia.org/wiki/SimCity (国内可能要加代理才能访问)
http://simcitysocieties.ea.com/about.php?languageCode=1

COSPAR Abstract Reminder: 50th Anniversary Assembly

COSPAR的第一个主题是遥感

The 37th Scientific Assembly of the Committee on Space Research (COSPAR) will bring together approximately 2000 scientists and engineers from the world over to present the latest results in 96 symposia and special events covering all areas of space science.

Montreal, Canada
13 – 20 July 2008

Scientific program and abstract submission:
http://www.cospar-assembly.org

– Abstract deadline: 17 February 2008
Registration and hotel reservations:
http://www.cospar2008.org

– Early registration deadline: 1 June 2008
The program for distinguished interdisciplinary and 50th anniversary lectures is
now available and may be consulted at:
http://www.cospar-assembly.org

Please do not hesitate to forward this message to colleagues who may be
interested in submitting an abstract.

We look forward to your participation in COSPAR’s 50th anniversary Assembly.

Yours sincerely,

COSPAR Secretariat

你们看,天气很晴朗

一个叫姜岩的女孩平时喜欢说的,你们看,天气很晴朗。不过她因为失败的婚姻服毒失败又跳楼了。很多人死过一次后就不会再死了,但她又在几天后选择了第二次。也许婚姻家庭对她就意味着全部。只为她不值,那个男人,甚至那家人都太糟糕了。
她的博客记录了她决定自杀前二个月的全部心情,写的很平静,让人看的很沉重。
http://orionchris.spaces.live.com/default.aspx
这里还有一个她姐姐的纪念站,可以帮助大家对整个事情有个完整的了解。
http://orionchris.cn/
看了感动的一篇文章,完整介绍了姜岩自杀前的心理历程
http://bbs.muwen.com/topic701/701212.htm
http://www.tianya.cn/new/publicforum/Content.asp?idWriter=0&Key=0&strItem=funinfo&idArticle=1055802&flag=1

如她姐姐说的,得尊重她的选择。不过对大家要讲的是,还是要热爱生命。

The Tenth International Symposium on High Mountain Remote Sensing Cartography

Organisers: International Centre for Integrated Mountain Development (ICIMOD)
in cooperation with the European Space Agency (ESA)
Dates: September 8-11, 2008
Venue: ICIMOD, Kathmandu, Nepal

Tentative Schedule
Deadline for submission of abstracts: February 1, 2008
Notification of acceptance: April 1, 2008
Early registration deadline: May 1, 2008 (Registration begins from April 1, 2008)
Late registration deadline: June 1, 2008
Camera-ready paper: September 8, 2008
Symposium: September 8- 11, 2008
Field Excursion: September 12- 19, 2008

 

第二届国际数字地球学会

第二届国际数字地球学会——地球信息科学:全球变化研究的工具将于2008年11月12-14日联合
地理信息科学学会在德国的波茨坦城市召开数字地球高峰会议。

会前重要日期2008. 3.15  投稿文章摘要(400字内,以word格式)提交最后期限

              2008. 5. 1   发布接收函

              2008. 7. 1   提前注册最后期限

              2008. 7.30  投稿文章全文提交最后期限

注册及参会费用

提前注册(200871之前)/延迟注册(200871之后及现场注册)

          普通: 150欧元/200欧元

          GfGI ISDE会员: 125 欧元/175欧元

          学生:75欧元/100欧元

更多信息请查询网站:www.digitalearth-isde.org (国际数字地球学会)www.gfgi.de (地球信息科学学会),

会议网站www.isde-summit-2008.org

终于将基金07年度进展报告搞完了

忙了一周,终于将2个基金07年度进展报告按时提交上去了,这边的L老板已经对我very
disappointed了,如果花的时候再多一点,估计要抓狂了。在美国做研究压力真是很大
的,有句老话说的说错,万恶的资本主义国家里,雇主都使劲剥削着受雇人员,科研行
当的老板们也使劲push下面的人干活,每周要meeting一次,每次要一两个小时,每周
还要有个group meeting,讨论进展。恨不得大家7/24的干活,而不必付更多的工资。
不过好在以后国内的事象这样需要比较长时间来做的,不会常出现,这边的工作还可以
比较focused了。我还是比较喜欢concentrate on到某件事情,深入做些东西。08年也
应该多发点paper了,博士毕业后基本上是混过来的,事干了不少(我相信同事们都还
是看到的),但见成绩的东西都没有出来,自己也郁闷。这边的事情怎么说还是比较有
challenge的,老板虽然比较tough,但学术水平还是比较high的,在这个小圈子里还是
有点名气。
(不要嘲笑我写的夹杂英文了,现在还处在英语加强阶段,这样整会有帮助的了。)