{
  "meta": {
    "description": "Pandeia JSON configuration file for JWST NIRISS.",
    "litref": {
      "description": "Dict of literature references for the provided data using date that it was provided as key",
      "2016-07-21": "pandeia_data master"
    },
    "author": {
      "description": "Name of person responsible for data values if no 'litref' entry and date provided",
      "2016-07-21": "T. E. Pickering"
    },
    "pedigree": {
      "description": "Pedigree of the provided values with dates to denote when updated",
      "2016-07-21": "pandeia_data master"
    },
    "history": {
      "description": "History of changes keyed by date",
      "2016-07-21": "Create initial template from pandeia config file",
      "2016-09-02": "Updated values for 2nd reference file delivery (A. W. Fullerton)"
    },
    "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": {
          "pix": {
            "description": "Pixel scale of aperture in arcsec/pixel",
            "units": "<float> > 0.0"
          }
        }
      },
      "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."
      },
      "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.",
        "comment": "Each order of gr700xd is implemented as a seperate disperser, e.g. gr700xd_1 for 1st order",
        "keys": {
          "clear": "Throughput of CLEAR element",
          "clearp": "Throughput of CLEARP element",
          "filters": "Filter throughputs",
          "dispersers": "Disperser throughputs",
          "disperser_disp": "Disperser dispersion data",
          "disperser_r": "Disperser resolution data",
          "disperser_mask": "Extraction mask reference data (SOSS specific)",
          "disperser_wavepix": "Disperser wavelength solution",
          "internal": "Internal throughput of instrument",
          "ipc_kernel": "Correlation matrix for inter-pixel capacitance",
          "qe": "QE for detector",
          "rn_corr": "Correlation matrix for modeling correlated readnoise"
        }
      },
      "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."
      }
    }
  },
  "aperture_config": {
    "meta": {
      "litref": {
        "2016-07-21": "CSA-JWST-CD0-0003 NIRISS Operations Concept Document (2016 March 31)"
      },
      "author": {
        "2016-09-01": "P. Goudfrooij"
      },
      "pedigree": {
        "2016-09-01": "NIRISS Operations Working Group"
      },
      "history": {
        "2016-09-01": "ETC Reference Files for Delivery 2 "
      }
    },
    "imager": {
      "pix": 0.0656
    },
    "nrm": {
      "pix": 0.0656
    },
    "soss": {
      "pix": 0.0656
    }
  },
  "apertures": [
    "imager",
    "soss",
    "nrm"
  ],
  "defaults": {
    "ami": {
      "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": "nisrapid",
        "subarray": "sub80"
      },
      "instrument": {
        "aperture": "nrm",
        "disperser": null,
        "filter": "f480m",
        "instrument": "niriss",
        "mode": "ami"
      }
    },
    "imaging": {
      "meta": {
        "litref": {
          "2016-07-21": "pandeia_data master"
        },
        "author": {
          "2016-09-02": "A. W. Fullerton"
        },
        "pedigree": {
          "2016-09-01": "Recommendation from NIRISS Science Team (Email from C. Willott)"
        },
        "history": {
          "2016-09-02": "Change default filter to F200W"
        }
      },
      "detector": {
        "nexp": 1,
        "ngroup": 10,
        "nint": 1,
        "readmode": "nis",
        "subarray": "full"
      },
      "instrument": {
        "aperture": "imager",
        "disperser": null,
        "filter": "f200w",
        "instrument": "niriss",
        "mode": "imaging"
      }
    },
    "soss": {
      "meta": {
        "litref": {
          "2016-07-21": "CSA-JWST-CD0-0003 NIRISS Operations Concept Document (2016 March 31)"
        },
        "author": {
          "2016-09-02": "P. Goudfrooij"
        },
        "pedigree": {
          "2016-09-02": "NIRISS Operations Working Group"
        },
        "history": {
          "2016-09-02": "Changed default readout pattern to NISRAPID (A. W. Fullerton)"
        }
      },
      "detector": {
        "nexp": 1,
        "ngroup": 10,
        "nint": 1,
        "readmode": "nisrapid",
        "subarray": "substrip256"
      },
      "instrument": {
        "aperture": "soss",
        "disperser": "gr700xd",
        "filter": null,
        "instrument": "niriss",
        "mode": "soss"
      }
    },
    "wfss": {
      "meta": {
        "litref": {
          "2016-07-21": "pandeia_data master"
        },
        "author": {
          "2016-09-02": "A. W. Fullerton"
        },
        "pedigree": {
          "2016-09-01": "Recommendation from NIRISS Science Team (Email from C. Willott)"
        },
        "history": {
          "2016-09-02": "Change default filter to F115W"
        }
      },
      "detector": {
        "nexp": 1,
        "ngroup": 10,
        "nint": 1,
        "readmode": "nis",
        "subarray": "full"
      },
      "instrument": {
        "aperture": "imager",
        "disperser": "gr150r",
        "filter": "f115w",
        "instrument": "niriss",
        "mode": "wfss"
      }
    }
  },
  "det_pars": {
    "meta": {
      "litref": {
        "2016-09-02": "JWST-STScI-004822 (Dark Current); JWST-STScI-004825 (Flat Fields); JWST-STScI-004824 (Well Depth),CSA-JWST-TN-0002 (Read Noise)"
      },
      "author": {
        "2016-09-02": "K. M. Volk, C. M. Willott"
      },
      "pedigree": {
        "2016-09-02": "Measurements from CV3"
      },
      "history": {
        "2016-09-02": "Update default values (A. W. Fullerton)"
      }
    },
    "dark_current": 0.0387,
    "ff_electrons": 145000,
    "fullwell": 87300,
    "ipc": false,
    "mingroups": 2,
    "pix_size": 18,
    "rn": 11.55,
    "rn_correlation": false
  },
  "dispersers": [
    "gr700xd",
    "gr150c",
    "gr150r"
  ],
  "filters": [
    "f090w",
    "f115w",
    "f140m",
    "f150w",
    "f158m",
    "f200w",
    "f277w",
    "f356w",
    "f380m",
    "f430m",
    "f444w",
    "f480m"
  ],
  "modes": [
    "imaging",
    "soss",
    "wfss",
    "ami"
  ],
  "paths": {
    "meta": {
      "litref": {
        "2016-07-21": "pandeia_data master"
      },
      "author": {
        "2016-09-01": "A. W. Fullerton"
      },
      "pedigree": {
        "2016-09-01": "ETC Reference File Delivery 2"
      },
      "history": {
        "2016-09-01": "ETC Reference Files for Delivery 2"
      }
    },
    "clear": "optical/jwst_niriss_internaloptics-clear_throughput.fits",
    "clearp": "optical/jwst_niriss_internaloptics-clearp_throughput.fits",
    "nrm": "optical/jwst_niriss_nrm_trans.fits",
    "f090w": "filters/jwst_niriss_f090w_trans.fits",
    "f115w": "filters/jwst_niriss_f115w_trans.fits",
    "f140m": "filters/jwst_niriss_f140m_trans.fits",
    "f150w": "filters/jwst_niriss_f150w_trans.fits",
    "f158m": "filters/jwst_niriss_f158m_trans.fits",
    "f200w": "filters/jwst_niriss_f200w_trans.fits",
    "f277w": "filters/jwst_niriss_f277w_trans.fits",
    "f356w": "filters/jwst_niriss_f356w_trans.fits",
    "f380m": "filters/jwst_niriss_f380m_trans.fits",
    "f430m": "filters/jwst_niriss_f430m_trans.fits",
    "f444w": "filters/jwst_niriss_f444w_trans.fits",
    "f480m": "filters/jwst_niriss_f480m_trans.fits",
    "gr150c": "blaze/jwst_niriss_gr150c-ordp1_speceff.fits",
    "gr150c_disp": "dispersion/jwst_niriss_gr150c-ordp1_disp.fits",
    "gr150c_r": "dispersion/jwst_niriss_gr150c-ordp1_disp.fits",
    "gr150r": "blaze/jwst_niriss_gr150r-ordp1_speceff.fits",
    "gr150r_disp": "dispersion/jwst_niriss_gr150r-ordp1_disp.fits",
    "gr150r_r": "dispersion/jwst_niriss_gr150r-ordp1_disp.fits",
    "gr700xd_1": "blaze/jwst_niriss_gr700xd-ord1_speceff.fits",
    "gr700xd_2": "blaze/jwst_niriss_gr700xd-ord2_speceff.fits",
    "gr700xd_3": "blaze/jwst_niriss_gr700xd-ord3_speceff.fits",
    "gr700xd_1_disp": "dispersion/jwst_niriss_gr700xd-ord1_disp.fits",
    "gr700xd_2_disp": "dispersion/jwst_niriss_gr700xd-ord2_disp.fits",
    "gr700xd_3_disp": "dispersion/jwst_niriss_gr700xd-ord3_disp.fits",
    "gr700xd_1_mask": "masks/jwst_niriss_soss-256-ord1_mask.fits",
    "gr700xd_2_mask": "masks/jwst_niriss_soss-256-ord2_mask.fits",
    "gr700xd_3_mask": "masks/jwst_niriss_soss-256-ord3_mask.fits",
    "gr700xd_1_mask96": "masks/jwst_niriss_soss-96-ord1_mask.fits",
    "gr700xd_1_r": "dispersion/jwst_niriss_gr700xd-ord1_disp.fits",
    "gr700xd_2_r": "dispersion/jwst_niriss_gr700xd-ord2_disp.fits",
    "gr700xd_3_r": "dispersion/jwst_niriss_gr700xd-ord3_disp.fits",
    "gr700xd_1_wavepix": "wavepix/jwst_niriss_soss-256-ord1_trace.fits",
    "gr700xd_2_wavepix": "wavepix/jwst_niriss_soss-256-ord2_trace.fits",
    "gr700xd_3_wavepix": "wavepix/jwst_niriss_soss-256-ord3_trace.fits",
    "gr700xd_1_wavepix96": "wavepix/jwst_niriss_soss-96-ord1_trace.fits",
    "internal": "optical/jwst_niriss_internaloptics_throughput.fits",
    "ipc_kernel": "../detector/hawaii_2rg_ipc_kernel.fits",
    "qe": "../detector/jwst_niriss_h2rg_qe.fits",
    "rn_corr": "../detector/h2rg_corr.fits"
  },
  "readmode_config": {
    "meta": {
      "litref": {
        "2016-08-28": "CSA-JWST-CD0-0003 NIRISS Operations Concept Document (2016 March 31)"
      },
      "author": {
        "2016-08-28": "P. Goudfrooij"
      },
      "pedigree": {
        "2016-08-28": "NIRISS Operations Working Group"
      },
      "history": {
        "2016-08-28": "Baseline parameters that define readout patterns"
      }
    },
    "nis": {
      "nframe": 4,
      "nskip": 0
    },
    "nisrapid": {
      "nframe": 1,
      "nskip": 0
    }
  },
  "readmodes": [
    "nis",
    "nisrapid"
  ],
  "subarray_config": {
    "meta": {
      "litref": {
        "2016-08-28": "CSA-JWST-CD0-0003 NIRISS Operations Concept Document (2016 March 31)"
      },
      "author": {
        "2016-08-28": "P. Goudfrooij"
      },
      "pedigree": {
        "2016-08-28": "NIRISS Operations Working Group"
      },
      "history": {
        "2016-08-28": "Baseline values of subarray parameters"
      }
    },
    "full": {
      "nx": 2048,
      "ny": 2048,
      "tframe": 10.7368
    },
    "sub128": {
      "nx": 128,
      "ny": 128,
      "tframe": 0.1806
    },
    "sub256": {
      "nx": 256,
      "ny": 256,
      "tframe": 0.6888
    },
    "sub64": {
      "nx": 64,
      "ny": 64,
      "tframe": 0.0494
    },
    "sub80": {
      "nx": 80,
      "ny": 80,
      "tframe": 0.0745
    },
    "substrip256": {
      "nx": 256,
      "ny": 2048,
      "tframe": 5.4913
    },
    "substrip96": {
      "nx": 96,
      "ny": 2048,
      "tframe": 2.2129
    }
  },
  "subarrays": [
    "full",
    "sub256",
    "sub128",
    "sub64",
    "substrip256",
    "substrip96",
    "sub80"
  ]
}