Archive for the ‘RS’ Category

实现了一个SCAR的zotero translator

Posted on 五月 27th, 2009 in Program, RS | No Comments »

SCAR: Science of Cold and Arid Regions 是所里新办的一个期刊,看了几篇文章,打算摘录下来,zotero却不支持,需要自己再写一个转换器(translator),花了一下午的时间,终于搞出来了,暂时不支持搜索功能。
把下面的代码保存到zotero下的translator目录,给个名字,如SCAR.js,然后重新启动一下FIREFOX,应该就可以使用了。

{
"translatorID":"d5770df3-b41a-45cb-bb3a-261948c9af49",
"translatorType":4,
"label":"SCAR",
"creator":"Liangxu Wang<wangliangxu@gmail.com>",
"target":"http://www.scar.ac.cn/hhkxen/ch/reader",
"minVersion":"1.0",
"maxVersion":"",
"priority":100,
"inRepository":true,
"lastUpdated":"2009-5-27 22:33:00"
}

function detectWeb(doc, url) {
var articleRe = /view_abstract.aspx/;
var s = articleRe.exec(url);

if(s) {
return "journalArticle";
} else {
return "multiple";
}

return false;
}

function scrape(doc) {
var nsResolver = null;

var itemType = "journalArticle";
var newItem = new Zotero.Item(itemType);
Zotero.debug(itemType);

// 标题
var title = doc.getElementById('EnTitle').textContent;
Zotero.debug("Title:"+title);
newItem.title = title;

// 附件,网页快照
var snapName = title + " (SCAR)";
Zotero.debug(snapName);
newItem.attachments.push({document:doc, title:snapName, mimeType:"text/html"});
//Zotero.debug(doc);

//关键词
var keys=doc.getElementById('EnKeyWord');
var tags=keys.getElementsByTagName('u');
var i=0;
for(i=0;i<tags.length;i++){
newItem.tags.push(tags[i].textContent);
Zotero.debug("tag:"+tags[i].textContent);
}
//摘要
var abstract=doc.getElementById('EnAbstract');
newItem.abstractNote = Zotero.Utilities.trim(abstract.textContent);
// 出版社
newItem.publicationTitle = 'Sciences in Cold and Arid Regions';
newItem.ISSN='1674-3822';
newItem.url = doc.location.href;
//出版时间
var ref=doc.getElementById('ReferenceText').textContent;
if (ref.match(/,(\d+).+Sciences in Cold and Arid Regions,(\d+)\((\d+)\):(.+)\./))
{
newItem.volume=ref.match(/,(\d+).+Sciences in Cold and Arid Regions,(\d+)\((\d+)\):(.+)\./)[2];
newItem.issue=ref.match(/,(\d+).+Sciences in Cold and Arid Regions,(\d+)\((\d+)\):(.+)\./)[3];
newItem.pages=ref.match(/,(\d+).+Sciences in Cold and Arid Regions,(\d+)\((\d+)\):(.+)\./)[4];
newItem.date=ref.match(/,(\d+).+Sciences in Cold and Arid Regions,(\d+)\((\d+)\):(.+)\./)[1];
}
//作者
if (ref.match(/(.+),\d+\.+/))
{
authors=ref.match(/(.+),\d+\.+/)[1].split(',');
for(i=0;i<authors.length-1;i++) {
newItem.creators.push(Zotero.Utilities.cleanAuthor(authors[i], "author", true));
}
author=authors[authors.length-1].split('and');
for(i=0;i<author.length;i++) {
newItem.creators.push(Zotero.Utilities.cleanAuthor(author[i], "author", true));
}
}
Zotero.debug("finished.");
newItem.complete();
}

function doWeb(doc, url) {
var namespace = doc.documentElement.namespaceURI;
var nsResolver = null;

if(detectWeb(doc, url) == "multiple") {
Zotero.debug("Enter multiple~");
// TODO: implement the multiple function.
} else {
var urls = [url];
}
Zotero.debug(urls);
// 下面对每条url进行解析
Zotero.Utilities.processDocuments(urls, scrape, function() { Zotero.done(); });
Zotero.wait();
}

也可以直接下载:scar.js

Leica Geosystems Acquires ER Mapper

Posted on 五月 22nd, 2007 in RS | No Comments »

Stefano Costa writes " Norcross, GA — Leica Geosystems Geospatial Imaging today announced that it has acquired all assets of Earth Resource Mapping Ltd (ER Mapper), a geospatial software company headquartered in Australia. ER Mapper is a world-class provider of geospatial imagery processing solutions that prepare, manage, compress and deploy imagery, thus complementing Leica Geosystems’ existing product portfolio." This links to a Leica press release.

