comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: how to do that?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: how to do that? [message #35094] Tue, 13 May 2003 17:35
tomson is currently offline  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 Go to previous message
Liam E. Gumley is currently offline  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 Go to previous message
David Fanning is currently offline  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 Go to previous message
tomson is currently offline  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 #35105 is a reply to message #35103] Tue, 13 May 2003 06:20 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning (david@dfanning.com) writes:

Whoops! Craig is going to be furious with me... :-(

You can probably do everything you want in one
fell swoop with his PLOTIMAGE. :-)

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 Go to previous message
David Fanning is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: satellite data
Next Topic: Re: FINDFILE - how many files can it find?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:37:27 PDT 2025

Total time taken to generate the page: 0.00639 seconds