Re: isis flux_corr question

From: John E. Davis <davis>
Date: Mon, 28 Oct 2002 17:08:24 -0500
Roy Kilgard <rkilgard_at_email.domain.hidden>I have what may be a simple question but this has been bugging me
>for a while.  I'm trying to compute exposure corrected counts for
>an energy range of a spectrum, say 1-2 keV (~12.4-6.2 A).

I think you mean photon flux in a region.  If so, region_counts is not
what you want to use since that operates on counts and not flux.  Try
region_flux instead.  

Also, the _A function is useful for converting energy <--> angstroms.
For example instead of

>variable e1=12.39854;
>variable e2=6.19927;
[...]
>variable b1=region_counts(data_id,e2,e1);  

you can use:

    variable lam1, lam2, b1;
    (lam1, lam2) = _A(1,2);
    b1 = region_flux (data_id, lam1, lam2);

Or, more simply as:

    b1 = region_flux (data_id, _A(1,2));

Good luck,
--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 Oct 28 2002 - 17:08:36 EST

This archive was generated by hypermail 2.2.0 : Thu Mar 15 2007 - 08:45:50 EDT