Re: fitting multiple data sets with variable norm

From: John E. Davis <davis_at_email.domain.hidden>
Date: Mon, 16 May 2011 16:30:30 -0400
Manfred Hanke <Manfred.Hanke_at_email.domain.hidden> Since I also didn't realize for quite some time which powerful things
> one can do with Isis_Active_Dataset as a model identifier, I'd like to

This "feature" is also mentioned in the documentation for the "fit_fun"
function:

   isis> help fit_fun

> add another example:
[...]

Here is simplified example of a technique that I use once in a while.

private variable MAX_FUNCTIONS = 100;
variable My_Fit_Functions = Ref_Type[MAX_FUNCTIONS];

private define absorbed_powerlaw (id)
{
   return phabs(id) * powerlaw (id);
}

public define my_fit_fun ()
{
   variable id = Isis_Active_Dataset;
   return (_at_email.domain.hidden}

define initialize ()
{
   variable id = load_data ("obsid_1234.pha");
   My_Fit_Functions[id] = &absorbed_powerlaw;

   id = load_data ("obsid_5678.pha");
   My_Fit_Functions[id] = &diskbb;

   fit_fun ("my_fit_fun");
   list_par ();
}

initialize();
----
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 May 16 2011 - 16:30:39 EDT

This archive was generated by hypermail 2.2.0 : Wed May 18 2011 - 13:57:10 EDT