{
    "meta": {
        "description": "Pandeia JSON configuration file for JWST NIRCam.",
        "litref": {
            "description": "Dict of literature references for the provided data using date that it was provided as key",
            "2016-07-21": "pandeia_data master",
            "2016-09-01": "NIRCam OCD located at: https://confluence.stsci.edu/pages/viewpage.action?pageId=52920601&preview=/52920601/61443001/NIRCam_OCD_VD.pdf"
        },
        "author": {
            "description": "Name of person responsible for data values if no 'litref' entry and date provided",
            "2016-07-21": "T. E. Pickering",
            "2016-09-01": "Brian Brooks"
        },
        "pedigree": {
            "description": "Pedigree of the provided values with dates to denote when updated",
            "2016-07-21": "pandeia_data master",
            "2016-09-01": "placeholder"
        },
        "history": {
            "description": "History of changes keyed by date",
            "2016-07-21": "Create initial template from pandeia config file",
            "2016-09-01": "This config file was updated to match results from CV3 testing done at NASA Goddard Space Flight Center. Changes were also made to match the currently used configurations of NIRCam."
        },
        "parameters": {
            "apertures": {
                "description": "List of available apertures (e.g. slits, coronagraphy masks, etc.)",
                "comment": "These values are for reference only and should NOT be changed. Pandeia code depends on them."
            },
            "aperture_config": {
                "description": "Define pixel scale and other necessary parameters for each supported aperture",
                "comment": "Each entry in 'apertures' requires configuration section here",
                "parameters": {
                    "channel": {
                        "description": "Which NIRCam channel aperture is installed in",
                        "units": "Either 'lw' or 'sw'"
                    },
                    "pix": {
                        "description": "Pixel scale of aperture in arcsec/pixel",
                        "units": "<float> > 0.0"
                    }
                }
            },
            "bar_offsets": {
                "description": "Optimal target position for each filter when used with bar-shaped coronagraphy mask.",
                "comment": "One entry per coronagraphy filter keyed off pandeia filter name given in 'filters'"
            },
            "defaults": {
                "description": "Parameters for default calculations for each supported mode.",
                "parameters": {
                    "detector": {
                        "meta": {
                            "description": "Detector/exposure configuration parameters",
                            "parameters": {
                                "nexp": {
                                    "description": "Number of exposures, i.e. sets of ramps",
                                    "units": "<int> >= 1"
                                },
                                "ngroup": {
                                    "description": "Number of groups per ramp",
                                    "units": "<int> >= det_pars['mingroups']"
                                },
                                "nint": {
                                    "description": "Number of ramps",
                                    "units": "<int> >= 1"
                                },
                                "readmode": {
                                    "description": "Readout pattern.",
                                    "units": "<string>  Must be one listed in 'readmodes'."
                                },
                                "subarray": {
                                    "description": "Detector subarray to read out.",
                                    "units": "<string>  Must be one listed in 'subarrays'."
                                }
                            }
                        }
                    },
                    "instrument": {
                        "meta": {
                            "description": "Instrument configuration parameters",
                            "parameters": {
                                "aperture": {
                                    "description": "Instrument aperture, e.g. slit or mask",
                                    "units": "<string>  Must be one of strings listed in 'apertures'."
                                },
                                "disperser": {
                                    "description": "Instrument disperser, e.g. grating or grism.",
                                    "units": "<null> if not applicable, otherwise <string> listed in 'dispersers'."
                                },
                                "filter": {
                                    "description": "Instrument filter.",
                                    "units": "<null> if not applicable, otherwise <string> lists in 'filters'."
                                },
                                "mode": {
                                    "description": "Observing mode.",
                                    "units": "<string>  Must be listed in 'modes'."
                                }
                            }
                        }
                    }
                }
            },
            "det_pars": {
                "description": "Detector-specific parameters.",
                "parameters": {
                    "dark_current": {
                        "description": "Dark current",
                        "units": "<float> in e-/sec"
                    },
                    "ff_electrons": {
                        "description": "Effective signal level of flat-field images used to calculate their shot noise",
                        "units": "<float> in e-"
                    },
                    "fullwell": {
                        "description": "Full-well capacity per pixel in e-",
                        "units": "<float> in e-"
                    },
                    "ipc": {
                        "description": "Toggle whether inter-pixel capacitance is accounted for",
                        "units": "<bool>"
                    },
                    "mingroups": {
                        "description": "Minimum number of groups required to define valid ramp",
                        "units": "<int>"
                    },
                    "pix_size": {
                        "description": "Physical size of detector pixel",
                        "units": "<float> in microns"
                    },
                    "rn": {
                        "description": "Detector read noise",
                        "units": "<float> in e-"
                    },
                    "rn_correlation": {
                        "description": "Toggle support for correlated read noise",
                        "units": "<bool>"
                    }
                }
            },
            "dispersers": {
                "description": "List of available dispersers (e.g. gratings, grisms)",
                "comment": "These values are for reference only and should NOT be changed. Pandeia code depends on them."
            },
            "double_filters": {
                "description": "Look-up table for which broadband filter to use in tandem with certain narrow-band filters.",
                "comment": "Keys and values must be valid strings contained in 'filters'."
            },
            "filters": {
                "description": "List of available filters",
                "comment": "These values are for reference only and should NOT be changed. Pandeia code depends on them."
            },
            "modes": {
                "description": "List of available observing modes",
                "comment": "These values are for reference only and should NOT be changed. Pandeia code depends on them."
            },
            "paths": {
                "description": "Look-up table for pathnames to reference data files.",
                "keys": {
                    "coronagraphy_substrate": "Coronagraphy substrate throughput",
                    "filters": "Filter throughputs",
                    "dispersers": "Disperser throughputs",
                    "disperser_disp": "Disperser dispersion and resolution data",
                    "internal": "Internal throughput of instrument",
                    "ipc_kernel": "Correlation matrix for inter-pixel capacitance",
                    "lw_wedge_eff": "Throughput for LW coronagraphy wedge optics",
                    "qe_lw": "QE for LW detector",
                    "qe_sw": "QE for SW detector",
                    "dbs_lw": "DBS for LW detector",
                    "dbs_sw": "DBS for SW detector",
                    "rn_corr": "Correlation matrix for modeling correlated readnoise",
                    "sw_wedge_eff": "Throughput for SW coronagraphy wedge optics"
                }
            },
            "readmode_config": {
                "description": "Define readout patterns by number of read and skipped frames per group.",
                "comment": "Each entry in 'readmodes' needs an entry here to configure it.",
                "parameters": {
                    "nframe": {
                        "description": "Number of frames read out and averaged per group",
                        "units": "<int> >= 1"
                    },
                    "nskip": {
                        "description": "Number of frames skipped between groups",
                        "units": "<int> >= 0"
                    }
                }
            },
            "readmodes": {
                "description": "List of available readout modes",
                "comment": "These values are for reference only and should NOT be changed. Pandeia code depends on them."
            },
            "subarray_config": {
                "description": "Define X/Y sizes and readout times for each supported detector subarray",
                "parameters": {
                    "nx": {
                        "description": "Number of pixels along the X axis",
                        "units": "<int> >= 1"
                    },
                    "ny": {
                        "description": "Number of pixels along the Y axis",
                        "units": "<int> >= 1"
                    },
                    "tframe": {
                        "description": "Time required to read out subarray in seconds",
                        "units": "<float> > 0.0"
                    }
                }
            },
            "subarrays": {
                "description": "List of available detector subarrays",
                "comment": "These values are for reference only and should NOT be changed. Pandeia code depends on them."
            }
        }
    },
    "apertures": [
        "sw",
        "lw",
        "mask210r",
        "mask335r",
        "mask430r",
        "maskswb",
        "masklwb"
    ],
    "aperture_config": {
        "meta": {
            "litref": {
                "2016-07-21": "pandeia_data master"
            },
            "author": {
                "2016-07-21": "T. E. Pickering"
            },
            "pedigree": {
                "2016-07-21": "pandeia_data master"
            },
            "history": {
                "2016-07-21": "Create initial template from pandeia config file"
            }
        },
        "lw": {
            "channel": "lw",
            "pix": 0.064
        },
        "mask210r": {
            "channel": "sw",
            "pix": 0.032
        },
        "mask335r": {
            "channel": "lw",
            "pix": 0.064
        },
        "mask430r": {
            "channel": "lw",
            "pix": 0.064
        },
        "masklwb": {
            "channel": "lw",
            "pix": 0.064
        },
        "maskswb": {
            "channel": "sw",
            "pix": 0.032
        },
        "sw": {
            "channel": "sw",
            "pix": 0.032
        }
    },
    "bar_offsets": {
        "meta": {
            "units": "Arcsec along bar from bar center.",
            "litref": {
                "2016-07-21": "pandeia_data master"
            },
            "author": {
                "2016-07-21": "T. E. Pickering",
                "2016-09-01": "Brian Brooks"
            },
            "pedigree": {
                "2016-07-21": "pandeia_data master",
                "2016-09-01": "Ground"
            },
            "history": {
                "2016-07-21": "Create initial template from pandeia config file",
                "2016-09-01": "Values were approved by David Golimowski through email on August 24, 2016."
            }
        },
        "f182m": -1.856,
        "f187n": -1.571,
        "f200w": 0.928,
        "f210m": -0.071,
        "f212n": 0.143,
        "f250m": -6.848,
        "f277w": -4.76,
        "f300m": -5.249,
        "f335m": -4.075,
        "f356w": -2.054,
        "f360m": -3.195,
        "f410m": -1.663,
        "f430m": -1.043,
        "f444w": 1.271,
        "f460m": 0.098,
        "f480m": 0.619
    },
    "defaults": {
        "coronagraphy": {
            "meta": {
                "litref": {
                    "2016-07-21": "pandeia_data master"
                },
                "author": {
                    "2016-07-21": "T. E. Pickering"
                },
                "pedigree": {
                    "2016-07-21": "pandeia_data master"
                },
                "history": {
                    "2016-07-21": "Create initial template from pandeia config file"
                }
            },
            "detector": {
                "nexp": 1,
                "ngroup": 10,
                "nint": 1,
                "readmode": "bright2",
                "subarray": "640x640"
            },
            "instrument": {
                "aperture": "mask210r",
                "disperser": null,
                "filter": "f210m",
                "instrument": "nircam",
                "mode": "coronagraphy"
            }
        },
        "lw_imaging": {
            "meta": {
                "litref": {
                    "2016-07-21": "pandeia_data master"
                },
                "author": {
                    "2016-07-21": "T. E. Pickering"
                },
                "pedigree": {
                    "2016-07-21": "pandeia_data master"
                },
                "history": {
                    "2016-07-21": "Create initial template from pandeia config file"
                }
            },
            "detector": {
                "nexp": 1,
                "ngroup": 10,
                "nint": 1,
                "readmode": "deep2",
                "subarray": "full"
            },
            "dynamic_scene": true,
            "instrument": {
                "aperture": "lw",
                "disperser": null,
                "filter": "f250m",
                "instrument": "nircam",
                "mode": "lw_imaging"
            }
        },
        "ssgrism": {
            "meta": {
                "litref": {
                    "2016-07-21": "pandeia_data master"
                },
                "author": {
                    "2016-07-21": "T. E. Pickering"
                },
                "pedigree": {
                    "2016-07-21": "pandeia_data master"
                },
                "history": {
                    "2016-07-21": "Create initial template from pandeia config file"
                }
            },
            "detector": {
                "nexp": 1,
                "ngroup": 10,
                "nint": 1,
                "readmode": "shallow4",
                "subarray": "subgrism64"
            },
            "instrument": {
                "aperture": "lw",
                "disperser": "grismr",
                "filter": "f356w",
                "instrument": "nircam",
                "mode": "ssgrism"
            }
        },
        "sw_imaging": {
            "meta": {
                "litref": {
                    "2016-07-21": "pandeia_data master"
                },
                "author": {
                    "2016-07-21": "T. E. Pickering"
                },
                "pedigree": {
                    "2016-07-21": "pandeia_data master"
                },
                "history": {
                    "2016-07-21": "Create initial template from pandeia config file"
                }
            },
            "detector": {
                "nexp": 1,
                "ngroup": 10,
                "nint": 1,
                "readmode": "deep2",
                "subarray": "full"
            },
            "instrument": {
                "aperture": "sw",
                "disperser": null,
                "filter": "f070w",
                "instrument": "nircam",
                "mode": "sw_imaging"
            }
        },
        "wfgrism": {
            "meta": {
                "litref": {
                    "2016-07-21": "pandeia_data master"
                },
                "author": {
                    "2016-07-21": "T. E. Pickering"
                },
                "pedigree": {
                    "2016-07-21": "pandeia_data master"
                },
                "history": {
                    "2016-07-21": "Create initial template from pandeia config file"
                }
            },
            "detector": {
                "nexp": 1,
                "ngroup": 10,
                "nint": 1,
                "readmode": "deep2",
                "subarray": "full"
            },
            "instrument": {
                "aperture": "lw",
                "disperser": "grismr",
                "filter": "f356w",
                "instrument": "nircam",
                "mode": "wfgrism"
            }
        }
    },
    "det_pars": {
        "meta": {
            "lw": {
                "litref": {
                    "2016-07-21": "pandeia_data master",
                    "2016-09-01": "Email"
                },
                "author": {
                    "2016-07-21": "T. E. Pickering",
                    "2016-09-01": "Brian Brooks"
                },
                "pedigree": {
                    "2016-07-21": "pandeia_data master",
                    "2016-09-01": "Ground"
                },
                "history": {
                    "2016-07-21": "Create initial template from pandeia config file",
                    "2016-09-01": "Email from Karl Misselt on June 27, 2016 of the NIRCam team at University of Arizona. Calculations were done to create new scalar values from CV3 analysis."
                }
            },
            "sw": {
                "litref": {
                    "2016-07-21": "pandeia_data master",
                    "2016-09-01": "Email"
                },
                "author": {
                    "2016-07-21": "T. E. Pickering",
                    "2016-09-01": "Brian Brooks"
                },
                "pedigree": {
                    "2016-07-21": "pandeia_data master",
                    "2016-09-01": "Ground"
                },
                "history": {
                    "2016-07-21": "Create initial template from pandeia config file",
                    "2016-09-01": "Email from Karl Misselt on June 27, 2016 of the NIRCam team at University of Arizona. Calculations were done to create new scalar values from CV3 analysis.",
                    "2016-10-07": "Email exchange on 10-07-2016 between Marcia Rieke, Massimo Robberto and Klaus Pontoppidan decided that we should use 70% of full well."
                }
            }
        },
        "lw": {
            "dark_current": 0.04,
            "ff_electrons": 27778.0,
            "fullwell": 58100.0,
            "ipc": false,
            "mingroups": 2,
            "pix_size": 18.0,
            "rn": 9.545,
            "rn_correlation": false
        },
        "sw": {
            "dark_current": 0.002,
            "ff_electrons": 17778.0,
            "fullwell": 73990.0,
            "ipc": false,
            "mingroups": 2,
            "pix_size": 18.0,
            "rn": 10.96,
            "rn_correlation": false
        }
    },
    "dispersers": [
        "grismr",
        "grismc"
    ],
    "double_filters": {
        "meta": {
            "litref": {
                "2016-07-21": "pandeia_data master",
                "2016-09-01": "SOCCER TR JWST-STSCI-005030"
            },
            "author": {
                "2016-07-21": "T. E. Pickering",
                "2016-09-01": "Brian Brooks"
            },
            "pedigree": {
                "2016-07-21": "pandeia_data master",
                "2016-09-01": "Ground"
            },
            "history": {
                "2016-07-21": "Create initial template from pandeia config file",
                "2016-09-01": "The number and names of filters were checked. F322W needed to renaming to F322w2."
            }
        },
        "f162m": "f150w2",
        "f164n": "f150w2",
        "f323n": "f322w2",
        "f405n": "f444w",
        "f466n": "f444w",
        "f470n": "f444w"
    },
    "filters": [
        "f070w",
        "f090w",
        "f115w",
        "f140m",
        "f150w",
        "f150w2",
        "f162m",
        "f164n",
        "f182m",
        "f187n",
        "f200w",
        "f210m",
        "f212n",
        "f250m",
        "f277w",
        "f300m",
        "f322w2",
        "f323n",
        "f335m",
        "f356w",
        "f360m",
        "f405n",
        "f410m",
        "f430m",
        "f444w",
        "f460m",
        "f466n",
        "f470n",
        "f480m"
    ],
    "modes": [
        "coronagraphy",
        "lw_imaging",
        "ssgrism",
        "sw_imaging",
        "wfgrism"
    ],
    "paths": {
        "meta": {
            "litref": {
                "2016-07-21": "pandeia_data master"
            },
            "author": {
                "2016-07-21": "T. E. Pickering",
                "2016-09-01": "Brian Brooks"
            },
            "pedigree": {
                "2016-07-21": "pandeia_data master",
                "2016-09-01": "placeholder"
            },
            "history": {
                "2016-07-21": "Create initial template from pandeia config file",
                "2016-09-01": "Updated reference files for CV3 when needed to prepare for ETC release. DBS is now a seperate reference file.",
                "2016-09-23": "Added weak lens reference files."
            }
        },
        "coronagraphy_substrate": "optical/jwst_nircam_moda_com_substrate_trans.fits",
        "f070w": "filters/jwst_nircam_f070w_trans.fits",
        "f090w": "filters/jwst_nircam_f090w_trans.fits",
        "f115w": "filters/jwst_nircam_f115w_trans.fits",
        "f140m": "filters/jwst_nircam_f140m_trans.fits",
        "f150w": "filters/jwst_nircam_f150w_trans.fits",
        "f150w2": "filters/jwst_nircam_f150w2_trans.fits",
        "f162m": "filters/jwst_nircam_f162m_trans.fits",
        "f164n": "filters/jwst_nircam_f164n_trans.fits",
        "f182m": "filters/jwst_nircam_f182m_trans.fits",
        "f187n": "filters/jwst_nircam_f187n_trans.fits",
        "f200w": "filters/jwst_nircam_f200w_trans.fits",
        "f210m": "filters/jwst_nircam_f210m_trans.fits",
        "f212n": "filters/jwst_nircam_f212n_trans.fits",
        "f250m": "filters/jwst_nircam_f250m_trans.fits",
        "f277w": "filters/jwst_nircam_f277w_trans.fits",
        "f300m": "filters/jwst_nircam_f300m_trans.fits",
        "f322w2": "filters/jwst_nircam_f322w2_trans.fits",
        "f323n": "filters/jwst_nircam_f323n_trans.fits",
        "f335m": "filters/jwst_nircam_f335m_trans.fits",
        "f356w": "filters/jwst_nircam_f356w_trans.fits",
        "f360m": "filters/jwst_nircam_f360m_trans.fits",
        "f405n": "filters/jwst_nircam_f405n_trans.fits",
        "f410m": "filters/jwst_nircam_f410m_trans.fits",
        "f430m": "filters/jwst_nircam_f430m_trans.fits",
        "f444w": "filters/jwst_nircam_f444w_trans.fits",
        "f460m": "filters/jwst_nircam_f460m_trans.fits",
        "f466n": "filters/jwst_nircam_f466n_trans.fits",
        "f470n": "filters/jwst_nircam_f470n_trans.fits",
        "f480m": "filters/jwst_nircam_f480m_trans.fits",
        "grismc": "blaze/jwst_nircam_speceff.fits",
        "grismc_disp": "dispersion/jwst_nircam_disp.fits",
        "grismr": "blaze/jwst_nircam_speceff.fits",
        "grismr_disp": "dispersion/jwst_nircam_disp.fits",
        "internal": "optical/jwst_nircam_internaloptics_throughput.fits",
        "ipc_kernel": "detector/jwst_nircam_h2rg_ipckernel.fits",
        "lw_wedge_eff": "optical/jwst_nircam_lw-lyot_trans_modmean.fits",
        "qe_lw": "qe/jwst_nircam_lw_qe.fits",
        "qe_sw": "qe/jwst_nircam_sw_qe.fits",
        "rn_corr": "../detector/h2rg_corr.fits",
        "sw_wedge_eff": "optical/jwst_nircam_sw-lyot_trans_modmean.fits",
        "dbs_lw": "optical/jwst_nircam_lw_dbs.fits",
        "dbs_sw": "optical/jwst_nircam_sw_dbs.fits",
        "wlp4": "optical/jwst_nircam_wlp4.fits",
        "wlp8": "optical/jwst_nircam_wlp8.fits"
    },
    "readmode_config": {
        "meta": {
            "litref": {
                "2016-07-21": "pandeia_data master",
                "2016-09-01": "https://confluence.stsci.edu/pages/viewpage.action?pageId=52920601&preview=/52920601/61443001/NIRCam_OCD_VD.pdf"
            },
            "author": {
                "2016-07-21": "T. E. Pickering",
                "2016-09-01": "Brian Brooks"
            },
            "pedigree": {
                "2016-07-21": "pandeia_data master",
                "2016-09-01": "Ground"
            },
            "history": {
                "2016-07-21": "Create initial template from pandeia config file"
            }
        },
        "bright1": {
            "nframe": 1,
            "nskip": 1
        },
        "bright2": {
            "nframe": 2,
            "nskip": 0
        },
        "deep2": {
            "nframe": 2,
            "nskip": 18
        },
        "deep8": {
            "nframe": 8,
            "nskip": 12
        },
        "medium2": {
            "nframe": 2,
            "nskip": 8
        },
        "medium8": {
            "nframe": 8,
            "nskip": 2
        },
        "rapid": {
            "nframe": 1,
            "nskip": 0
        },
        "shallow2": {
            "nframe": 2,
            "nskip": 3
        },
        "shallow4": {
            "nframe": 4,
            "nskip": 1
        }
    },
    "readmodes": [
        "rapid",
        "bright1",
        "bright2",
        "shallow2",
        "shallow4",
        "medium2",
        "medium8",
        "deep2",
        "deep8"
    ],
    "subarray_config": {
        "meta": {
            "litref": {
                "2016-07-21": "pandeia_data master",
                "2016-09-01": "https://confluence.stsci.edu/pages/viewpage.action?pageId=52920601&preview=/52920601/61443005/NIRCam_Subarrays_OpsCon_v2.pdf"
            },
            "author": {
                "2016-07-21": "T. E. Pickering",
                "2016-09-01": "Brian Brooks"
            },
            "pedigree": {
                "2016-07-21": "pandeia_data master",
                "2016-09-01": "placeholder"
            },
            "history": {
                "2016-07-21": "Create initial template from pandeia config file",
                "2016-09-01": "Template was changed to allow for current subarray configurations."
            }

        },
        "full": {
            "nx": 2048,
            "ny": 2048,
            "tframe": 10.74
        },
        "sub64p": {
            "nx": 64,
            "ny": 64,
            "tframe": 0.049
        },
        "sub160p": {
            "nx": 160,
            "ny": 160,
            "tframe": 0.277
        },
        "sub400p": {
            "nx": 400,
            "ny": 400,
            "tframe": 1.652
        },
        "sub160": {
            "nx": 160,
            "ny": 160,
            "tframe": 0.277
        },
        "sub320": {
            "nx": 320,
            "ny": 320,
            "tframe": 1.07
        },
        "sub640": {
            "nx": 640,
            "ny": 640,
            "tframe": 4.18
        },
        "subgrism64": {
            "nx": 2048,
            "ny": 64,
            "tframe": 0.341
        },
        "subgrism128": {
            "nx": 2048,
            "ny": 128,
            "tframe": 0.676
        },
        "subgrism256": {
            "nx": 2048,
            "ny": 256,
            "tframe": 1.347

        }
    },
    "subarrays": [
        "full",
        "sub64p",
        "sub160p",
        "sub400p",
        "sub160",
        "sub320",
        "sub640",
        "subgrism64",
        "subgrism128",
        "subgrism256"
    ]
}
