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

Home » Public Forums » archive » Congrid/Rebin Conundrum
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
Congrid/Rebin Conundrum [message #55931] Thu, 13 September 2007 06:11
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Hi Folks,

How do you explain these results?

;**************************************************
Pro test

data=fltarr(4,4)

data[*,0]=[0.145344, 0.169110,0.182731,0.122478]
data[*,1]=[0.115594,0.0440957,0.182731,0.126002]
data[*,2]=[0.131399, 0.135963,0.195779,0.314944]
data[*,3]=[0.0892466,0.166040,0.208135,0.279526]

print,Total(data)/16.
print,(moment(data))[0]
print,rebin(data,1,1)
Print, ''
print,congrid(data,1,1,/INTERP)
print,congrid(data,1,1)
print,congrid(data,1,1,CUBIC=1)
end
;**************************************************

IDL> test
0.163070
0.163070
0.163070

0.145344
0.145344
0.145344

I find the same problem with CMCONGRID, from Craig's
library.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.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: Re: ENVI File Question
Next Topic: Re: Random problem with Delaunay triangulation

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

Current Time: Wed Oct 08 19:15:57 PDT 2025

Total time taken to generate the page: 0.00411 seconds