Re: combine_datasets

From: John Houck <houck_at_email.domain.hidden>
Date: Sun, 16 Nov 2003 15:58:15 -0500
On Sun, Nov 16, 2003 at 14:25 -0500, John E. Davis wrote:
> Now, where to I go from here?  I suppose that I can do:
> 
>     s = get_data (d1); s.value[*] = 0; s.err[*] = 0;
>     d2 = define_counts (s);
>     d3 = define_counts (s);
>     assign_arf (a1, d1);
>     assign_arf (a2, d2);
>     assign_arf (a3, d3);
>     set_kernel ([d1,d2,d3], "gpileup");
>     () = combine_datasets ([d1,d2,d3]);
> 
> Will this work?  Is there a better way to do this?  I know that I can


As written, d2 and d3 will have non-zero uncertainties assigned
and those uncertainties will be summed in quadrature when the
datasets are combined.  This is probably not what you want.  

To work around this, you could set Minimum_Stat_Err=1.e-10 and 
use
  s.err[*] = 1.e-10
instead of zero.

Otherwise, this approach should work; offhand, I don't know of
a better way to do this.


[...]
> Incidently, I believe that the online help for combine_datasets has a
> a couple of typos, e.g.,
> 
>     combine_datasets (1,2, weights);
> 
> should probably be
> 
>     combine_datasets ([1,2], weights);


No, I think its correct as it stands -- either form should work.

Thanks,
-John

-- 
John C. Houck                       MIT Center for Space Research
NE80-6005: 617-253-3849                   77 Massachusetts Avenue
42:21:55.105N, 71:05:28.122W             Cambridge, MA 02139-4307
----
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 Sun Nov 16 2003 - 16:00:00 EST

This archive was generated by hypermail 2.3.0 : Fri May 02 2014 - 08:35:44 EDT