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

Home » Public Forums » archive » Re: Congrid problem
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: Congrid problem [message #23843] Fri, 23 February 2001 09:03
pit is currently offline  pit
Messages: 92
Registered: January 1996
Member
Paul van Delst <pvandelst@ncep.noaa.gov> writes:

> IDL> print, !version
> { x86 linux unix 5.4.1 Jan 16 2001 32 32}
> IDL> a = bytarr(100,100) + 155b
> IDL> b = congrid(a,140,140,/interp)
> % Compiled module: CONGRID.
> IDL> print, min(b), max(b)
> 155 155
> IDL> w = where(b eq 154, count)
> IDL> print,count
> 0

Same here, { x86 linux unix 5.2 Oct 30 1998}

Pit

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
Dr. Peter "Pit" Suetterlin http://www.astro.uu.nl/~suetter
Sterrenkundig Instituut Utrecht
Tel.: +31 (0)30 253 5225 P.Suetterlin@astro.uu.nl
____________________________________________________________ ______________
Re: Congrid problem [message #23852 is a reply to message #23843] Fri, 23 February 2001 06:43 Go to previous message
Alex Schuster is currently offline  Alex Schuster
Messages: 124
Registered: February 1997
Senior Member
Craig Markwardt wrote:

> Your example doesn't have the artifact on Linux on IDL 5.2 and IDL
> 5.3. It sounds like a bug under HP-UX.

I get the artifacts with IDL 5.0 to 5.2 on Sparc Solaris, but not with
IDL 5.3 and Windows.

Alex
--
Alex Schuster Wonko@weird.cologne.de PGP Key available
alex@pet.mpin-koeln.mpg.de
Re: Congrid problem [message #23853 is a reply to message #23852] Fri, 23 February 2001 06:32 Go to previous message
Jaco van Gorkom is currently offline  Jaco van Gorkom
Messages: 97
Registered: November 2000
Member
Craig Markwardt wrote:
>
> Jonathan Joseph <jj21@cornell.edu> writes:
>
>> I'm running IDL 5.3 on HP-UX and seeing the following
>> problem with congrid. I have a byte image that has large areas
>> of a particular solid color (a background color).
>> I rescale the image to be larger using congrid with the
>> /interp flag set. My nice solid areas of the background color,
>> which I would still expect to see unspoiled, now have artifacts
>> in them with value background_color - 1. This looks like a
>> bug. What's going on?
>>
>> Here's an example that show's the problem:
> ... deleted ...
>
> Your example doesn't have the artifact on Linux on IDL 5.2 and IDL
> 5.3. It sounds like a bug under HP-UX.
>
...

I can reproduce the problem on SunOS 2.7, running IDL 5.3 on a Sparc
CPU.

Jaco
Re: Congrid problem [message #23854 is a reply to message #23853] Fri, 23 February 2001 06:13 Go to previous message
Paul van Delst is currently offline  Paul van Delst
Messages: 364
Registered: March 1997
Senior Member
Jonathan Joseph wrote:
>
> I'm running IDL 5.3 on HP-UX and seeing the following
> problem with congrid. I have a byte image that has large areas
> of a particular solid color (a background color).
> I rescale the image to be larger using congrid with the
> /interp flag set. My nice solid areas of the background color,
> which I would still expect to see unspoiled, now have artifacts
> in them with value background_color - 1. This looks like a
> bug. What's going on?
>
> Here's an example that show's the problem:
>
> IDL> a = bytarr(100,100) + 155b
> IDL> b = congrid(a,140,140,/interp)
> IDL> print, min(b), max(b)
> 154 155
> IDL> w = where(b eq 154, count)
> IDL> print,count
> 3703
> IDL> tvscl, b eq 154 ;shows strange pattern of lines and dots
>
> I would expect b in this example to be filled only with value 155.
> Is this a bug or is there some other reason I am seeing this behavior?
>
> BTW: I see the exact same behavior with INT instead of BYTE.
>
> Thanks.
>
> -Jonathan

IDL> print, !version
{ x86 linux unix 5.4.1 Jan 16 2001 32 32}
IDL> a = bytarr(100,100) + 155b
IDL> b = congrid(a,140,140,/interp)
% Compiled module: CONGRID.
IDL> print, min(b), max(b)
155 155
IDL> w = where(b eq 154, count)
IDL> print,count
0


--
Paul van Delst A little learning is a dangerous thing;
CIMSS @ NOAA/NCEP Drink deep, or taste not the Pierian spring;
Ph: (301)763-8000 x7274 There shallow draughts intoxicate the brain,
Fax:(301)763-8545 And drinking largely sobers us again.
pvandelst@ncep.noaa.gov Alexander Pope.
Re: Congrid problem [message #23855 is a reply to message #23854] Fri, 23 February 2001 05:53 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Jonathan Joseph <jj21@cornell.edu> writes:

> I'm running IDL 5.3 on HP-UX and seeing the following
> problem with congrid. I have a byte image that has large areas
> of a particular solid color (a background color).
> I rescale the image to be larger using congrid with the
> /interp flag set. My nice solid areas of the background color,
> which I would still expect to see unspoiled, now have artifacts
> in them with value background_color - 1. This looks like a
> bug. What's going on?
>
> Here's an example that show's the problem:
... deleted ...

Your example doesn't have the artifact on Linux on IDL 5.2 and IDL
5.3. It sounds like a bug under HP-UX.

Craig


--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Modules directory howto find or link IDL 2 it
Next Topic: Re: Modules directory howto find or link IDL 2 it

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

Current Time: Wed Oct 08 15:16:38 PDT 2025

Total time taken to generate the page: 0.00545 seconds