Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Engine inputs take the form of a heirarchical hierarchical Python dictionary describing, in different sections, the instrument setup, the scene with definitions of all sources within it, and the flux extraction strategy.

Such input dictionaries are available in JWST Pandeia Webapp download files (as a JSON-formatted file named input.json, suitable for reading in with the built-in Python 'json' module). Alternatively, or default versions of calculations can be created with the function build_default_calc() and then edited (this is the only option for Roman Space Telescope calculations)

...

Calculation downloads from the JWST Pandeia Webapp contain the engine inputs in a JSON-formatted text file called input.json.

...

The command above reads a file called "input.json" in the current directory, loads it into a Python dictionary, and runs it through the engine. "results" will be a dictionary, defined in the Output API documentation. Results should match the JWST Pandeia Webapp.


Full API


The full API documentation, with all possible options and combinations for any instrument, can be found in this link.

...