码迷,mamicode.com
首页 > 其他好文 > 详细

MeteoInfoLab脚本示例:MERRA HDF数据

时间:2015-07-08 10:52:31      阅读:184      评论:0      收藏:0      [点我收藏+]

标签:

MERRA是NOAA的一种再分析资料,HDF数据遵循COARDS协议,读取比较简单。

脚本程序:

#Add data file
folder = ‘D:/Temp/hdf/‘
fns = ‘MERRA300.prod.assim.tavg1_2d_slv_Nx.20150101.SUB.hdf‘
fn = folder + fns
f = addfile(fn)
vname = ‘t2m‘
t = f[vname]
t2m = t[0,:,:]
#Plot
axesm()
mlayer = shaperead(‘D:/Temp/map/country1.shp‘)
geoshow(mlayer)
layer = imshowm(t2m, 20)
colorbar(layer, orientation=‘horizontal‘)
title(vname + ‘ at time=0‘)
axism()

技术分享

MeteoInfoLab脚本示例:MERRA HDF数据

标签:

原文地址:http://www.cnblogs.com/yaqiang/p/4629389.html

踩
(0)
赞
(0)
   
举报
评论 一句话评论(0)
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!