- 积分
- 669
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2014-11-21
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 longlivehj 于 2015-4-2 19:00 编辑
我的测试区域的namelist.wps设置如下,而后利用wps的geogrid.exe生成的geo_em_d01.nc,而后利用ncl查看HGT_M出现了一个错误,warning:MapSetTrans: map limits invalid - using maximal area。我把geo_em_d01.nc上传了,希望各位坛友帮助我,这个问题已经困扰了好久了,要是有坛友能抽空帮忙在WPS下跑一下,看看是不是我的WPS有问题,还是我生的geo_em_d01.nc有问题,还是我的NCL文件有问题,谢谢各位了,在此感激不尽! 回帖就给金币啊!
[初步找到问题了]我在不更换其它参数,只修改投影时发现,我设置lambert投影时没有问题,设置mercator 投影时,就出现问题,应该是我的mercator投影设置有问题,但是不知道怎么解决,拜托各位了
namelist.wps
&share
wrf_core = 'ARW',
max_dom = 1,
io_form_geogrid = 2,
/
&geogrid
parent_id = 1, 1,
parent_grid_ratio = 1, 3,
i_parent_start = 1, 13,
j_parent_start = 1, 18,
s_we = 1,
e_we = 82, 169,
s_sn = 1,
e_sn = 69, 91,
geog_data_res = '10m','2m',
dx = 30000,
dy = 30000,
map_proj = 'mercator',
ref_lat = 40,
ref_lon = 81,
truelat1 = 60,
geog_data_path = '/media/root/Media/WPS_GEOG/'
/
NCL文件
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl" ; Add special wrf functions
begin
a = addfile("../../WPS/geo_em.d01.nc","r")
; type = "x11"
type = "pdf"
; type = "ps"
; type = "ncgm"
wks = gsn_open_wks(type,"geo_mercator_5") ; Create a plot workstation
opts = True ; Set some Basic Plot options
opts@MainTitle = "GEOGRID FIELDS"
ter = a->HGT_M(0,:,:) ; Read the variable to memory
res = opts ; Use basic options for this field
res@cnFillOn = True ; Create a color fill plot
contour = wrf_contour(a,wks,ter,res)
pltres = True ; Set plot options
mpres = True ; Set map options
plot = wrf_map_overlays(a,wks,(/contour/),pltres,mpres) ; Plot the data over a map background
end
|
|