When running Pandeia as a scriptable Python module, different background options are used than with the web client.
The background API
Within Pandeia, the background is defined by 2 values in the configuration dictionary:
background_level. The 2 values are used in concert to either load a background, or identify a pre-computed background to use in the calculation.
background: either a string defining the name of a background (
minzodi, or you can conceivably create your own), or the word
nonefor no background, or a list of arrays forming a spectrum
background_level: is either
high(or, for the
benchmark); it does not need to be specified at all if
none, or a list of arrays
Canned backgrounds have been pre-generated by the JWST Backgrounds Tool at 2 locations: along the ecliptic at ecliptic coordinates Lat = 90, Lon = 0; and at the Minzodi location (Lat = 266.3, Lon = -50).
The canned backgrounds have been generated at low (10% of max), medium (50% of max), and high (90% of max) background levels as determined from estimating the combined interstellar cirrus, zodiacal light, and internal straylight contributions over the entire period that the locations are in the JWST field of regard.
minzodi location, we have also defined a
benchmark level, which is the
minzodi location on June 19, 2020.
The option for no background is also available:
Custom backgrounds are a list containing wavelength and flux arrays (denoted by square brackets) that define the background. You can define them yourself, use the JWST Backgrounds Tool to generate them (as the web version of the ETC does), or download a calculation from the web ETC that will have a background filled in and can be run through Pandeia directly.
The example below is of a JSON-formatted numerical background (as it would appear in the "input.json" file in a web ETC download) for the Hubble Deep Field on 1 January 2021, pointing at RA = 12:36:49.4, Dec = +62:12:58. The first array contains wavelength values. The second array contains the corresponding background values.