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

Home » Public Forums » archive » Re: How to rebin complex array?
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: How to rebin complex array? [message #39016 is a reply to message #39013] Wed, 14 April 2004 06:47 Go to previous messageGo to previous message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
Timm Weitkamp wrote:
...
> u = 1 + FLTARR(k) ; create unit vector with k elements

A unit vector is a vector such that total(u*u) eq 1.0" (or for complex
numbers, total(u*conj(u)) eq 1.0). What you've described is a vector
whose elements are all 1, which has no special name.

...
> By the way, there is a good reason for REBIN not to work on complex
> arrays, and that is the fact that there is not really any proper way of
> interpolating between two complex values.

Why in the world not? All of the normal interpolation formulas work
perfectly well when applied seperately to the real and imaginary
components of a table of complex values. The formulas just involve
multiplcation, division, addition, and subtraction, all of which are
perfectly well defined for complex numbers, and they produce reasonable
results (well, not quite - in some higher-order interpolation algorithms
it's necessary to replace c^2 with c*conj(c) in some places).
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: reading pixels from images from automated XYpositions
Next Topic: Re: Read & write data files b/w IDL & Fortran 90

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

Current Time: Wed Oct 08 15:44:20 PDT 2025

Total time taken to generate the page: 0.00454 seconds