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

Home » Public Forums » archive » Bug in rebin function
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
Bug in rebin function [message #6079] Thu, 28 March 1996 00:00
Evan F. Fishbein is currently offline  Evan F. Fishbein
Messages: 6
Registered: February 1995
Junior Member
In versions { sparc sunos 3.6.1c} and { x86 linux unix 4.0.1}
the following code gives a surprising answer

x=lindgen(1, 1000)*2l^16
x1=rebin(x, 32, 1000)
x1=x1(0,*)
dx = x1-x
plot, dx


The answer should be that dx is everywhere 0, but is not. The first number
where dx is not zero is 2l^25, so, obviously rebin is losing the significant
byte of the long field. As an aside,
dx = x-(long(rebin(float(x),32,1000)))(0,*)
is indeed zero everywhere.

Evan
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: help to a freshman with show3
Next Topic: Re: FFT wierdness in WAVE

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

Current Time: Wed Oct 08 11:51:17 PDT 2025

Total time taken to generate the page: 0.00561 seconds