Re: binning data

From: David Michael Grumm (dmg@head-cfa.harvard.edu)
Date: Fri Jan 05 2001 - 17:58:29 EST


The syntax for the binning specification is min:max:step, so the binspec you
specified should create groups ( >=0.3,< 0.33) , ( >=0.33, <0.36), etc until
the last group which would contain 10.0. These values will pertain to the
values in your bincolumn (pi). If you did not specify a bincolumn, the
binspec would pertain to the rows in your input file. The last example given
in the help file for dmgroup uses the BIN option:

" dmgroup infile=in.fits outfile=out.fits binspec="3900:3906:2"
tabspec="3899:3,3908:1" grouptype=BIN grouptypeval=0 column=expno
bincolumn=dety tabcolumn=dety clobber=yes verbose=0

Group the data in the column 'expno' using the BIN option. The bin spec
indicates that for rows in the input file in which data in the column 'dety'
has values encompassed by 3900:3906:2, the data in column 'expno' are to be
binned. "

Also, increasing the verbosity level sometimes is helpful in diagnosing what
the tool is doing.

I hope this helps.

Dave Grumm

>
> Hi,
>
> I am trying to use dmgroup but don't see how to specify bins
> defined by energy range?
>
>
> This does not work:
>
> Parameters for /home/saku/cxcds_param/dmgroup.par
>
> infile = src_spectrum_pi.fits Input datafile specification
> outfile = src_spectrum_pi30.fits Output datafile specification
> binspec = 0.3,10.0,0.03 Binning specification (file or list)
> tabspec = Tab specification (file or list)
> grouptype = BIN Grouping type
> column = pi Name of column
> bincolumn = pi Name of column to bin on
> grouptypeval = 0 Grouping type value
> (clobber = no) OK to overwrite existing output file?
> (verbose = 0) Verbosity level
> (mode = ql)
>
>
>



This archive was generated by hypermail 2b29 : Thu Dec 13 2012 - 01:00:04 EST