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

Home » Public Forums » archive » Re: Mean preserving interpolation (conservative interpolation)
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: Mean preserving interpolation (conservative interpolation) [message #81798 is a reply to message #81795] Tue, 16 October 2012 10:14 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Tuesday, October 16, 2012 12:52:39 PM UTC-4, Coyote wrote:
>
>
> The keyword you are looking for is MINUS_ONE:
>
>

While the /MINUS_ONE keyword works for your particular example, I don't believe it is a general solution. I'd suggest frebin.pro ( http://idlastro.gsfc.nasa.gov/ftp/pro/image/frebin.pro ) as a flux-conserving alternative to CONGRID.

IDL> x = randomn(seed,100)*10
IDL> y = congrid(x,367,/minus_one,/interp)
IDL> z = frebin(x,367)
IDL> print,mean(x),mean(y),mean(z)
-0.593289 -0.546786 -0.593280
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Axis equal
Next Topic: Re: Axis equal

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

Current Time: Wed Oct 08 17:44:46 PDT 2025

Total time taken to generate the page: 0.00423 seconds