爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 2349|回复: 2

[求助] 求高手指教一个地图投影的等值线图问题,

[复制链接]

新浪微博达人勋

发表于 2015-9-15 16:04:17 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆

x
本帖最后由 jingwang_19 于 2015-9-15 16:06 编辑

想画一个在球状地图投影上的温度全球分布等值线图,想要的结果是白色背景的彩色等值线图,结果出来背景一片黑,彩色等值线图都被覆盖掉了,已经设置了background,为什么还是黑色呢?实在是搞不明白,请高手指点一下吧,程序如下,偶是新手。




pro map_tempeture
device,decomposed=0
CD, current=currentdirectory
inputpath=currentdirectory +'\'
inputfile=inputpath+'mapinput.txt'
;inputfile='E:\wj\work\2015\moshijicheng\xujiyao\code\T-MODEL\mapinput.txt'
n=851
str=strarr(n)
openr,lun,inputfile,/get_lun
str=strarr(n)
readf,lun, str
free_lun,lun
temp=float(strmid(str,22,12))

lon=findgen(37)*(10)
lat=findgen(23)*5-55
temp=fltarr(851/23, 23)

for i=0,36 do temp[i,*]=float(strmid(str[(i*23):((i+1)*23-1)],22,12))

levels=[180,185,190,195,200,205,210]
nlevels=n_elements(levels)
ncolors=nlevels+1
bottom=1
c_levels=[min(temp),levels,max(temp)]
c_labels=[0,replicate(1,nlevels),0]
c_colors=indgen(ncolors)+bottom

map_set,/orthographic,/isotropic,/horizon

SET_PLOT,'ps'

    DEVICE,FILENAME='E:\wj\work\2015\moshijicheng\xujiyao\code\T-MODEL\ͼ\globle_tempeture.PS'


loadct,33,ncolors=ncolors,bottom=bottom
contour,temp,lon,lat,levels=c_levels,c_colors=c_colors,background=255,color=0,/cell_fill,/overplot
contour,temp,lon,lat,levels=c_levels,background=255,/overplot
map_continents
map_grid
device,/close

SET_PLOT,'win'

end
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2015-9-15 16:07:27 | 显示全部楼层
偶是新手,请高手指点一下吧。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-11-15 17:33:50 | 显示全部楼层
'PS'输出默认背景色为白色的
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表