Re: how to do that? [message #35094] |
Tue, 13 May 2003 17:35 |
tomson
Messages: 39 Registered: March 2003
|
Member |
|
|
Thank you and David.
In fact, I use coredraw to get tiff or jpg from PS. JPG is not good. The
tiff file is 7M, but the new PS file(only add a line on it) is 15M! So I ask
that.
Anyway, the method David told me is good.
"Liam Gumley" <Liam.Gumley@ssec.wisc.edu> д����Ϣ����
:b9r54p$mi6$1@news.doit.wisc.edu...
> "tomson" <tom2959@21cn.com> wrote in message
> news:b9r36v$cd3$1@mail.cn99.com...
>> That's good. Thank you.
>>
>> The original figure is in PS form not JPG. But how to read PS figure to
> IDL,
>> I donot find: read_ps,'test.ps'??
>
> IDL cannot read a PS file directly.
>
> Convert the PS file to JPEG or TIFF using an external package like
PhotoShop
> or ImageMagick:
>
> http://www.imagemagick.org/
>
> and then import it into IDL using READ_JPEG or READ_TIFF.
>
> Cheers,
> Liam.
> Practical IDL Programming
> http://www.gumley.com/
>
>
|
|
|
Re: how to do that? [message #35101 is a reply to message #35094] |
Tue, 13 May 2003 09:05  |
Liam E. Gumley
Messages: 378 Registered: January 2000
|
Senior Member |
|
|
"tomson" <tom2959@21cn.com> wrote in message
news:b9r36v$cd3$1@mail.cn99.com...
> That's good. Thank you.
>
> The original figure is in PS form not JPG. But how to read PS figure to
IDL,
> I donot find: read_ps,'test.ps'??
IDL cannot read a PS file directly.
Convert the PS file to JPEG or TIFF using an external package like PhotoShop
or ImageMagick:
http://www.imagemagick.org/
and then import it into IDL using READ_JPEG or READ_TIFF.
Cheers,
Liam.
Practical IDL Programming
http://www.gumley.com/
|
|
|
Re: how to do that? [message #35102 is a reply to message #35101] |
Tue, 13 May 2003 08:51  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
tomson (tom2959@21cn.com) writes:
> The original figure is in PS form not JPG. But how to read PS figure to IDL,
> I donot find: read_ps,'test.ps'??
No, there is no READ_PS. Try something like Adobe Illustrator. :-)
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Re: how to do that? [message #35103 is a reply to message #35102] |
Tue, 13 May 2003 08:38  |
tomson
Messages: 39 Registered: March 2003
|
Member |
|
|
That's good. Thank you.
The original figure is in PS form not JPG. But how to read PS figure to IDL,
I donot find: read_ps,'test.ps'??
"David Fanning" <david@dfanning.com> д����Ϣ����
:MPG.192a952cadaf2197989b8f@news.frii.com...
> tomson (tom2959@21cn.com) writes:
>
>> Hi,I want to analyze a JPG figure. I hope the figure can be put in a
plot,
>> like this:
>>
>> plot,[0,1],[0,1],xrange=[0,1],yrange=[0,1],/nodata
>> READ_JPEG, 'test.jpg', a
>> ;I want to put the image in the above plot just fill the rectangle.
How
>> to do that?
>> ;Then I want to add other on the plot...
>> oplot,x,y
>
> With TVIMAGE you would do it like this:
>
> p=[0.15, 0.15, 0.9, 0.9]
> TVImage, a, Position=p
> Plot, [0,1],[0,1],xrange=[0,1],yrange=[0,1],/nodata, $
> /NoErase, Position=p
> Oplot, x, y
>
> With Liam Gumley's ImgDisp you just set the AXIS keyword,
> I think.
>
> You can find TVIMAGE here:
>
> http://www.dfanning.com/programs/tvimage.pro
>
> Cheers,
>
> David
>
> --
> David W. Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Phone: 970-221-0438, E-mail: david@dfanning.com
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
|
Re: how to do that? [message #35106 is a reply to message #35105] |
Tue, 13 May 2003 05:38  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
tomson (tom2959@21cn.com) writes:
> Hi,I want to analyze a JPG figure. I hope the figure can be put in a plot,
> like this:
>
> plot,[0,1],[0,1],xrange=[0,1],yrange=[0,1],/nodata
> READ_JPEG, 'test.jpg', a
> ;I want to put the image in the above plot just fill the rectangle. How
> to do that?
> ;Then I want to add other on the plot...
> oplot,x,y
With TVIMAGE you would do it like this:
p=[0.15, 0.15, 0.9, 0.9]
TVImage, a, Position=p
Plot, [0,1],[0,1],xrange=[0,1],yrange=[0,1],/nodata, $
/NoErase, Position=p
Oplot, x, y
With Liam Gumley's ImgDisp you just set the AXIS keyword,
I think.
You can find TVIMAGE here:
http://www.dfanning.com/programs/tvimage.pro
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|