- 积分
- 55946
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-6-21
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
OMI卫星吸收性气溶胶指数(Absorbing Aerosol Index)产品数据在此网页下载:http://www.temis.nl/airpollution/absaai/#OMI_AAI 。数据是文本文件,读取数据并绘图的示例脚本如下:
- #Read data from file
- tt = datetime.datetime(2016,4,6)
- fn = 'W:/SDS_Asian/SDS_obs/aai_omi/' + tt.strftime('%y%m%d') + '.esr'
- f = open(fn)
- for i in range(3):
- f.readline()
- data = []
- for line in f:
- line = line.strip('\n').split(' lat')[0][1:]
- #print line
- for m in range(0, len(line), 3):
- d = line[m:m+3]
- data.append(float(d))
- f.close()
- #Reshape data
- xn = 288
- yn = 180
- data = array(data)
- data = data.reshape([yn,xn])
- data[data>=996.0] = nan
- data = (data - 450) * 0.1
- #Set lon/lat
- lon = arange1(-179.375, xn, 1.25)
- lat = arange1(-89.5, yn, 1.0)
- #Plot
- axesm()
- lworld = shaperead('U:/map/country1.shp')
- geoshow(lworld, edgecolor=[50,50,50])
- levs = arange(0, 3.1, 0.1)
- layer = imshowm(lon, lat, data, levs, cmap='wh-bl-gr-ye-re', fill_color='lightgray')
- colorbar(layer)
- title('Absorbing Aerosol Index (' + tt.strftime('%Y-%m-%d') + ')')
|
|