diff --git a/cscripts/cslightcrv.par b/cscripts/cslightcrv.par index 7a3e8e9..558364e 100644 --- a/cscripts/cslightcrv.par +++ b/cscripts/cslightcrv.par @@ -33,7 +33,7 @@ outfile, f, a, lightcurve.fits,,, "Output light curve file" # Script parameters #================== tbinalg, s, a, GTI,FILE|LIN|GTI,, "Algorithm for defining time bins" -tmin, r, a, 51544.5,,,"Lightcurve start time (MJD])" +tmin, r, a, 51544.5,,,"Lightcurve start time (MJD)" tmax, r, a, 51544.6,,,"Lightcurve stop time (MJD)" tbins, i, a, 5,1,10000, "Number of time bins" tbinfile, f, a, NONE,,, "File defining the time binning" diff --git a/cscripts/cslightcrv.py b/cscripts/cslightcrv.py index 73b295d..d5ae9c4 100755 --- a/cscripts/cslightcrv.py +++ b/cscripts/cslightcrv.py @@ -439,9 +439,9 @@ class cslightcrv(ctools.cscript): # Compute spatial binning for point spread function and # energy dispersion cubes - binsz = 0.1 * self["binsz"].real() - nxpix = self["nxpix"].integer() / 10 - nypix = self["nypix"].integer() / 10 + binsz = 10.0 * self["binsz"].real() + nxpix = self["nxpix"].integer() // 10 # Make sure result is int + nypix = self["nypix"].integer() // 10 # Make sure result is int if nxpix < 2: nxpix = 2 if nypix < 2: