请选择 进入手机版 | 继续访问电脑版
爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 4400|回复: 2

[求助] IDL,打开已有文件,重复画图

[复制链接]

新浪微博达人勋

发表于 2013-3-25 09:18:40 | 显示全部楼层 |阅读模式

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

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

x
请问怎样打开一个已经存在的ps 文件,并在原图的基础上重新画一条廓线呢?
我以前用的方法是:
entry_device=!d.name
set_plot, 'ps'
plot, T,Z,/noerase
device,/close_file
set_plot,entry_device
当生成一个‘idl.ps’文件后,将以上命令的倒数第二行注释掉,重新运行,就可以了。
但是当在‘set_plot, 'ps'   ’命令下面加上 ‘device,filename='test.ps' ’,即将ps文件命名为“test.ps”时,就不行了,好像默认的是每次重新打开一个新的“test.ps”文件。
请问如何打开一个已有的ps文件,然后在其上重新画一条廓线呢?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-5-12 22:17:48 | 显示全部楼层
同求解答啊。。。。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-5-13 13:28:57 | 显示全部楼层
本帖最后由 mali. 于 2014-5-13 13:42 编辑

注释掉的第二句是将缓冲区中内容全部写入文件并关闭文件的操作!所以一旦注释了 那个之前写入文件还处在打开状态,所以你新的命令能够生效。但是如果关闭了,应该就不能再打开修改了把,重新打开只会覆盖之前的!目前没看过有人这么做过。。。。文档里这么说的If you close the output file and then cause IDL to produce more output (e.g., by executing a new PLOT command), IDL will open the file again, causing the contents of the recently closed file to be lost. To avoid this, use the FILENAME keyword to specify a different file name or use SET_PLOT to disable the graphics driver, or be sure to print the closed output file before creating more output.我感觉好像是不能进行那种操作的!但是也不太确定。。。
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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