Page History
...
Code Block | ||||
---|---|---|---|---|
| ||||
from pandeia.engine import perform_calculation result = perform_calculation.perform_calculation(calculation) |
where "calculation" is a heirarchical hierarchical input dictionary describing a scene of sources, an instrument setup, and an extraction strategy, and "result" is a hierarchical output dictionary.
Such input dictionaries are available in JWST Webapp download files (as a JSON-formatted file named input.json, suitable for reading in with the built-in Python functions'json' module), or default versions can be created with the function build_default_calc() and then edited:
...
The full API documentation, with all possible options and combinations for any instrument, is in the attached file:
View file | ||||
---|---|---|---|---|
|
...
can be found in this file.
Examples
The following calculation defines a JWST NIRCam observation in SW Imaging mode using the full subarray and rapid readout pattern and f070w filter, for a flat-spectrum (in fnu) point source normalized to 0.001 mJy, intended to be observed with a 0.2" aperture. Note that it specifies a precomputed backgroundbackground precomputed for a specific date and celestial location; actual computed user-configured backgrounds are available in the JWST web ETC (and can be downloaded from there)
...
The following dictionary defines a Roman WFI Imaging observation with the F062 filter, 1024x1024 subarray (for a similar read time to what 's is expected for Roman WFI Imaging), medium8 readout pattern, and 6 groups; for a 0.001 mJy flat-spectrum point source (in fnu) intended to be observed with a 0.2" aperture.
...