JPEG contour plot without IDL graphics window, can this be done?

JPEG contour plot without IDL graphics window, can this be done?

Post by J. Solbri » Sat, 06 Jun 2009 06:19:37


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
 
 
 

JPEG contour plot without IDL graphics window, can this be done?

Post by Vince Hrad » Sat, 06 Jun 2009 06:25:13


Write it to the z-buffer?

 
 
 

JPEG contour plot without IDL graphics window, can this be done?

Post by David Fann » Sat, 06 Jun 2009 06:33:39

J. Solbrig writes:


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.")
 
 
 

JPEG contour plot without IDL graphics window, can this be done?

Post by J. Solbri » Sat, 06 Jun 2009 07:16:41


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
 
 
 

JPEG contour plot without IDL graphics window, can this be done?

Post by David Fann » Sat, 06 Jun 2009 07:46:30

J. Solbrig writes:


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.")
 
 
 

JPEG contour plot without IDL graphics window, can this be done?

Post by Mike » Sun, 07 Jun 2009 00:35:19


How about using both? ;-)

spawn, 'convert ' + file + '.ps ' + file + '.jpg'