{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Appendix: Walk through of MIRISim (LRS-slit)\n", "\n", "In this notebook, we create a scene with a circle of point sources around a central galaxy (that all fit within the Imager field of view), and run through a MIRISim simulation showing the products created at each stage.\n", "\n", "**NOTE** this notebook must be started within the mirisim anaconda environment. This is a pre-requist for using MIRISim, and installation instructions can be found [here](https://wiki.miricle.org/Public/MirisimInstallation).\n", "\n", "When launching the notebook, make sure you've run the appropriate version of \n", "\n", " conda activate mirisim \n", "\n", "\n", "in the terminal before starting the notebook.\n", "\n", "### Steps in this notebook:\n", "\n", "1. Create a Scene\n", "2. Initialise the simulation parameters\n", "3. run the simulation\n", "4. examine some of the outputs.\n", "\n", " " ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "# import the configuration file parsers so they can be written to file\n", "from mirisim.config_parser import SimConfig, SimulatorConfig, SceneConfig\n", "\n", "# import scene component generators\n", "from mirisim.skysim import Background, sed, Point, Galaxy, kinetics\n", "from mirisim.skysim import wrap_pysynphot as wS\n", "\n", "from mirisim import MiriSimulation\n", "\n", "#other things to be used\n", "import numpy as np\n", "import glob # glob is used to find the output directory\n", "import os # for listing directory contents\n", "from astropy.io import fits # for reading FITS file contents\n", "\n", "import matplotlib.pyplot as plt # to display images\n", "from matplotlib import colors,cm\n", "%matplotlib inline " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Create a Scene\n", "\n", "The scene created below consists of a circle of point sources surrounding a Galaxy,and a low level background, all of which fit within the main imager field of view. The point sources all have the same (blackbody) SEDs to make things simple. The galaxy as a pysynphot SED which is modified by a Keplerian velocity field.\n", "\n", "to be able to simply add the point sources ('stars') to a scene, it first needs to be initialised with a background" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Create the background emission" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "2020-08-04 15:05:19,381 - INFO - Initializing Background\n" ] } ], "source": [ "bg = Background(level = 'low', gradient = 5., pa = 45.)\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Create a circle of point sources\n", "\n", "These points will be put into a 'compound target list' for simplicity later. This list needs to be initialised, so the first thing will be to create a single point source, which is placed to fall into the LRS slit.\n" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "2020-08-04 15:05:19,390 - INFO - Initializing Point\n", "2020-08-04 15:05:19,391 - INFO - Initializing Point\n" ] } ], "source": [ "# create point source objects across the Imager Field of View\n", "def create_star(xpos,ypos):\n", " star = Point(Cen = (xpos,ypos))\n", " BBparams = {'Temp': 1e4,\n", " 'wref': 10.,\n", " 'flux': 7e8}\n", " Blackbody = sed.BBSed(**BBparams)\n", " star.set_SED(Blackbody)\n", " \n", " return star\n", "\n", " \n", "# create a single point source at the position of the LRS slit, \n", "# and another at the LRS slitless position. The positions of the slit\n", "# and slitless targets (in pixels) come from figure 2 of \n", "# Kendrew et al. (2015) (MIRI PASP series #4)\n", "\n", "center_pixel = (692,512) # center of the array (in pixel coordinates)\n", "slit_pixel = (321,512) # centering pixel for the slit \n", "slitless_pixel = (1,529) # centering pixel for slitless observations\n", "pixel_scale = 0.11 #arcsec/pixel\n", "\n", "\n", "slit_star = create_star(\n", " (center_pixel[0]-slit_pixel[0])*pixel_scale,\n", " (center_pixel[1]-slit_pixel[1])*pixel_scale)\n", "slitless_star = create_star(\n", " (center_pixel[0]-slitless_pixel[0])*pixel_scale,\n", " (center_pixel[1]-slitless_pixel[1])*pixel_scale)\n", "\n", "# add these two stars to the compound target list called 'stars'\n", "stars = slit_star + slitless_star\n", "# for writing to scene.ini file\n", "targetlist = [slit_star,slitless_star]\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Create the Galaxy" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "2020-08-04 15:05:19,399 - INFO - Initializing Galaxy\n", "2020-08-04 15:05:19,400 - INFO - Initializing Galaxy\n", "2020-08-04 15:05:19,400 - INFO - Initializing Galaxy\n", "2020-08-04 15:05:19,451 - INFO - Initializing FlatDisk\n", "2020-08-04 15:05:19,452 - INFO - Initializing Losvd\n" ] } ], "source": [ "\n", "# initialise the galaxy with a position\n", "galaxy = Galaxy(Cen = (0.,0.),n=1.,re=1.,q=0.4,pa=0)\n", "\n", "# set the properties of the SED\n", "PYSPsedDict = {'family': 'bkmodels', 'sedname': 'bk_b0005', 'flux': 1E+5, 'wref': 10.}\n", "# read that dictionary into the pysynphot interpreter\n", "sedE = wS.PYSPSed(**PYSPsedDict)\n", "# add the SED to the galaxy\n", "galaxy.set_SED(sedE)\n", "\n", "# create a velocity mapping for the SED\n", "VMAPpars = {'vrot': 200., 'Cen': (0., 0.), 'pa': 0., 'q': 0.4, 'c': 0}\n", "VelocityMap = kinetics.FlatDisk(**VMAPpars)\n", "# add the velocity map to the galaxy\n", "galaxy.set_velomap(VelocityMap)\n", "\n", "# add a line of sight velocity distribution to the galaxy\n", "losVeloDist = kinetics.Losvd(sigma=200.,h3=0.,h4=0.)\n", "galaxy.set_LOSVD(losVeloDist)\n", "\n", "\n", "\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### From the components, create a scene\n", "\n", "create a scene is as simple as adding together the targets." ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [], "source": [ "scene = bg + stars + galaxy\n", "\n", "# for writing to scene.ini file\n", "targetlist.append(galaxy)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Export the scene to an ini file and FITS\n", "\n", "The scene can also be exported to an ini file (for future use), or a FITS file to be visualised.\n", "\n", "Exporting to a FITS file requires specifing a number of additional parametrs such as the Field of View, required spectral sampling, etc. They're described in more detail below. For large fields of view, and/or small spectral channels, which create large FITS files, writing to a FITS file can take a while (few minutes)\n", "\n" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [], "source": [ "## export to ini file\n", "\n", "scene_config = SceneConfig.makeScene(loglevel=0,\n", " background=bg,\n", " targets = targetlist)\n", "\n", "os.system('rm LRS_example_scene.ini')\n", "scene_config.write('LRS_example_scene.ini')\n", "\n", "## export to FITS file\n", "FOV = np.array([[-57.,57.],[-57.,57.]]) # field of view [xmin,xmax],[ymin,ymax] (in arcsec)\n", "SpatialSampling = 0.1 # spatial sampling (in arcsec)\n", "WavelengthRange = [5,10] # wavelength range to process (in microns)\n", "WavelengthSampling = 0.2 # channel width (in microns)\n", "\n", "\n", "# overwrite = True enables overwriting of any previous version of the fits file\n", "# with the same name as that given in the writecube command\n", "scene.writecube(cubefits = 'LRS_example_scene.fits',\n", " FOV = FOV, time = 0.0,\n", " spatsampling = SpatialSampling,\n", " wrange = WavelengthRange,\n", " wsampling = WavelengthSampling,\n", " overwrite = True) \n", "\n", "\n" ] }, { "cell_type": "markdown", "metadata": { "collapsed": true }, "source": [ "## Initialise the Simulation Parameters\n", "\n", "This is where the parameters for the MRS simulation get set. Note that for internal consistency in MIRISim, all settings (including those not used in the MRS simulation here) must be set. Those not being used in this simulation are labelled with NOT USED HERE in the comments of each line" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [], "source": [ "sim_config = SimConfig.makeSim(\n", " name = 'ima_simulation', # name given to simulation\n", " scene = 'LRS_example_scene.ini', # name of scene file to input\n", " rel_obsdate = 0.0, # relative observation date (0 = launch, 1 = end of 5 yrs)\n", " POP = 'IMA', # Component on which to center (Imager or MRS)\n", " ConfigPath = 'LRS_SLIT', # Configure the Optical path (MRS sub-band)\n", " Dither = False, # Don't Dither\n", " StartInd = 1, # start index for dither pattern [NOT USED HERE]\n", " NDither = 2, # number of dither positions [NOT USED HERE]\n", " DitherPat = 'ima_recommended_dither.dat', # dither pattern to use [NOT USED HERE]\n", " disperser = 'SHORT', # [NOT USED HERE]\n", " detector = 'SW', # [NOT USED HERE]\n", " mrs_mode = 'SLOW', # [NOT USED HERE]\n", " mrs_exposures = 2, # [NOT USED HERE]\n", " mrs_integrations = 3, # [NOT USED HERE]\n", " mrs_frames = 5, # [NOT USED HERE]\n", " ima_exposures = 1, # number of exposures\n", " ima_integrations = 1, # number of integrations\n", " ima_frames = 5, # number of groups (for MIRI, # Groups = # Frames)\n", " ima_mode = 'FAST', # Imager read mode (default is FAST ~ 2.3 s)\n", " filter = 'P750L', # Imager Filter to use\n", " readDetect = 'FULL' # Portion of detector to read out\n", ")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Export the simulation setup to a file" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [], "source": [ "os.system('rm LRS_simulation.ini')\n", "sim_config.write('LRS_simulation.ini')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Run the simulation\n", "\n", "Now that the scene and the setup of the simulation have been set, we can run the simulation.\n", "\n", "the last step is to setup the defaults for internal things like CDPs." ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "2020-08-04 15:06:51,457 - INFO - MIRISim version: 2.3.0b0\n", "2020-08-04 15:06:51,459 - INFO - MIRI Simulation started.\n", "2020-08-04 15:06:51,459 - INFO - Output will be saved to: 20200804_150651_mirisim\n", "2020-08-04 15:06:51,460 - INFO - Storing configs in output directory.\n", "2020-08-04 15:06:52,124 - miri.simulators - INFO - Reading cosmic ray properties from parameter file /Users/pamelaklaassen/opt/anaconda3/envs/miricle.test/lib/python3.7/site-packages/miri/simulators/scasim/cosmic_ray_properties.py\n", "2020-08-04 15:06:52,129 - miri.simulators - INFO - Reading detector properties from parameter file /Users/pamelaklaassen/opt/anaconda3/envs/miricle.test/lib/python3.7/site-packages/miri/simulators/scasim/detector_properties.py\n", "2020-08-04 15:06:52,134 - miri.simulators - DEBUG - Found simulator file: dark_currentIM.fits\n", "2020-08-04 15:06:52,135 - miri.simulators - DEBUG - \tat /Users/pamelaklaassen/opt/anaconda3/envs/miricle.test/lib/python3.7/site-packages/miri/simulators/data/detector/dark_currentIM.fits\n", "2020-08-04 15:06:52,136 - miri.simulators - DEBUG - Found simulator file: qe_measurementIM.fits\n", "2020-08-04 15:06:52,137 - miri.simulators - DEBUG - \tat /Users/pamelaklaassen/opt/anaconda3/envs/miricle.test/lib/python3.7/site-packages/miri/simulators/data/detector/qe_measurementIM.fits\n", "2020-08-04 15:06:52,139 - miri.simulators - DEBUG - Found simulator file: dark_currentLW.fits\n", "2020-08-04 15:06:52,140 - miri.simulators - DEBUG - \tat /Users/pamelaklaassen/opt/anaconda3/envs/miricle.test/lib/python3.7/site-packages/miri/simulators/data/detector/dark_currentLW.fits\n", "2020-08-04 15:06:52,143 - miri.simulators - DEBUG - Found simulator file: qe_measurementLW.fits\n", "2020-08-04 15:06:52,143 - miri.simulators - DEBUG - \tat /Users/pamelaklaassen/opt/anaconda3/envs/miricle.test/lib/python3.7/site-packages/miri/simulators/data/detector/qe_measurementLW.fits\n", "2020-08-04 15:06:52,145 - miri.simulators - DEBUG - Found simulator file: dark_currentSW.fits\n", "2020-08-04 15:06:52,146 - miri.simulators - DEBUG - \tat /Users/pamelaklaassen/opt/anaconda3/envs/miricle.test/lib/python3.7/site-packages/miri/simulators/data/detector/dark_currentSW.fits\n", "2020-08-04 15:06:52,149 - miri.simulators - DEBUG - Found simulator file: qe_measurementSW.fits\n", "2020-08-04 15:06:52,149 - miri.simulators - DEBUG - \tat /Users/pamelaklaassen/opt/anaconda3/envs/miricle.test/lib/python3.7/site-packages/miri/simulators/data/detector/qe_measurementSW.fits\n", "2020-08-04 15:06:52,154 - miri.simulators - DEBUG - Found simulator file: dark_currentIM.fits\n", "2020-08-04 15:06:52,155 - miri.simulators - DEBUG - \tat /Users/pamelaklaassen/opt/anaconda3/envs/miricle.test/lib/python3.7/site-packages/miri/simulators/data/detector/dark_currentIM.fits\n", "2020-08-04 15:06:52,157 - miri.simulators - DEBUG - Found simulator file: qe_measurementIM.fits\n", "2020-08-04 15:06:52,157 - miri.simulators - DEBUG - \tat /Users/pamelaklaassen/opt/anaconda3/envs/miricle.test/lib/python3.7/site-packages/miri/simulators/data/detector/qe_measurementIM.fits\n", "2020-08-04 15:06:52,160 - miri.simulators - DEBUG - Found simulator file: dark_currentLW.fits\n", "2020-08-04 15:06:52,161 - miri.simulators - DEBUG - \tat /Users/pamelaklaassen/opt/anaconda3/envs/miricle.test/lib/python3.7/site-packages/miri/simulators/data/detector/dark_currentLW.fits\n", "2020-08-04 15:06:52,163 - miri.simulators - DEBUG - Found simulator file: qe_measurementLW.fits\n", "2020-08-04 15:06:52,164 - miri.simulators - DEBUG - \tat /Users/pamelaklaassen/opt/anaconda3/envs/miricle.test/lib/python3.7/site-packages/miri/simulators/data/detector/qe_measurementLW.fits\n", "2020-08-04 15:06:52,166 - miri.simulators - DEBUG - Found simulator file: dark_currentSW.fits\n", "2020-08-04 15:06:52,167 - miri.simulators - DEBUG - \tat /Users/pamelaklaassen/opt/anaconda3/envs/miricle.test/lib/python3.7/site-packages/miri/simulators/data/detector/dark_currentSW.fits\n", "2020-08-04 15:06:52,170 - miri.simulators - DEBUG - Found simulator file: qe_measurementSW.fits\n", "2020-08-04 15:06:52,171 - miri.simulators - DEBUG - \tat /Users/pamelaklaassen/opt/anaconda3/envs/miricle.test/lib/python3.7/site-packages/miri/simulators/data/detector/qe_measurementSW.fits\n", "2020-08-04 15:06:52,202 - INFO - Storing dither pattern in output directory.\n", "2020-08-04 15:06:52,203 - INFO - Using $CDP_DIR for location of CDP files: /USERS/pamelaklaassen/WORK/MIRI/DHAS/CDP\n", "2020-08-04 15:06:52,204 - mirisim.obssim.obssim - DEBUG - Initializing ObservationSimulation\n", "2020-08-04 15:06:52,205 - mirisim.obssim.obssim - INFO - Setting up simulated Observation, with following settings:\n", "2020-08-04 15:06:52,205 - mirisim.obssim.obssim - INFO - Configuration Path: LRS_SLIT\n", "2020-08-04 15:06:52,206 - mirisim.obssim.obssim - INFO - Primary optical path: IMA\n", "2020-08-04 15:06:52,207 - mirisim.obssim.obssim - INFO - IMA Filter: P750L\n", "2020-08-04 15:06:52,208 - mirisim.obssim.obssim - INFO - IMA Subarray: FULL\n", "2020-08-04 15:06:52,209 - mirisim.obssim.obssim - INFO - IMA detector readout mode: FAST\n", "2020-08-04 15:06:52,209 - mirisim.obssim.obssim - INFO - IMA detector # exposures: 1\n", "2020-08-04 15:06:52,210 - mirisim.obssim.obssim - INFO - IMA detector # integrations: 1\n", "2020-08-04 15:06:52,211 - mirisim.obssim.obssim - INFO - IMA detector # frames: 5\n", "2020-08-04 15:06:52,212 - INFO - Parsing: Background\n", "2020-08-04 15:06:52,213 - INFO - Initializing Background\n", "2020-08-04 15:06:52,213 - INFO - Parsing: point_1\n", "2020-08-04 15:06:52,214 - INFO - Initializing Point\n", "2020-08-04 15:06:52,215 - INFO - Parsing: point_2\n", "2020-08-04 15:06:52,216 - INFO - Initializing Point\n", "2020-08-04 15:06:52,217 - INFO - Parsing: galaxy_1\n", "2020-08-04 15:06:52,219 - INFO - Initializing Galaxy\n", "2020-08-04 15:06:52,220 - INFO - Initializing Galaxy\n", "2020-08-04 15:06:52,220 - INFO - Initializing Galaxy\n", "2020-08-04 15:06:52,421 - INFO - Initializing FlatDisk\n", "2020-08-04 15:06:52,422 - INFO - Initializing Losvd\n", "2020-08-04 15:06:52,430 - mirisim.obssim.clock - DEBUG - Initializing Clock\n", "2020-08-04 15:06:52,432 - mirisim.obssim.obssim - INFO - Simulating a single pointing.\n", "2020-08-04 15:06:56,975 - mirisim.cdp.get_cdp - INFO - Reading 'DISTORTION' model from '/USERS/pamelaklaassen/WORK/MIRI/DHAS/CDP/MIRI_FM_MIRIMAGE_P750L_DISTORTION_07.02.00.fits'\n", "2020-08-04 15:06:57,732 - mirisim.cdp.get_cdp - INFO - Reading 'DISTORTION' model from '/USERS/pamelaklaassen/WORK/MIRI/DHAS/CDP/MIRI_FM_MIRIMAGE_DISTORTION_07.04.01.fits'\n", "2020-08-04 15:06:57,881 - mirisim.cdp.get_cdp - INFO - Reading 'DISTORTION' model from '/USERS/pamelaklaassen/WORK/MIRI/DHAS/CDP/MIRI_FM_MIRIMAGE_DISTORTION_07.04.01.fits'\n", "2020-08-04 15:06:57,998 - mirisim.cdp.get_cdp - INFO - Reading 'DISTORTION' model from '/USERS/pamelaklaassen/WORK/MIRI/DHAS/CDP/MIRI_FM_MIRIMAGE_P750L_DISTORTION_07.02.00.fits'\n", "/Users/pamelaklaassen/opt/anaconda3/envs/miricle.test/lib/python3.7/site-packages/gwcs/wcs.py:131: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray\n", " transforms = np.array(self._pipeline[from_ind: to_ind])[:, 1].copy()\n", "2020-08-04 15:06:58,078 - mirisim.obssim.obssim - INFO - Creating pointing for position 1\n", "2020-08-04 15:06:58,079 - mirisim.obssim.obssim - INFO - Creating exposure event for position 1\n", "2020-08-04 15:06:58,080 - mirisim.obssim.event - DEBUG - Initializing ExposureEvent\n", "2020-08-04 15:06:58,081 - mirisim.cdp.get_cdp - INFO - Reading 'DISTORTION' model from '/USERS/pamelaklaassen/WORK/MIRI/DHAS/CDP/MIRI_FM_MIRIMAGE_P750L_DISTORTION_07.02.00.fits'\n", "2020-08-04 15:06:58,147 - mirisim.cdp.get_cdp - INFO - Reading 'DISTORTION' model from '/USERS/pamelaklaassen/WORK/MIRI/DHAS/CDP/MIRI_FM_MIRIMAGE_DISTORTION_07.04.01.fits'\n", "2020-08-04 15:06:58,270 - mirisim.cdp.get_cdp - INFO - Reading 'DISTORTION' model from '/USERS/pamelaklaassen/WORK/MIRI/DHAS/CDP/MIRI_FM_MIRIMAGE_P750L_DISTORTION_07.02.00.fits'\n", "2020-08-04 15:06:58,324 - mirisim.cdp.get_cdp - INFO - Reading 'DISTORTION' model from '/USERS/pamelaklaassen/WORK/MIRI/DHAS/CDP/MIRI_FM_MIRIMAGE_DISTORTION_07.04.01.fits'\n", "2020-08-04 15:06:58,436 - mirisim.obssim.exposure - DEBUG - Initializing LrsExposure\n", "2020-08-04 15:06:58,437 - mirisim.obssim.obssim - INFO - Observation simulation started.\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "2020-08-04 15:06:58,438 - mirisim.obssim.event - INFO - Simulating ExposureEvent for pointing 1\n", "2020-08-04 15:06:58,439 - mirisim.obssim.event - DEBUG - Start time of ExposureEvent: 2019-01-01 17:00:00\n", "2020-08-04 15:06:58,440 - mirisim.obssim.exposure - INFO - Simulating Lrs exposures for pointing 1\n", "2020-08-04 15:06:58,440 - mirisim.obssim.exposure - INFO - Simulating detector illumination for LRS exposures for pointing 1\n", "2020-08-04 15:06:58,442 - mirisim.lrssim.lrs - INFO - lrs simulator processing cfgpath=LRS_SLIT\n", "2020-08-04 15:06:58,443 - mirisim.lrssim.lrs - INFO - lrssim takes CDP PSF\n", "2020-08-04 15:06:58,444 - mirisim.cdp.get_cdp - INFO - Reading 'DISTORTION' model from '/USERS/pamelaklaassen/WORK/MIRI/DHAS/CDP/MIRI_FM_MIRIMAGE_P750L_DISTORTION_07.02.00.fits'\n", "2020-08-04 15:06:58,570 - mirisim.lrssim.lrs_extend - INFO - use PHOTOM (SRF) CDP to convert flux\n", "2020-08-04 15:06:58,573 - mirisim.cdp.get_cdp - INFO - Reading 'PHOTOM' model from '/USERS/pamelaklaassen/WORK/MIRI/DHAS/CDP/MIRI_FM_MIRIMAGE_P750L_PHOTOM_8B.03.00.fits'\n", "2020-08-04 15:06:58,666 - mirisim.cdp.get_cdp - INFO - Reading 'AREA' model from '/USERS/pamelaklaassen/WORK/MIRI/DHAS/CDP/MIRI_FM_MIRIMAGE_AREA_07.00.00.fits'\n", "2020-08-04 15:06:58,706 - mirisim.lrssim.lrs - INFO - v2_ref= -415.069047, v3_ref=-400.575920 , v2_off=0.000000, v3_off=0.000000, pa=0.000000\n", "2020-08-04 15:06:58,707 - mirisim.cdp.get_cdp - INFO - Reading 'DISTORTION' model from '/USERS/pamelaklaassen/WORK/MIRI/DHAS/CDP/MIRI_FM_MIRIMAGE_DISTORTION_07.04.01.fits'\n", "2020-08-04 15:06:58,814 - mirisim.cdp.get_cdp - INFO - Reading 'DISTORTION' model from '/USERS/pamelaklaassen/WORK/MIRI/DHAS/CDP/MIRI_FM_MIRIMAGE_P750L_DISTORTION_07.02.00.fits'\n", "/Users/pamelaklaassen/opt/anaconda3/envs/miricle.test/lib/python3.7/site-packages/gwcs/wcs.py:126: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray\n", " transforms = np.array(self._pipeline[to_ind: from_ind])[:, 1].tolist()\n", "2020-08-04 15:06:58,972 - mirisim.cdp.get_cdp - INFO - Reading 'PSF' model from '/USERS/pamelaklaassen/WORK/MIRI/DHAS/CDP/MIRI_FM_MIRIMAGE_P750L_PSF_07.04.00.fits'\n", "2020-08-04 15:06:59,128 - mirisim.lrssim.LrsArrayMask - INFO - Retrieving file for Lrs Array Mask: FocalPlaneMask\n", "2020-08-04 15:06:59,163 - mirisim.lrssim.lrs - INFO - 2 point sources in scene\n", "2020-08-04 15:06:59,164 - mirisim.lrssim.lrs - INFO - point source no: 0\n", "2020-08-04 15:06:59,165 - mirisim.lrssim.lrs - INFO - lrs simulator processing in get_point_int in mirisim.lrssim.lrs\n", "2020-08-04 15:06:59,180 - mirisim.lrssim.lrs - INFO - xcenter -42.87364336671749\n", "2020-08-04 15:06:59,180 - mirisim.lrssim.lrs - INFO - ycenter 330.67007377422743\n", "2020-08-04 15:06:59,181 - mirisim.lrssim.lrs - INFO - xdiff -368.0036433667175\n", "2020-08-04 15:06:59,181 - mirisim.lrssim.lrs - INFO - ydiff 30.970073774227444\n", "2020-08-04 15:06:59,182 - mirisim.lrssim.lrs - WARNING - point source could be outside the slit in spectral direction\n", "2020-08-04 15:06:59,230 - mirisim.lrssim.lrs - INFO - point source no: 1\n", "2020-08-04 15:06:59,230 - mirisim.lrssim.lrs - INFO - lrs simulator processing in get_point_int in mirisim.lrssim.lrs\n", "2020-08-04 15:06:59,245 - mirisim.lrssim.lrs - INFO - xcenter -362.28429457577647\n", "2020-08-04 15:06:59,246 - mirisim.lrssim.lrs - INFO - ycenter 340.52043426203187\n", "2020-08-04 15:06:59,246 - mirisim.lrssim.lrs - INFO - xdiff -687.4142945757765\n", "2020-08-04 15:06:59,247 - mirisim.lrssim.lrs - INFO - ydiff 40.82043426203188\n", "2020-08-04 15:06:59,247 - mirisim.lrssim.lrs - WARNING - point source could be outside the slit in spectral direction\n", "2020-08-04 15:06:59,287 - mirisim.lrssim.lrs - INFO - lrs simulator processing in get_extended_from_scene_lrs in mirisim.lrssim.lrs\n", "2020-08-04 15:06:59,287 - mirisim.lrssim.lrs - INFO - 1 extended sources available in scene\n", "2020-08-04 15:06:59,288 - mirisim.lrssim.lrs - INFO - extended source no: 0\n", "2020-08-04 15:06:59,710 - mirisim.lrssim.lrs - INFO - lrs simulator processing in extract_sky_cube in mirisim.lrssim.lrs\n", "2020-08-04 15:06:59,710 - mirisim.lrssim.lrs - INFO - no scenecube sources in scene\n", "2020-08-04 15:06:59,711 - mirisim.lrssim.lrs - INFO - no fits skyCube sources are computed\n", "2020-08-04 15:06:59,711 - mirisim.lrssim.lrs - INFO - lrs simulator processing in get_background_from_scene_lrs in mirisim.lrssim.lrs\n", "2020-08-04 15:06:59,712 - mirisim.lrssim.lrs - INFO - 1 backgrounds available in scene\n", "2020-08-04 15:07:00,455 - mirisim.obssim.exposure - INFO - Wrote illumination model: 20200804_150651_mirisim/illum_models/illum_model_seq1_MIRIMAGE_P750L.fits\n", "2020-08-04 15:07:00,456 - mirisim.obssim.exposure - INFO - Simulating integrated detector images for LRS exposures for pointing 1\n", "2020-08-04 15:07:00,457 - mirisim.obssim.exposure - INFO - Simulating LRS exposure 1\n", "2020-08-04 15:07:00,461 - mirisim.obssim.scasim - INFO - Running SCASim\n", "2020-08-04 15:07:00,461 - miri.simulators.scasim - INFO - Simulating detector readout for MIRIMAGE from illumination data model of shape (1024, 1032).\n", "2020-08-04 15:07:00,474 - miri.simulators.scasim - DEBUG - Metadata\n", "2020-08-04 15:07:00,474 - miri.simulators.scasim - DEBUG - Data model location FITS key Value Comment\n", "2020-08-04 15:07:00,475 - miri.simulators.scasim - DEBUG - ~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~~ ~~~~~~~\n", "2020-08-04 15:07:00,476 - miri.simulators.scasim - DEBUG - meta.coordinates.reference_frame | RADESYS = ICRS / Name of the coordinate reference frame\n", "2020-08-04 15:07:00,476 - miri.simulators.scasim - DEBUG - meta.date | DATE = 2020-08-04T15:07:00.356 / Date this file was created (UTC)\n", "2020-08-04 15:07:00,477 - miri.simulators.scasim - DEBUG - meta.exposure.nframes | NFRAMES = 1 / Number of frames coadded in a group\n", "2020-08-04 15:07:00,477 - miri.simulators.scasim - DEBUG - meta.filename | FILENAME = illum_model_seq1_MIRIMAGE_P750L.fits / Name of the file\n", "2020-08-04 15:07:00,478 - miri.simulators.scasim - DEBUG - meta.filetype | FILETYPE = ILLUMINATION / Type of data in the file\n", "2020-08-04 15:07:00,478 - miri.simulators.scasim - DEBUG - meta.instrument.ccc_state | CCCSTATE = OPEN / Contamination control cover state\n", "2020-08-04 15:07:00,479 - miri.simulators.scasim - DEBUG - meta.instrument.detector | DETECTOR = MIRIMAGE / Name of detector used to acquire the data\n", "2020-08-04 15:07:00,480 - miri.simulators.scasim - DEBUG - meta.instrument.detector_settings | DETSETNG = N/A / Detector settings used\n", "2020-08-04 15:07:00,481 - miri.simulators.scasim - DEBUG - meta.instrument.filter | FILTER = P750L / Filter used by the instrument (imaging)\n", "2020-08-04 15:07:00,481 - miri.simulators.scasim - DEBUG - meta.instrument.model | MODELNAM = FM / Instrument model name\n", "2020-08-04 15:07:00,482 - miri.simulators.scasim - DEBUG - meta.instrument.name | INSTRUME = MIRI / Instrument used to acquire the data\n", "2020-08-04 15:07:00,482 - miri.simulators.scasim - DEBUG - meta.model_type | DATAMODL = / Type of data model\n", "2020-08-04 15:07:00,483 - miri.simulators.scasim - DEBUG - meta.observation.date | DATE-OBS = 2020-08-04T15:07:00.193 / [yyyy-mm-dd] UTC date at start of exposure\n", "2020-08-04 15:07:00,484 - miri.simulators.scasim - DEBUG - meta.pointing.dec_v1 | DEC_V1 = 0.11127108899959638 / Dec of telescope V1 axis [deg]\n", "2020-08-04 15:07:00,485 - miri.simulators.scasim - DEBUG - meta.pointing.pa_v3 | PA_V3 = -0.0 / Position angle of telescope V3 axis [deg]\n", "2020-08-04 15:07:00,486 - miri.simulators.scasim - DEBUG - meta.pointing.ra_v1 | RA_V1 = 0.1152969573922563 / RA of telescope V1 axis [deg]\n", "2020-08-04 15:07:00,486 - miri.simulators.scasim - DEBUG - meta.subarray.fastaxis | FASTAXIS = 1 / Fast readout axis direction\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "2020-08-04 15:07:00,487 - miri.simulators.scasim - DEBUG - meta.subarray.name | SUBARRAY = FULL / Subarray used\n", "2020-08-04 15:07:00,488 - miri.simulators.scasim - DEBUG - meta.subarray.slowaxis | SLOWAXIS = 2 / Slow readout axis direction\n", "2020-08-04 15:07:00,489 - miri.simulators.scasim - DEBUG - meta.subarray.xsize | SUBSIZE1 = 1032 / Number of pixels in axis 1 direction\n", "2020-08-04 15:07:00,490 - miri.simulators.scasim - DEBUG - meta.subarray.xstart | SUBSTRT1 = 1 / Starting pixel in axis 1 direction\n", "2020-08-04 15:07:00,490 - miri.simulators.scasim - DEBUG - meta.subarray.ysize | SUBSIZE2 = 1024 / Number of pixels in axis 2 direction\n", "2020-08-04 15:07:00,491 - miri.simulators.scasim - DEBUG - meta.subarray.ystart | SUBSTRT2 = 1 / Starting pixel in axis 2 direction\n", "2020-08-04 15:07:00,492 - miri.simulators.scasim - DEBUG - meta.telescope | TELESCOP = JWST / Telescope used to acquire the data\n", "2020-08-04 15:07:00,492 - miri.simulators.scasim - DEBUG - meta.wcsinfo.cdelt1 | CDELT1 = 1.0 / Axis 1 increment per pixel\n", "2020-08-04 15:07:00,493 - miri.simulators.scasim - DEBUG - meta.wcsinfo.cdelt2 | CDELT2 = 1.0 / Axis 2 increment per pixel\n", "2020-08-04 15:07:00,493 - miri.simulators.scasim - DEBUG - meta.wcsinfo.cdelt3 | CDELT3 = 1.0 / Axis 3 increment per pixel\n", "2020-08-04 15:07:00,494 - miri.simulators.scasim - DEBUG - meta.wcsinfo.crpix1 | CRPIX1 = 0 / Axis 1 coordinate of the reference pixel\n", "2020-08-04 15:07:00,495 - miri.simulators.scasim - DEBUG - meta.wcsinfo.crpix2 | CRPIX2 = 0 / Axis 2 coordinate of the reference pixel\n", "2020-08-04 15:07:00,496 - miri.simulators.scasim - DEBUG - meta.wcsinfo.crpix3 | CRPIX3 = 0 / Axis 3 coordinate of the reference pixel\n", "2020-08-04 15:07:00,496 - miri.simulators.scasim - DEBUG - meta.wcsinfo.crval1 | CRVAL1 = 0.0 / Axis 1 value at the reference pixel\n", "2020-08-04 15:07:00,497 - miri.simulators.scasim - DEBUG - meta.wcsinfo.crval2 | CRVAL2 = 0.0 / Axis 2 value at the reference pixel\n", "2020-08-04 15:07:00,498 - miri.simulators.scasim - DEBUG - meta.wcsinfo.crval3 | CRVAL3 = 0.0 / Axis 3 value at the reference pixel\n", "2020-08-04 15:07:00,498 - miri.simulators.scasim - DEBUG - meta.wcsinfo.ctype1 | CTYPE1 = / Axis 1 coordinate type\n", "2020-08-04 15:07:00,499 - miri.simulators.scasim - DEBUG - meta.wcsinfo.ctype2 | CTYPE2 = / Axis 2 coordinate type\n", "2020-08-04 15:07:00,500 - miri.simulators.scasim - DEBUG - meta.wcsinfo.ctype3 | CTYPE3 = / Axis 3 coordinate type\n", "2020-08-04 15:07:00,500 - miri.simulators.scasim - DEBUG - meta.wcsinfo.dec_ref | DEC_REF = 0.0 / Declination of the reference point (deg)\n", "2020-08-04 15:07:00,501 - miri.simulators.scasim - DEBUG - meta.wcsinfo.ra_ref | RA_REF = 0.0 / Right ascension of the reference point (deg)\n", "2020-08-04 15:07:00,502 - miri.simulators.scasim - DEBUG - meta.wcsinfo.roll_ref | ROLL_REF = -0.0 / Telescope roll angle of V3 measured from North over East at the ref. point (deg)\n", "2020-08-04 15:07:00,502 - miri.simulators.scasim - DEBUG - meta.wcsinfo.v2_ref | V2_REF = -415.0690466121227 / Telescope v2 coordinate of the reference point (arcsec)\n", "2020-08-04 15:07:00,503 - miri.simulators.scasim - DEBUG - meta.wcsinfo.v3_ref | V3_REF = -400.575920398547 / Telescope v3 coordinate of the reference point (arcsec)\n", "2020-08-04 15:07:00,504 - miri.simulators.scasim - DEBUG - meta.wcsinfo.v3yangle | V3I_YANG = 0.0 / Angle from V3 axis to Ideal y axis (deg)\n", "2020-08-04 15:07:00,504 - miri.simulators.scasim - DEBUG - meta.wcsinfo.vparity | VPARITY = -1 / Relative sense of rotation between Ideal xy and V2V3\n", "2020-08-04 15:07:00,505 - miri.simulators.scasim - DEBUG - meta.wcsinfo.wcsaxes | WCSAXES = 3 / number of World Coordinate System axes\n", "2020-08-04 15:07:00,505 - miri.simulators.scasim - DEBUG - \n", "2020-08-04 15:07:00,506 - miri.simulators.scasim - INFO - Results will be returned in an exposure data model.\n", "2020-08-04 15:07:00,507 - miri.simulators.scasim - DEBUG - NOTE: The following effects are switched off: 'Quantum efficiency'\n", "2020-08-04 15:07:00,507 - miri.simulators.scasim - DEBUG - CDP FTP host: www.miricle.org\n", "2020-08-04 15:07:00,508 - miri.simulators.scasim - DEBUG - CDP search path folder: /CDPSIM/2.3/:/CDPSIM/\n", "2020-08-04 15:07:00,522 - miri.simulators.scasim - INFO - Detector readout mode is FAST (samplesum=1, sampleskip=0, nframe=1, groupgap=0) \n", "2020-08-04 15:07:00,522 - miri.simulators.scasim - INFO - with 1 integrations and ngroups=5 defined explicitly.\n", "2020-08-04 15:07:00,523 - miri.simulators.scasim - INFO - Detector subarray mode is FULL.\n", "2020-08-04 15:07:00,524 - miri.simulators.scasim - INFO - Detector temperature = 6.70 K (which affects dark current and read noise).\n", "2020-08-04 15:07:00,524 - miri.simulators.scasim - INFO - Cosmic ray environment is SOLAR_MIN.\n", "2020-08-04 15:07:00,525 - miri.simulators - INFO - Reading cosmic ray library file: '/Users/pamelaklaassen/opt/anaconda3/envs/miricle.test/lib/python3.7/site-packages/miri/simulators/data/cosmic_rays/CRs_SiAs_470_SUNMIN_04.fits'\n", "2020-08-04 15:07:00,567 - miri.simulators.scasim - INFO - Simulation control flags:\n", "2020-08-04 15:07:00,568 - miri.simulators.scasim - INFO - \tQuantum efficiency simulation turned OFF.\n", "2020-08-04 15:07:00,568 - miri.simulators.scasim - INFO - \tPoisson noise simulation turned ON.\n", "2020-08-04 15:07:00,569 - miri.simulators.scasim - INFO - \tRead noise simulation turned ON.\n", "2020-08-04 15:07:00,569 - miri.simulators.scasim - INFO - \tReference pixels simulation turned ON.\n", "2020-08-04 15:07:00,570 - miri.simulators.scasim - INFO - \tBad pixels simulation turned ON.\n", "2020-08-04 15:07:00,570 - miri.simulators.scasim - INFO - \tDark current simulation turned ON.\n", "2020-08-04 15:07:00,571 - miri.simulators.scasim - INFO - \tFlat-field simulation turned ON.\n", "2020-08-04 15:07:00,571 - miri.simulators.scasim - INFO - \tAmplifier bias and gain turned ON.\n", "2020-08-04 15:07:00,572 - miri.simulators.scasim - INFO - \tDetector non-linearity effects turned ON.\n", "2020-08-04 15:07:00,572 - miri.simulators.scasim - INFO - \tDetector drift effects turned ON.\n", "2020-08-04 15:07:00,573 - miri.simulators.scasim - INFO - \tDetector latency effects turned ON.\n", "2020-08-04 15:07:00,573 - miri.simulators.scasim - WARNING - ***Illumination map of size 1024 x 1032 is too large! Truncating to detector size of 1024 x 1024 pixels.\n", "2020-08-04 15:07:00,577 - miri.simulators.scasim - INFO - Input subarray mode obtained from illumination map: FULL\n", "2020-08-04 15:07:00,578 - miri.simulators.scasim - INFO - Detector properties translates input subarray FULL into None\n", "2020-08-04 15:07:00,578 - miri.simulators.scasim - INFO - Creating a new detector object for 1024 rows x 1024 columns.\n", "2020-08-04 15:07:00,581 - miri.simulators.get_cdp - INFO - Reading 'MASK' model from '/USERS/pamelaklaassen/WORK/MIRI/DHAS/CDP/MIRI_FM_MIRIMAGE_MASK_07.02.01.fits'\n", "2020-08-04 15:07:00,670 - miri.simulators.get_cdp - INFO - Reading 'GAIN' model from '/USERS/pamelaklaassen/WORK/MIRI/DHAS/CDP/MIRI_FM_MIRIMAGE_GAIN_04.00.00.fits'\n", "2020-08-04 15:07:03,321 - miri.simulators.scasim.detector - INFO - Reading DARK model from '/USERS/pamelaklaassen/WORK/MIRI/DHAS/CDP/MIRI_FM_MIRIMAGE_FAST_DARK_06.01.00.fits'\n", "2020-08-04 15:07:07,395 - miri.simulators.scasim.detector - DEBUG - Find a PIXELFLAT for detector=MIRIMAGE, readpatt=FAST, subarray=FULL filter=P750L, band=None\n", "2020-08-04 15:07:07,401 - miri.simulators.get_cdp - INFO - Reading 'PIXELFLAT' model from '/USERS/pamelaklaassen/WORK/MIRI/DHAS/CDP/MIRI_FM_MIRIMAGE_P750L_PIXELFLAT_07.01.01.fits'\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "2020-08-04 15:07:07,494 - miri.simulators.scasim.detector - WARNING - Could not find exact match for pixel flat-field for detector MIRIMAGE with FAST mode with filter='P750L'. An alternative is being used.\n", "2020-08-04 15:07:07,562 - miri.simulators.scasim.detector - DEBUG - Find a LINEARITY CDP for detector=MIRIMAGE filter=P750L, band=None\n", "2020-08-04 15:07:07,565 - miri.simulators.get_cdp - INFO - Reading 'LINEARITY' model from '/USERS/pamelaklaassen/WORK/MIRI/DHAS/CDP/MIRI_FM_MIRIMAGE_LINEARITY_06.02.00.fits'\n", "2020-08-04 15:07:07,841 - miri.simulators.get_cdp - INFO - Reading 'READNOISE' model from '/USERS/pamelaklaassen/WORK/MIRI/DHAS/CDP/MIRI_FM_MIRIMAGE_FAST_READNOISE_07.01.00.fits'\n", "2020-08-04 15:07:07,906 - miri.simulators.scasim - INFO - Creating exposure_data with 1280 rows x 1032 columns plus 5 groups and 1 ints.\n", "2020-08-04 15:07:08,179 - miri.simulators.scasim - INFO - Simulating 1 integration.\n", "2020-08-04 15:07:08,190 - miri.simulators.scasim - WARNING - ***Input flux array contains 12 negative values.\n", "2020-08-04 15:07:08,329 - miri.simulators.scasim - INFO - Simulating 5 groups for integration 1.\n", "2020-08-04 15:07:09,342 - miri.simulators.scasim - INFO - Adding the DARK calibration from /USERS/pamelaklaassen/WORK/MIRI/DHAS/CDP/MIRI_FM_MIRIMAGE_FAST_DARK_06.01.00.fits\n", "2020-08-04 15:07:09,415 - miri.simulators.scasim - INFO - Correcting nonlinearity from MIRI_FM_MIRIMAGE_LINEARITY_06.02.00.fits\n", "2020-08-04 15:07:09,588 - miri.simulators.scasim - INFO - Output subarray undefined or FULL. SUBSTRT=(1,1), SUBSIZE=(1032,1024)\n", "2020-08-04 15:07:09,589 - miri.simulators.scasim - INFO - WCS keywords defined as CRPIX1=0, CRPIX2=0\n", "2020-08-04 15:07:14,684 - miri.simulators.scasim - INFO - Exposure time 13.88s (duration 14.93s) \n", "2020-08-04 15:07:15,135 - mirisim.obssim.exposure - INFO - Wrote detector image: 20200804_150651_mirisim/det_images/det_image_seq1_MIRIMAGE_P750Lexp1.fits\n", "2020-08-04 15:07:15,135 - mirisim.obssim.event - DEBUG - Elapsed time (total, ima, mrs): 0:00:14.931968, 0:00:14.931968, 0:00:00\n", "2020-08-04 15:07:15,136 - INFO - MIRI Simulation finished. Results have been saved to: 20200804_150651_mirisim\n", "\n" ] } ], "source": [ "simulator_config = SimulatorConfig.from_default()\n", "\n", "\n", "mysim = MiriSimulation(sim_config,scene_config,simulator_config,loglevel='DEBUG')\n", "mysim.run()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Examine some of the results\n", "\n", "Now that the MIRISim simulation has completed, lets examine the results. \n", "\n", "\n", "The first thing to note is that the outputs are placed in a date-labelled directory taking the form YYYYMMDD_hhmmss_mirisim. The name of the output directory is given in the last line of the MIRISim log above. Because the output directory is date-labelled, we can quantify which was the most recent run of MIRISim, and find its output directory using glob.glob" ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "The subdirectories in the outputdirectory are:\n", "['det_images', 'illum_models']\n", "The files in the outputdirectory are:\n", "['simulator.ini', 'ima_recommended_dither.dat', 'scene.ini', 'simulation.ini', 'mirisim.log']\n" ] } ], "source": [ "outputdir = sorted(glob.glob('*_*_mirisim'),key=os.path.getmtime)[-1] \n", "#[-1] takes the last entry found\n", "\n", "outputDirContents = os.listdir(outputdir)\n", "\n", "directories = [name for name in outputDirContents if \n", " os.path.isdir(os.path.join(outputdir,name))]\n", "files = [name for name in outputDirContents if not \n", " os.path.isdir(os.path.join(outputdir,name))]\n", "\n", "print('The subdirectories in the outputdirectory are:\\n{}'.format(directories))\n", "print('The files in the outputdirectory are:\\n{}'.format(files))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The files contain the log which was also output to the terminal ( mirisim.log) and copies of the .ini files used (or created from python inputs) to create the simulation. These versions of the .ini files can be used to re-create the run of the simulation\n", "\n", "The directories contain various outputs of MIRISim:\n", "\n", "* ** illum_models ** houses FITS images of the illuminations sent to the detector (sent to SCASim - the simulator of the Sensor Chip Assembly). This should have the same format as the detector image, but without all of the detector effects and noise. There are FITS files produced for each exposure and dither position\n", "* ** det_images ** houses FITS images of the final outputs of MIRISim. These detector images have all of the detector effects and noise incorporated. The number of detector images should be the same as the number of illumination models. \n", "\n", "The headers of the detector images are formatted for ingest into the JWST pipeline. \n", "\n", "\n", "Below is a small code snippet used to draw the images. it needs to be run, but doesn't produce any output directly (it's called later to show the output images)" ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [], "source": [ "def show_outputs(MIRISim_outputdir,output_type):\n", " '''\n", " plot the specified channel of the MIRISim outputs\n", " :param MIRISim_outputdir: \n", " name of the date-labelled dir. holding the MIRISIM outputs\n", " :param output_type: \n", " type of output to process \n", " (e.g. illum_models, det_images or skycubes)\n", " '''\n", " \n", " infits = glob.glob('{}/{}/*.fits'.format(MIRISim_outputdir,output_type))[0]\n", " \n", " hdulist = fits.open(infits)\n", " \n", "\n", " hdu_index = 1\n", " if len(hdulist[hdu_index].data.shape) > 3:\n", " integ,frames,nx,ny = hdulist[hdu_index].data.shape\n", " image = hdulist[hdu_index].data[integ-1,frames-1,:,:]\n", " \n", " \n", " else:\n", " image = hdulist[hdu_index].data[:,:]\n", " \n", " norm = colors.LogNorm(image.mean() + 0.5 * image.std(), 0.5*image.max(), clip=True) \n", " plt.imshow(image,origin = 'lower', cmap = cm.viridis,interpolation = 'nearest',norm = norm)\n", " plt.title('{}'.format(infits.split('/')[-1]))\n", " plt.xlabel('Along Slice Direction')\n", " plt.ylabel('Wavelength Direction')\n", "\n", "\n", " plt.colorbar()\n", "\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Viewing an illumination model\n", "\n", "Below shows an example of an output illumination model" ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAUYAAAETCAYAAABKlK+0AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy86wFpkAAAACXBIWXMAAAsTAAALEwEAmpwYAAApC0lEQVR4nO3deZwdVZ3+8c/THcIeEkjAQICwCUNEBKKAuLCJ4KgwA7LMKIFhJr9xdERRHHAZwX0ZRRkRBUHABQiIyjAosuqIgIRFIEAgsgYDBMi+9vL9/XHOTW4uvVQvt2/d7uedV7361qm6Vd9buX36nDqnzlFEYGZma7U0OgAzs7JxxmhmVsMZo5lZDWeMZmY1nDGamdVwxmhmVqMpMkZJsyQdKOksST/JaZMlhaRRjY5vMPTl80g6SdIfhiIuG3kkfVHSS5Kel7SdpKWSWhsd11BqiowxIqZExG2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/qRwwX69LgOPydRwFfLDqnC/l+M8HPlEwfmsCzhib0wmkgR/IP7uqTr8F+AlARDwKPA28Nm+7OSIWRcRK0rO825Mykd9FxCuRBkC4qqsTR8QNpEfcLiRlUPdJmtBDrIeSMtPK+xeQMt/dgdsl3U96RrfozHPqJv3piLgzvz4sL/exNiPdhTRQxlUR8VKO5ZVezrUraVCIx/L6paTBXisqA4TcQxrn0IaJYTNL4EghaXPSL/gekoI0inlIOr0Ph1lV9bqDPn4PcobyM+Bnucr8NlLmUJRI9yn7c390L9KzvbWW1Rz/KxHxg3VOKv17P87Xk8p17PM1tHJzibH5HAP8OCK2j4jJEbEtaXTrt9bs93/APwJIei2wHWkU5u7cDbw9j5oyCji6q50kHSxpo/x6U2An0qgy3bmRVK2vvH8ccCdwgKSdc9rGOcZu5UaVj5Ducf6mp31Jo738U+W+paRtJG0J3AK8T9IWOX3zvP8S0jQUtWYDkytxAh8AftfLuW0YcMbYfE4AflGT9nNeXZ3+HtAi6UHgSuCkiFhFNyKNPv1l0igvtwNPkUaUrrUPMFPSA8AdwA8j4u4e4v0iME5pcqg/AwdFxHzSXCiXVx2nu3ua38jvewx4Y37/6h7OR0T8llSivSN//quBTSNNoPYl4Hf5mJVh4a4ATs+NLDtVHWclcDJwVT5OJ2nOFhvmPLqOrSFpk4hYmkuMvwAujojaTNhs2HOJ0aqdlRtDHiJVz3/Z0GjMGsQlRjOzGi4xmpnVcMZoZlbDGaOZWQ1njGZmNZwxmpnVcMZoZlbj/wN5BpsNDT77sAAAAABJRU5ErkJggg==\n", "text/plain": [ "
" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "show_outputs(outputdir,'illum_models')\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Viewing the final detector image\n", "\n", "The detector images are the final output of MIRISim, and have data structures and formatting consistent with what will come from MIRI itself. The data format is JWST pipeline ready. Below an example image of the last frame of the last integration is shown. The units are DN.\n", "\n", "Additionally, below the FITS header information for the SCI extension is listed.\n" ] }, { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "XTENSION= 'IMAGE ' / Image extension \n", "BITPIX = -32 / array data type \n", "NAXIS = 4 / number of array dimensions \n", "NAXIS1 = 1032 \n", "NAXIS2 = 1024 \n", "NAXIS3 = 5 \n", "NAXIS4 = 1 \n", "PCOUNT = 0 / number of parameters \n", "GCOUNT = 1 / number of groups \n", "EXTNAME = 'SCI ' / extension name \n", " \n", " Information about the coordinates in the file \n", " \n", "RADESYS = 'ICRS ' / Name of the coordinate reference frame \n", " \n", " Information about the data array \n", " \n", "BUNIT = 'DN ' / Units of the data array \n", " \n", " Spacecraft pointing information \n", " \n", "RA_V1 = 0.1152969573922563 / [deg] RA of telescope V1 axis \n", "DEC_V1 = 0.1112710889995964 / [deg] Dec of telescope V1 axis \n", "PA_V3 = -0.0 / [deg] Position angle of telescope V3 axis \n", " \n", " WCS parameters \n", " \n", "WCSAXES = 3 / number of World Coordinate System axes \n", "CRPIX1 = 0 / axis 1 coordinate of the reference pixel \n", "CRPIX2 = 0 / axis 2 coordinate of the reference pixel \n", "CRPIX3 = 0 / axis 3 coordinate of the reference pixel \n", "CRVAL1 = 0.0 / first axis value at the reference pixel \n", "CRVAL2 = 0.0 / second axis value at the reference pixel \n", "CRVAL3 = 0.0 / third axis value at the reference pixel \n", "CTYPE1 = '' / first axis coordinate type \n", "CTYPE2 = '' / second axis coordinate type \n", "CTYPE3 = '' / third axis coordinate type \n", "CUNIT1 = '' / first axis units \n", "CUNIT2 = '' / second axis units \n", "CUNIT3 = '' / third axis units \n", "CDELT1 = 1.0 / first axis increment per pixel \n", "CDELT2 = 1.0 / second axis increment per pixel \n", "CDELT3 = 1.0 / third axis increment per pixel \n", "V2_REF = -415.0690466121227 / [arcsec] Telescope v2 coordinate of the referen\n", "V3_REF = -400.575920398547 / [arcsec] Telescope v3 coordinate of the referen\n", "VPARITY = -1 / Relative sense of rotation between Ideal xy and\n", "V3I_YANG= 0.0 / [deg] Angle from V3 axis to Ideal y axis \n", "RA_REF = 0.0 / [deg] Right ascension of the reference point \n", "DEC_REF = 0.0 / [deg] Declination of the reference point \n", "ROLL_REF= -0.0 / [deg] V3 roll angle at the ref point (N over E)\n", "EXTVER = 1 / extension value " ] }, "execution_count": 13, "metadata": {}, "output_type": "execute_result" }, { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAWIAAAETCAYAAAAMIgweAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy86wFpkAAAACXBIWXMAAAsTAAALEwEAmpwYAAAyKklEQVR4nO3deZhcVZ3/8fcnCSQSkIR1IIEQFuEHuIAOi4ggiEIGhUd2lUUZHB1xww1HHRAZncEZHBdEQTCAbAmLMkwUEBEVIcO+hiWASBAISxIChpB0f35/nFPdtyvdVbe3Wrq/r+e5T1fde+ueb92u/vapc889R7YJIYTQPGOaHUAIIYx2kYhDCKHJIhGHEEKTRSIOIYQmi0QcQghNFok4hBCarOUSsaSZkk4dwuNtKullSWOH6pghBJD0Okn/I2mJpNmSPiTp2mbH1Y5aLhGXJenPkt5dbz/bf7G9pu2ORsTVqiSdJekhSZ2Sjin5mpMlWdJnqtZ/Jq8/OT/fU9KCwvbfSXo1/wN8XtIVkjaqOu7PC88taaGkcYV1q+V1q3R0z/+sVxaPWdi2j6QbJC2V9IKkuyR9WdKEQtkrcmyVZXGJc2FJr+T9n5J0euWfe9WxXpbUIekHedtm+bXF7V8vHHe8pHMlvSTpGUknFLb1OK+NIOmbku7N5/fkOrsfDGwIrGv7ENsX2n5P4ViWtOVwxjtStG0iDv12N/DPwB39fN3DwFFV647O62s53vaawJbAmsB/1tl/EbBf4fl+eV0PkiYCBwFLgA9XbTsEuAy4CJhme13gMGAqsElh10vzP+fKMqlObBVvzu9pb+CDwHEAxWMBfwcsA2ZXvXZSYb9vFtafDGwFTAPeBXxJ0r4l4xkO84EvAf9bY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K9wKXAMbaX0wen2SW+RRoF7Cbgz6QZI6q9FbhN0j3AzcBPbd9aI95TgclKk2neDbzL9nOkudwuLhynrzbp7+TXPQz8fX79azXKw/a1pBr7zfn9Xwas5TTh7L8BN+ZjVoYpvQT4Yr4ot0XhOK8CHwFm5+N0kuacC2FIxehroYukNW2/nGvEVwLn2q5O+iGEIRY14lB0cr54dh+pueMXTY0mhFEiasQhhNBkUSMOIYQmi0QcQghNFok4hBCaLBJxCCE0WSTiEEJoskjEIYTQZP8fD7ovRUP2nZgAAAAASUVORK5CYII=\n", "text/plain": [ "
" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "show_outputs(outputdir,'det_images')\n", "\n", "infits = glob.glob('{}/det_images/*.fits'.format(outputdir))[0]\n", "hdulist = fits.open(infits)\n", "hdulist[1].header" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "anaconda-cloud": {}, "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.7" } }, "nbformat": 4, "nbformat_minor": 1 }