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

Home » Public Forums » archive » Resizing Raster Files
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
Resizing Raster Files [message #79757] Wed, 04 April 2012 07:51
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Folks,

Those of you who have worked with ImageMagick for any length
of time realize it has enough "quirks" to make even IDL
blush. It was called to my attention this morning that
in some circumstances the changes I put in effect yesterday
to set the width of raster file output were instead setting
the height of the output. This in direct contradiction to
ImageMagick's own documentation.

So, OK, I often work with satellite data, I've seen *this*
problem before!

The long and short of it is that I have modified the
PS_End code that performs this operation with a work-around
that produces the correct results with my current version of
ImageMagick (version 6.7.2-9). I also downloaded the
latest version of ImageMagick (version 6.7.6-3) and
confirmed that the work-around produces correct results
with that version, too. So, I think we are maybe good
to go.

Two files were updated this morning. You can get them
here:

http://www.idlcoyote.com/programs/ps_end.pro
http://www.idlcoyote.com/programs/cgps2raster.pro

Cheers,

David

P.S. I would advice against looking at the ImageMagick
command that is produced by PS_End. It's non-intuitive
nature will just confuse you. :-(


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Coyote Graphics 8-bit PNG Output
Next Topic: Re: The IDL way, summing variable sized slices of array.

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

Current Time: Wed Oct 08 18:52:46 PDT 2025

Total time taken to generate the page: 0.00405 seconds