Re: define_counts output

From: Manfred Hanke <Manfred.Hanke_at_email.domain.hidden>
Date: Fri, 30 Nov 2007 11:53:03 +0100
Hi,

 > So I would suggest forming proper grids if you can.

I agree with David.


 > isis> c.bin_lo = [1,2,3,4,5];
 > isis> c.bin_hi = [c.bin_lo[[1:]], c.bin_lo[-1]+1] ;

To do this, John provides also the make_hi_grid function:
   isis> c.bin_hi = make_hi_grid(c.bin_lo);

Cheers,

Manfred


make_hi_grid

  SYNOPSIS
     Use a single grid array to define a histogram grid

  USAGE
     hi[] = make_hi_grid (lo[]);

  DESCRIPTION
     Given a grid which provides the lower bin edges of a histogram
     grid, the high edges are defined as

        hi[[i:n-1]] = [ lo[[1:n-1]], 2*lo[n-1] - lo[n-2] ];

     so that the last two bins have the same width.


-- 
Manfred Hanke  Manfred.Hanke(at)sternwarte.uni-erlangen.de
Dr. Karl Remeis-Sternwarte,  Universität Erlangen-Nürnberg
Sternwartstraße 7,    96049 Bamberg
Tel. (0951) 95222-34                   Fax (0951) 95222-22
www: http://pulsar.sternwarte.uni-erlangen.de/hanke
-- 
----
You received this message because you are
subscribed to the isis-users list.
To unsubscribe, send a message to
isis-users-request_at_email.domain.hiddenwith the first line of the message as:
unsubscribe
Received on Fri Nov 30 2007 - 05:51:49 EST

This archive was generated by hypermail 2.2.0 : Fri Nov 30 2007 - 07:22:02 EST