徕卡已经拥有了erdas,现在又收购了ermapper,想作遥感处理软件的巨无霸?
不过,ER MAPPER是一个很有特色的软件,特别是影像的压缩、管理、分发上,或许,可以和erdas进行互补?

OSSIM简介

Posted on 十二月 14th, 2006 in GIS, RS | 5 Comments »

什么是OSSIM?
如果你在google里搜索ossim,会发现有两个相关产品:
一个是www.ossim.net,一个是www.ossim.org
前面一个是Open Source Security Information Management的简写,后面一个是Open Source Software Image Map的简写。
我们这里介绍的是后者。
这里就把Mark Lucas写的overview简单翻译一下。
Read the rest of this entry »

install envi 4.3 in ubuntu edgy

Posted on 九月 19th, 2006 in Linux, RS | 6 Comments »

First download envi 4.3 for linux into my home directory, then:

cd
tar -zxvf envi_linux.x86.tar.gz
sudo mkdir /usr/local/rsi
sudo mv idl_6.3 /usr/local/rsi
sudo mv install /usr/local/rsi
sudo mv license /usr/local/rsi
cd /usr/local/rsi
sudo ./install

In the install process, I choose the first option(rsi manner), and it creates some directory by ln command(my option). After the installation, I can run envi by typing command "envi" in terminal, maybe I should create a icon menu in the gnome desktop.

How to figure out Principal Component Analysis band weightings

Posted on 一月 15th, 2006 in RS | 1 Comment »

在进行主成分分析时,如何计算原波段对主成分的贡献?
答案在http://www.rsinc.com/services/techtip.asp?ttid=2807
在ENVI里转悠了半天,也没找到这个方法,google没有得到结果,最后是baidu到的。

ubuntu breezy安装envi 4.2

Posted on 十一月 24th, 2005 in Linux, RS | 5 Comments »

没有什么要注意的问题。
下载,解压缩到某安装目录,执行install,根据提示操作。
license文件拷贝到对应的idl_6.2目录下。
执行envi_4.2\bin目录下的envi文件,或者可以再作一个菜单项或桌面快捷方式,或加一个link到系统目录中。

MODIS GRID Product

Posted on 六月 20th, 2005 in RS | 1 Comment »

Level 2G through level 4 products are considered gridded products. Gridded data are defined in a global non-overlapping grid. Globally, there are 460 tiles, of which 317 contain land pixels. Each tile has fixed Earth-locations covering an area of approximately 1200 x 1200 km (10° x 10° at the equator). All V003 MODIS Land tile products are defined in the equal area Integerized Sinusoidal projection (Rossow and Garder, 1984). All V004+ MODIS Land tile products are defined in the equal area Sinusoidal projection (Snyder, J.P. 1987). The tile vertical and horizontal coordinates are reflected in the product file name such as: MOD09GHK.A2004150.h13v05.004.2004152161345.hdf
reference

http://modis-250m.nascom.nasa.gov/developers/grids.html

gdal.sh自动更新安装

Posted on 十一月 24th, 2004 in Computer, GIS, RS | No Comments »

为了gdal更新的方便,写了一个简单的shell脚本:

cd /root/gdal/
cvs update
./configure --with-hdf4 --with-netcdf --with-pg=/usr/local/pgsql/bin/pg_config --with-geos --with-libtiff=internal --with-static-proj4 --with-grass=/usr/local/grass-5.7.cvs
make clean
make
make install

EDS: EDD web发布端程序开发计划

Posted on 十一月 15th, 2004 in RS | 3 Comments »

目前采用Linux+gdal+php进行处理.
cvs -d :pserver:username@503.mygis.org:/edd checkout eds

roadmap:
version 1
实现基于文件的HDF文件浏览
元数据浏览
数据子集浏览
subdataset image view(include bands view)
基于文件名的搜索
基于HTTP的下载
数据整体空间浏览?
version 2
基于数据库(MySQL或Postgresql或通用数据库抽象接口)
HDF数据入库
需要搜索的元数据入库
分页浏览、查询
thumb入库?(多波段如何处理?)
简单搜索(关键字)
高级搜索(基于坐标、关键字、时间...)
基于HTTP的下载
多种格式的下载(HDF、NETCDF、GEOTIFF、?)
会员制?
基于FTP的会员制下载?
数据整体空间浏览?(基于mapserver+postgis?)

glovis 6.0的安装

Posted on 十一月 14th, 2004 in Computer, RS | No Comments »

开始没想到,安装glovis居然很有难度.
仔细看了install.txt,也看了pdf文档,还是有很多不清楚.
感觉其做的文档不够详细(明白?).