pandeia_io.bin_search_exposure_time
pandeia_io.bin_search_exposure_time(
instrument,
subarray,
readout,
ngroup,
obs_time,
nexp=1,
)
Binary search for nint such that exp_time(nint) > obs_time
Parameters
instrument |
|
Which instruments (miri, nircam, niriss, or nirspec). |
required |
subarray |
|
Subarray mode for the given instrument. |
required |
readout |
|
Readout pattern mode for the given instrument. |
required |
ngroup |
|
Number of groups per integration. Must be >= 2. |
required |
obs_time |
|
Total observation time to aim for (in hours). |
required |
nexp |
|
Number of exposures. |
1 |
Returns
nint |
Integer |
Number of integrations to reach obs_time. |
exp_time |
Float |
Exposure time in seconds. |
Examples
>>> import gen_tso.pandeia_io as jwst
>>> instrument = 'miri'
>>> subarray = 'slitlessprism'
>>> readout = 'fastr1'
>>> ngroup = 30
>>> obs_time = 6.0
>>> nint, exp_time = jwst.bin_search_exposure_time(
>>> instrument, subarray, readout, ngroup, obs_time,
>>> )
>>> print(nint, exp_time)
Back to top