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

Home » Public Forums » archive » Re: JPEG contour plot without IDL graphics window, can this be done?
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: JPEG contour plot without IDL graphics window, can this be done? [message #66673] Fri, 05 June 2009 08:35
Mike[2] is currently offline  Mike[2]
Messages: 99
Registered: December 2005
Member
On Jun 4, 6:46 pm, David Fanning <n...@dfanning.com> wrote:

> Oh, IDL is able to do it. I thought you were looking
> for a more elegant solution. :-)

How about using both? ;-)

spawn, 'convert ' + file + '.ps ' + file + '.jpg'
Re: JPEG contour plot without IDL graphics window, can this be done? [message #66682 is a reply to message #66673] Thu, 04 June 2009 15:46 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
J. Solbrig writes:

> Thanks, it looks like ImageMagick will do the trick. It kind of
> surprises me, though, that idl isn't able to do something like this.
> Oh well, such is life.

Oh, IDL is able to do it. I thought you were looking
for a more elegant solution. :-)

Cheers,

David

--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: JPEG contour plot without IDL graphics window, can this be done? [message #66683 is a reply to message #66682] Thu, 04 June 2009 15:16 Go to previous message
J. Solbrig is currently offline  J. Solbrig
Messages: 4
Registered: August 2008
Junior Member
On Jun 4, 2:33 pm, David Fanning <n...@dfanning.com> wrote:
> J. Solbrig writes:
>> There must be a better way to handle this that does not require
>> opening a graphics window, copying the data from the window, then
>> outputting it to a jpeg, right?  Any suggestions would be appreciated.
>
> I *definitely* recommend ImageMagick. IDL is about the
> *last* place I would go to do this. Convert your PostScript
> files directly to JPEGs. :-)
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Coyote's Guide to IDL Programming (www.dfanning.com)
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Thanks, it looks like ImageMagick will do the trick. It kind of
surprises me, though, that idl isn't able to do something like this.
Oh well, such is life.

Jeremy
Re: JPEG contour plot without IDL graphics window, can this be done? [message #66684 is a reply to message #66683] Thu, 04 June 2009 14:33 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
J. Solbrig writes:

> There must be a better way to handle this that does not require
> opening a graphics window, copying the data from the window, then
> outputting it to a jpeg, right? Any suggestions would be appreciated.

I *definitely* recommend ImageMagick. IDL is about the
*last* place I would go to do this. Convert your PostScript
files directly to JPEGs. :-)

Cheers,

David


--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: JPEG contour plot without IDL graphics window, can this be done? [message #66685 is a reply to message #66684] Thu, 04 June 2009 14:25 Go to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Jun 4, 4:19 pm, "J. Solbrig" <JSolb...@gmail.com> wrote:
> So, typically is has been unnecessary for me to create anything other
> than postscript files for my data output.  Now, however, because
> someone has asked for it, I need to figure out how to create jpeg
> versions of hundreds of contour plots with superimposed maps and
> colorbars.
>
> So far, I have been able to figure out one method for creating the
> jpegs, but it is much too slow considering the number of plots that
> need to be created.  For the current method, I crate my image in the x-
> windows device, then use the following:
>
> write_jpeg, filename, jpeg_file, tvrd(/true), /true
>
> There must be a better way to handle this that does not require
> opening a graphics window, copying the data from the window, then
> outputting it to a jpeg, right?  Any suggestions would be appreciated.
>
> - Jeremy

Write it to the z-buffer?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Startup on LINUX Question
Next Topic: Map Projection Doom and Gloom

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

Current Time: Wed Oct 08 15:49:10 PDT 2025

Total time taken to generate the page: 0.00417 seconds