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

Home » Public Forums » archive » Plot difference
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: Plot difference [message #66345 is a reply to message #66246] Thu, 30 April 2009 14:54 Go to previous messageGo to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On Apr 30, 5:24 pm, Paolo <pgri...@gmail.com> wrote:
> On Apr 27, 3:32 pm, Giorgio <giorgiol...@gmail.com> wrote:
>
>
>
>> Hi,
>>  From 10 measurements of a CCD camera with a size of (1293 x 840)
>> points I calculate the mean and the standard deviation. I get
>> different plots if I plot just the 2D data or if I rebin to make a 1D
>> vector.
>> Let's say that my 2D arrays for the mean is called average and the
>> standard deviation is standard. Then the results are different if I
>> do:
>
>> plot, average, standard, psym = 4
>
>> and
>
>> plot, rebin(average, N_Elements(average)), rebin(standard, n_elements
>> (standard)), psym = 4
>
>> Any hint why is that?
>
> I don't understand what the problem is.
>
> a=randomn(seed,100000L) & print,total(abs(a-rebin(a,n_elements(a))))
> shows that a and rebin(a,n_elements(a)) are identical (as they should
> be).
>
> Ciao,
> Paolo
>
>
>
>> Thanks,
>
>> Giorgio
>
>

OP said it's a 2D array...

IDL> seed=43l
IDL> a = randomn(seed,100l,100l)
IDL> b = rebin(a,n_elements(a))
IDL> print, a[0:5]
-0.908351 -0.440050 -0.200080 -0.260391 0.113894
-0.456169
IDL> print, b[0:5]
-0.204416 -0.201433 -0.198449 -0.195465 -0.192481
-0.189497

-Jeremy.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: About ‘Widget_base’
Next Topic: slope_intercept

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

Current Time: Fri Oct 10 20:03:29 PDT 2025

Total time taken to generate the page: 0.88010 seconds