利用Unidata netCDF Java库对远程文件的读取能力(OpenDAP, ADDE, THREDDS等),可以读取远程文件并绘图。
脚本程序:
fn = 'http://monsoondata.org:9090/dods/model' f = addfile(fn) v = f['ps'] ps = v[0,:,:] #Plot axesm() mlayer = shaperead('D:/Temp/map/country1.shp') geoshow(mlayer) layer = contourfm(ps, 20) colorbar(layer, orientation='horizontal') title(fn)