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

Home » Public Forums » archive » What is like CONGRID, but averages on reduction?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: What is like CONGRID, but averages on reduction? [message #5192 is a reply to message #5108] Thu, 12 October 1995 00:00 Go to previous messageGo to previous message
grunes is currently offline  grunes
Messages: 68
Registered: September 1993
Member
In article <45gi3f$h6o@spool.cs.wisc.edu> Liam Gumley <liamg@ssec.wisc.edu> writes:
>> Subject: What is like CONGRID, but averages on reduction?
>> I need to reduce the size of an array by an arbitrary (non-integral)
>> factor, using an averaging algorithm. Is there such a routine
>> in IDL and/or PV-WAVE?
...

> If it's image display you are most concerned with, then try the TVIM
> procedure from the excellent ESRG user library package. You can get it from
> ftp.crseo.ucsb.edu in pub/idl/esrg_idl_3.2.tar.Z

Thanks, looks interesting. Actually TVIM uses CONGRID, and so would
suffer from the same problem--it will miss dark or bright spots if
the original image is much larger than the averaged down image.

I finally figured out how to do it right--Use REBIN to average it down,
than CONGRID (with nearest neighbor) to expand it to the right size.
Not quite optimal, and a bit slow, but should work fairly well.
------------------------------------------------------------ -------------
Mitchell R Grunes, grunes@nrlvax.nrl.navy.mil. Opinions are mine alone.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Using _extra for all routines?
Next Topic: Re: HELP: IDL Function/Variable Problem

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

Current Time: Sun Nov 30 20:59:03 PST 2025

Total time taken to generate the page: 1.92856 seconds