MIRISim 2.4.2
These are the release notes for MIRISim 2.4.2. Visit the
MIRISim Releases page to find information on the latest release available.
About MIRISim
MIRISim is a Python 3 based simulator for the MIRI instrument on JWST. It can be used to simulate the Imager, the Low Resolution Spectrograph (LRS, in slit and slitless mode), and the Medium Resolution Spectrometer (MRS). It does not simulate coronographic observations.
The simulator can be run at the command line (with the aid of input files specifying the properties of the simulation), or within a Python shell (either with the same input files, or with parameters set in-line by the user). Please see the
MIRISim Overview Website for a user guide and more information on MIRISim.
MIRISim produces output as FITS files consistent with the 'level 1b' data to be produced by JWST, and which can be read into the JWST Pipeline. These data products are consistent with the MIRI sensitivity model, and are therefore representative of what users can expect from MIRI observations. Note that MIRISim cannot be used as a sensitivity calculator, and users planning observations should use exposure times derived from the JWST Exposure Time Calculator (ETC) for their proposals.
Installing MIRISim 2.4.2
To install this version of MIRISim, use
mirisim_install.bash --version 22
If you are upgrading from a previous MIRISim-MIRICLE installation, please follow the warnings on the installation page.
See
MIRISim - MIRICLE Installation page for more information on installation.
Change log
Changes since version 2.4.1:
- General
- The MIRISim-MIRICLE software distribution is now based on JWST Pipeline Build 7.9.1, i.e. jwst 1.4.3 (upgraded from B7.8.2, i.e. jwst 1.3.2).
Changes since version 2.4.0:
- General
- The MIRISim-MIRICLE software distribution is now based on JWST Pipeline Build 7.8.2, i.e. jwst 1.3.2 (upgraded from B7.7.1, i.e. jwst 1.1.0).
Changes since version 2.3.0:
- General
- The MIRISim-MIRICLE software distribution is now based on JWST Pipeline Build 7.7.1, i.e. jwst 1.1.0 (upgraded from B7.5, 0.16.2).
- Simulations should no longer show a VisibleDeprecationWarning??, following a bug fix in dependency "gwcs"
- Detector simulator SCASim now reports which FLAT CDP file is used when it needs to fall back to an alternative
- LRS
- Updated to use the latest version of LRS PHOTOM CDP files (8B.03.01)
- Updated LRS webbPSF cube to version 0.9.1, considering scatter with distinguished slitless and slit mode
- Improved normalisation of webbPSF for point sources in slit mode
User Guide
The MIRISim user guide (v.2.4) can be found here:
MIRISim.pdf
Jupyter Notebooks
The Jupyter notebooks linked below are copies of the ones appended to the User Guide, which help the user understand how to create scenes, and give example (e.g. walk through) simulations through each of the different light paths.
Known Issues
Output fluxes in MRS channel 4 are not consistent with the JWST ETC
The example simulation below shows two examples of point source simulations where the target had a flat spectral energy distribution across the MRS wavelength range (of 10 mJy in the top panel, 50 in the bottom), which were observed for 10 and 50 frames (respectively), both that the faint sources that are observed for less time will have higher noise levels in general, and that in both cases, that there is both a signal drop, and an increase in noise in channel 4 (the three spectra spanning roughly 17.6 to 28.5 microns, see the
MRS overview page from the JWST website). This phenomenon is under investigation by the MIRI team, and once understood, will be incorporated into the simulator.
MRS PSF is oversized
Cubes reconstructed with the STScI Pipeline from MIRISIM simulations (4-pt dither) of a point source show a significantly broader (~25% in RA/alpha, ~35% in Dec/Beta) PSF core than expected from the PSF CDP, as measured by the fit of a 2D-Gaussian aligned in cube space to account for the rotation between RA,Dec and alpha, beta. The attached PSF size plot (below) shows 2Dgaussian fits to the CDP v7 PSF candidate files (blue), seq1 skycubes of the simulator (these are undersampled, orange), and the reconstructed cubes from the STScI pipeline for simulated data using both the CDP v5 (red) and CDPv7 (green).
There are flux discrepancies increasing at longer wavelengths when input flux is compared to the pipeline results or ETC results. This mis-match is being investigated.
Simulation of some detector effects is approximate
The simulation of detector latency and drift uses a charge trapping and release model derived from ground-based measurements made in FAST mode. The model is more accurate at a timescale of around 300s, but at much longer or much shorter timescales our model is an approximation. Latent and drift effects are turned off in SLOW mode, as we don't yet have reliable measurements in that mode. The latent and drift effects seen in flight will depend on the complete history of the illumination incident on the MIRI detectors, whereas the MIRI simulator begins with a "zero trapped charge" initial condition. The latent decay during wait periods between observations and dither manoeuvres is currently not simulated correctly, as the detector is assumed not to be illuminated, and the wait time interval is not the same as in FAST mode.
Detector nonlinearity is simulated by applying an inverse of the function defined in the nonlinearity CDP. This effect should cancel out when the same CDP is used by the
JWST Pipeline to correct the nonlinearity. Our tests show the two algorithms mostly cancel out, but there are two residual effects we are still investigating:
- In MRS simulations, there is a slight difference remaining in 3B, 4A, 4B and 4C aperture spectra but these are within 5% up to 4A and less than 10% in 4B and half-way into 4C.
- The continuum level in these MRS channels is higher than expected by about 10%. This may be related to the other flux issues mentioned above.
Note that the detector bias level (i.e. minimum DN) simulated by SCASim is arbitrary. Turning a simulated effect on or off can change the bias level (since many effects are applied by adding them). The bias level may appear to be different for FAST and SLOW mode, but this is only because zero-point drift is simulated in FAST mode only. This difference does not affect the final result, since the relative change in DN will be the same.
It has been observed that MRS simulations using the FAST readout mode contain excess noise on the integration ramps. This excess can lead to significant erroneous cosmic ray flagging during pipeline processing, resulting in excess noise in slope images, cubes, and extracted spectra. This effect is under investigation by the MIRI team. A workaround for this issue is to turn the readnoise off for MRS FAST mode simulations by setting 'include_readnoise = F' in your simulator.ini configuration file and passing it to mirisim using the --config switch, e.g. mirisim mrs_simulation.ini --scene scene.ini --config simulator.ini
Simulation of galaxies much smaller than a pixel size may lead to memory overflow
Simulating of a high number of extremely tiny extended sources (galaxies) much smaller than a pixel size 0.1” may lead to memory overflow. The fix is on the way under testing and will occur in a patch soon. Until then a workaround is to replace the very tiny galaxies by point sources with the same SED.
Highly redshifted spectra
When placing a highly red-shifted (z > 0.5) object into a scene, the user should not include any velocity component in the definition of the source. Set v or z, but not both.
Imager coronagraphic fields
The coronagraphic fields included in the imager field of view have been provided primarily to identify any (bright) sources which may fall in the fields but cause problems for the LRS or imaging. The fields do not simulate any coronagraphic functionality and so do not show the 4QPM nulling pattern. Future versions may include the small (>= 0.95) transmission factor for the 4QPM optical elements.
Vertical striping
JWST Pipeline reduction of MRS simulated data may show vertical striping, which is suspected to be introduced by an inconsistent handling of reference pixels in the DARK reference files. It is under investigation; until there is a fix, it is recommended that Pipeline users disable the "refpix" step.