Feature request

From: John E. Davis <davis>
Date: Mon, 11 Dec 2000 16:52:19 -0500
Currently isis is able to fit a single model to multiple data sets.
For instance:
    
    id_1 = load_data ("pha_1.fits");
    id_2 = load_data ("pha_2.fits");

    assign_arf (load_arf("arf_1.fits"), [id_1, id_2]);
    assign_rmf ("rmf_1.fits", [id_1, id_2]);

    fit_fun ("wabs(1)*powerlaw(1)");
    fit;

will fit an absorbed powerlaw to two data sets.  However, it would be
nice to be able to fit different models to the data sets, e.g.,

    id_1 = load_data ("pha_1.fits");
    id_1 = load_data ("pha_2.fits");

    assign_arf (load_arf("arf_1.fits"), [id_1, id_2]);
    assign_rmf ("rmf_1.fits", [id_1, id_2]);

    fit_fun ("wabs(1)*powerlaw(1) + poly(1)", id_1);
    fit_fun ("poly(1)", id_2);

    fit;

This would enable one to model a background in isis.

A simply hack to make this possible would be to do the following:

   1.  Create an intrinsic variable representing the data set that is
       currently being fitted, e.g., __Current_Data_Set.

Then one could specify the model as:

   fit_fun ("wabs(1)*powerlaw(1)*(__Current_Data_Set==1) + poly(1)");

Thanks,
--John
----
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 Mon Dec 11 2000 - 16:52:28 EST

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