登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 MeteoInfo 于 2018-9-3 12:43 编辑
GPM (Global Precipitation Measurement) 卫星swath数据读取及绘图的例子:
- #Add data file
- folder = 'D:/Temp/hdf/'
- fns = '1C.F19.SSMIS.XCAL2015-P.20160105-S214106-E232259.009078.V03A.HDF5'
- fn = folder + fns
- f = addfile(fn)
- lon = f['Longitude'][:,:]
- lat = f['Latitude'][:,:]
- vname = 'Tc'
- v_data = f[vname]
- data = v_data[:,:,0]
- data[data<=-9999.9] = nan
- long_name = v_data.attrvalue('LongName')[0]
- units = v_data.attrvalue('Units')[0]
- #Plot
- axesm()
- mlayer = shaperead('D:/Temp/map/country1.shp')
- geoshow(mlayer, edgecolor='k')
- levs = arange(40, 90, 1)
- layer = pcolorm(lon, lat, data, 20)
- colorbar(layer, orientation='horizontal', aspect=40, label=units)
- title('{0}{1}'.format(fns, long_name+' (nchannel1=0)'))
- axism()
|