Institut für Astronomie und AstrophysikAbteilung AstronomieSand 1, D-72076 Tübingen, Germany |
rebinlc
rebin a time series to a new, evenly spaced, time binning
time series analysis
rebinlc,time,count,tn,rn
time : The times of the original light curve. Must be sorted. rate : The count RATES of the original light curve, rate(i) corresponding to time(i)
nonequally spaced timing: usetime: array with times onto which to bin the lightcurve, the last element contains the end of the last bin equally spaced timing: dt : the temporal resolution of the rebinned lightcurve (default is a resolution of 100th of the length of the original lightcurve) tstart: start time of the rebinned lightcurve, default is the first value of the time array. others: raterr: uncertainty of the input light-curve minnum: min. number of data points in each time bin. When this number is smaller than minnum, the bin is left empty.
chatty: if set, print out lots of annoying messages gaps : if set, give the time series with zero counts in the bins without events. devn : if set, compute the uncertainty of the rebinned lightcurve (ern parameter) as the standard deviation of the points entering that bin of the lightcurve, rather than using error propagation
tn,rn: The rebinned light-curve. This light curve can contain gaps, which are defined to be all time intervals in the original lightcurve longer than dt, which don't contain any data.
ern : Uncertainty of the output-lc, either computed from error propagation of raterr (default), or computed as the standard deviation of the points entering the bin (if devn-keyword is set; raterr is not used) numperbin : number of points used in each bin
none
none
Version 1.0, 1998/06/30 KP / JW (IAA Tuebingen) Version 1.1, 1998/07/07 JW / SB (IAA Tuebingen) * added minnum parameter * added nn keyword parameter Version 1.2, 1999/02/09 SB * added gaps keyword parameter Version 1.3, 1999/05/26 KP * added tstart keyword parameter Version 1.4, 1999/10/27 JW * bug fix in last line from MN Version 1.5, 1999/11/09 JW * exit with an error message if the lightcurve is too short. Version 1.6, 1999/11/25 SB * added numperbin optional output Version 1.7, 1999/11/26 SB * nn optional output eliminate (nn = numperbin) CVS Version 1.6, 2001/03/23, JW * added usetime keyword CVS Version 1.7, Apr 20 2001, Sara Benlloch * long set CVS Version 1.8, 2002/01/17, Thomas Gleissner (IAA Tuebingen) * added devn keyword CVS Version 1.9, 2002/01/18, TG * solve STDDEV(rate[index]) if n_elements(rate[index]) EQ 1 CVS Version 1.10, 2002/01/22, TG/JW * return standard deviation in ern keyword if devn is set rather than returning the standard deviation in the devn keyword CVS Version 1.11, 2002/01/22, TG * eliminate 'Type of end does not match'-error: set ENDIF instead of ENDELSE in line 161 CVS Version 1.12, 2002/10/31, TG * correct allocation of numperbin * use vector notation for time bin limits to make sure that the upper limit of time bin [i] is equal to the lower limit of time bin [i+1] CVS Version 1.13, 2002/10/31, TG * just some unrelevant cosmetic change CVS Version 1.14, 2002/12/11, TG * if usetime keyword is used, do not create time bin limits tlimit
[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]