the rationale for , capabilities of , and scientific context of the mid - infrared instrument ( miri ) on jwst are described in rieke et al .
( 2014 ; hereafter paper i ) and the overall optical , thermal , mechanical / structural electronic and control aspects of the design are summarized in wright et al .
( 2014 ; hereafter paper ii ) .
this paper describes in more detail the miri medium resolution spectrometer ( mrs ) , which is an integral field unit ( ifu ) spectrometer that covers the wavelength range from 5 to 28.5 @xmath0 m at spectral resolving powers of a few thousand .
the mrs consists of 4 channels that have co - aligned fields of view , simultaneously observing the wavelength ranges listed in table 1 with individually optimised ifus , collimators and gratings .
section [ sec : optical ] of this paper provides a description of the optical design , including the rationale for choosing the ifu concept and its impact on how observations are carried out .
section [ sec : measured ] then describes the expected on - orbit optical performance of the mrs as measured during cryogenic testing , and with a description of the procedure used to construct calibrated spectral data cubes from the raw measured images .
the impact of particular characteristics of the mrs , including spectral fringing and straylight are also discussed here .
an ifu based design was preferred to a long - slit design for the miri spectrometer for the following reasons .
firstly , for point source observations , the need to centre the source in a narrow slit ( via a peak - up procedure ) is relaxed , simplifying and accelerating the target acquisition procedure .
there is an additional benefit that there is no loss of light at the slices ( ` slit losses ' in a conventional long slit spectrometer ) .
the mrs slice width is set to be less than or equal to the fwhm of the diffraction limited point spread function at the slicing mirror .
an equivalent long - slit spectrometer would vignette the light outside this region , losing about 50% of the total .
the amount of lost light could be reduced by making the slit wider , but doing so would in turn reduce the spatial and spectral resolution and could also decrease the signal to noise because of increased background radiation .
second , from a scientific perspective , the wavelength range covered by the miri spectrometer is sufficiently broad ( a factor of nearly six ) that different emission mechanisms may dominate in different regions of the spectrum . in cases where these mechanisms do not share a common centre ( e.g. , stellar output compared with infrared re - emission in a starburst galaxy ) , a simple slit spectrograph poses a dilemma in placing the `` source '' on the slit . an ifu implements 3d spectroscopy , which solves this problem by giving accurately registered spatially resolved spectroscopy over the entire field .
these considerations , combined with the wavelength coverage and resolving power requirements defined by the jwst mission science goals , and the mass , volume and electrical power limitations set by the jwst spacecraft environment , have resulted in a system with the characteristics summarised below and illustrated in block diagram form in figure 1 .
as shown in the figure , the full 5 to 28.5 @xmath0 m wavelength range is divided within the spectrometer pre - optics ( spo ) into four simultaneous spectral channels @xcite , each with its own ifu @xcite and using a simple scheme of pass - band separation by dichroic filters whose design is described in hawkins et al .
( 2007 ) and wells et al .
we denote the short and long wavelength limits of each channel as @xmath1 and @xmath2 .
each channel serves an optimised spectrometer .
this separation provides several benefits : ( 1 ) it enables the use of diffraction gratings in first order , allowing each to be used near peak efficiency around the blaze wavelength , and ( 2 ) it also allows the ifu slice widths to be tailored to the wavelength - scaled fwhm in each channel .
electrical and thermal constraints limit the mrs to two 1024 x 1024 si : as detectors ( ressler et al . , 2014 , hereafter paper viii ) , resulting in the spectrometer being split into two sets of optics , each with its own detector array , one for the two short - wave channels and one for the two long - wave channels . in each case
, the spectra of two wavelength channels are imaged simultaneously onto the left and right halves of a detector array .
the product of spatial and spectral coverage that can be achieved in a single instantaneous exposure is ultimately set by the number of detector pixels . for the mrs ,
this results in a single exposure providing a spectral sub - band that covers only one third of each channel .
full wavelength coverage then requires three exposures , with a pair of mechanisms being used to select the gratings and dichroics in each case .
we refer to the short and long wavelength limits of each sub - band as @xmath3 and @xmath4 .
this design choice allows the grating performance to be optimised over a narrow wavelength range ( @xmath4/@xmath5 @xmath61.2 ) .
the gratings only have to work over 20% of the 1@xmath7 order near the blaze wavelength and the dichroics do not have to be used near the cross over between reflection and transmission .
we will now step through the optical train as shown in figure 1 : the input optics and calibration ( ioc ) modules pick off the mrs fov from the jwst focal surface and pass it on to the spo .
the spo spectrally splits the light into the 4 spectrometer channels and spatially reformats the rectangular fields of view into slits at the entrance of the spectrometer main optics ( smo ) .
the smo comprises fixed optics that collimate the light for presentation to diffraction gratings mounted in the spo and then re - images the dispersed spectra onto the two focal plane arrays .
key features of this optical system are described individually in the following subsections .
the spectral and spatial coverage of the mrs is summarised in table 1 .      the field of view of the mrs is adjacent to the miri imager field and picked off from the jwst focal surface using the miri pickoff mirror ( pom ) , which is common to both ( see paper ii ) .
the sky and the jwst pupil are reimaged by the ioc so that there is a pupil image at the spo input and a sky image further on .
a cold stop that is 5% oversized with respect to the jwst pupil is placed at the spo input pupil for straylight control .
the light is directed towards the first dichroic filter via a fold mirror placed 10 mm beyond the pupil .
the focal plane is formed 535 mm beyond the pupil , providing the long path length and narrow beam waist needed between the pupil and the inputs of the four integral field units ( ifus ) , for mounting a chain of dichroics to divide the light among the four spectral channels .    a hole in the fold mirror , sized to be smaller than the footprint of the telescope central obscuration , acts as an aperture for the injection of light from the on - board spectrometer calibration unit ( scu ) , shown in figure 2 .
the scu provides spatially and spectrally uniform blackbody illumination for flux calibration and pixel flat fielding functions , using as its light source a tungsten filament heated to a temperature of @xmath61000 k by the application of an 8 ma drive current .
the filament is mounted inside a non - imaging flux concentrator that generates spatially uniform focal plane illumination at the exit port of a 25 mm diameter reflective hemisphere , ( described in glasse et al . , 2006 ) .
two cadmium telluride lenses within the scu then re - image the exit port onto the ifu input focal planes . the lenses provide a pupil image that coincides with the hole in the input fold mirror .
this hole is positioned to lie within the footprint of the central obscuration of the jwst primary mirror and so has no impact on the science beam . in this way
, the scu can provide flood illumination of the full mrs field of view without any need for mechanisms or additional optical elements .
the overall layout of the dichroic assembly is shown in figure 3 , with the input fold mirror and scu situated at the left - hand end ( but not shown ) .
the three dichroics needed to divide the spectral band among the four spectrometer channels for one of the three sub - bands are indicated as d1 , d2 , and d3 in figures 1 and 3 . taking sub - band a as an example , the required reflective band for dichroic d1 is the wavelength range for sub - band a in channel 1 , while its transmission band needs to extend from the short end of sub - band a in channel 2 to the long end of sub - band a in channel 4 .
the bands are listed in table 2 for all nine dichroics . in all cases , the mean
reflectivity is above 0.95 and the mean transmission is above 0.74 .
all of the gratings work in first diffractive order so additional blocking is needed to reject second and higher orders . because the dichroics work in series it is possible to use the combined blocking of dichroics 1 and 2 to remove the need for blocking filters in channels 3 and 4 . for channels 1 and 2 ,
dedicated blocking is provided by the fixed filters shown as bf1 and bf2 in figure 3 , with light traps lt1 and lt2 absorbing unwanted reflections .    the path length required to reach the input of channel 4 is greater than the 535 mm discussed above , so the light transmitted by the final dichroic is re - imaged via an intermediate focal plane to the entrance of the channel 4 ifu .
the 21 mm diameter dichroic filters are mounted on two wheels .
first is the nine - sided wheel a containing the three channel 1 dichroic filters and three flat mirrors to direct the light towards channel 1 . the second , six - sided wheel , contains the six dichroics needed to divert the light into channels 2 and 3 .
each dichroic filter is mounted onto a diamond machined facet on the wheel that provides the required alignment accuracy and reduces the magnitude of any print - through of surface form errors from the wheel to the filter substrate .
the filters are held in place with a spring loaded bezel with a clear aperture of 17 mm compared with the coated area of 17.4 mm .
the bezel prevents light from reaching the uncoated area of the filter , which might result in un - filtered light entering the optical path .
the blocking filters are mounted directly to the spo chassis with a stand and bezel , similar to the mounting arrangement for the wheels .
the mechanisms that carry the dichroic wheels also carry the corresponding wheels with diffraction gratings for each sub - band ( three per channel ) , as discussed in section 2.4 . by arranging for the gratings to be mounted on the same mechanisms as their band - selecting dichroics ,
the number of moving mechanisms within the mrs is kept to two .      before the light in the four channels reaches the gratings it is sliced and reformatted by the integral field units and
so we describe these next .
the parameters pertaining to the spatial and spectral coverage and sampling of the spectrometer , which are largely determined by the design of the four ifus , are given in table 1 .
spatially , the image is sampled in the dispersion direction by the ifu slicing mirrors and in the slice direction by the detector pixels .
spectrally , the width of the slices defines the spectrometer entrance slit and the width of the image ( in pixels ) of the slice at the detector defines the width of the spectral sample .
inspection of table 1 then shows that channels 1 to 3 are all slightly undersampled spectrally , with slice widths less than 2 pixels at the detector .
the bandwidths of the spectral channels listed in table 1 were chosen such that the ratio @xmath8/@xmath1 in all four channels was the same : @xmath2/@xmath9 ( 28.3 / 5)@xmath10 1.54 .
this means that , if each channel is assigned the same number of spectral pixels , the resolving power in each will be approximately the same .
each sub - band then has a width that is slightly larger than one third of the band - width of its parent channel , where the excess provides sufficient overlap of adjacent spectra to allow their concatenation . in practice , the overlap is typically 10 to 15% of the spectral range , depending on the specific sub - bands and position in the field of view .    for full nyquist sampling of the telescope
psf the four ifu slice widths should ideally be matched to the half width at half maximum intensity of the psf at the shortest wavelength in each channel .
for the jwst telescope pupil this would equate to a@xmath11 0.088 ( @xmath12 / 5 @xmath0 m ) arcsec .
however , the large increase in the beam size produced by diffraction at the ifu slicer mirror would then necessitate large apertures for the spectrometer optics to avoid vignetting . to control the size , mass and optical aberrations of the spectrometer , the starting point for determining the slice widths was therefore to set them equal to 2a@xmath13 , with fully sampled psfs to be achieved using two or more pointings of the telescope .
optimum spatial sampling , which minimises the number of telescope pointings needed to fully sample all four channels simultaneously in the across - slice direction , is achieved by having a single pointing offset equal to n@xmath14 + 1/2 slice widths for all channels where n@xmath14 is a different integer for each channel .
this led us to adopt a set of slice widths that follow a scheme where the slices are factors of 1 , 11/7 , 11/5 and 11/3 wider than the narrowest 0.176 arcsec slice .
these values closely match the increasing fwhm of the psf in the 4 channels and allow full nyquist sampling to be achieved using a single ` diagonal ' offset whose magnitude in the across slice direction is equal to 11/2 times the width of the narrowest slice ( 0.97 arcseconds ) and ( n + 1/2 ) detector pixels in the along slice direction ( where n is an integer ) . with
these slice widths fixed the design was interated to , as far as possible , meet the following criteria : 1 . )
each channel would occupy half a 1024 x 1024 pixel detector with borders to allow for tolerances in alignment and gaps between slices to avoid crosstalk ; 2 . )
the fov of each channel should be as large as possible and approximately square ; and 3 . )
the long and short wavelength arms of the spectrometer should be identical ( in practice one is the mirror image of the other ) .
this iteration resulted in the parameters in table 1 .
the ifu design was developed from the ifu deployed in uist , a 1 - 5 @xmath0 m spectrometer for ukirt @xcite .
other examples of all - reflecting image slicers are the spectrometer for infrared faintfield imaging ( spiffi ) @xcite , and the slicer in the gemini near - infrared spectrograph ( gnirs ) @xcite .
the miri ( and uist ) ifu design allows excellent control over stray light by providing through - apertures for baffling .
it consists of an entrance pupil , an input fold mirror , an image slicer mirror , a mask carrying exit pupils for the individual sliced images , a mask carrying slitlets for the individual images , and an array of re - imaging mirrors behind the slitlets . these components ( except for the last ) are shown in figure 4 .
the design is all - reflecting and constructed entirely of aluminium , and hence is well - suited for operation in the infrared and at cryogenic temperatures , as discussed in paper ii .
@xcite describe the manufacture of the slicer .
the optical path through the ifus begins with the four toroidal mirrors , which comprise the anamorphic pre - optics ( apo ) module , ( not shown in figure 4 ) .
the apo re - images an area of up to 8 by 8 arcseconds of the input focal plane onto the image slicer mirror , with anamorphic magnification .
the image slicer ( at the relayed image plane ) consists of a stack of thin mirrors angled to divide the image along the dispersion direction of the spectrometer into separate beams . in the across slice ( dispersion ) direction one slice width
is matched to the fwhm of the airy pattern at the shortest operating wavelength for the ifu . in the along slice direction
the magnification is chosen to provide the required plate scale at the detector .
these two magnifications are not the same and so the apo exit pupil is elliptical , as illustrated in figure 5 for channel 3 , where the footprint of the jwst pupil is shown in blue .
the light exits the ifu through individual pupil masks for each beam , then through individual slitlets ( see figure 4 ) .
re - imaging mirrors behind the slitlets relay the beam to the input of the appropriate spectrometer .
that is , each ifu takes the rectangular fov and transforms it into a pattern of slitlets ( as shown in figure 4 ) that are re - imaged onto the entrance aperture for its corresponding grating spectrometer .
the slicing mirror comprises a number of spherical optical surfaces , diamond turned onto a common substrate .
this manufacturing approach was used previously for the ifu in gnirs @xcite .
figure 6 is a photograph of the image slicer for channel 1 , which has 21 slicer mirrors arranged about the centre of the component with 11 slices on one side and 10 on the other .
each mirror is offset to direct its output beam towards the corresponding re - imaging mirror .
the design for channels 2 to 4 is similar but with correspondingly fewer and larger slices as the wavelength increases , as listed in table 1 .
the mirrors are arranged in a staircase - like manner to aid manufacturing .
each of the slices re - images the ifu entrance pupil at a scale of @xmath151:1 and because the centres of curvature of the mirrors are offset laterally with respect to each other , the pupils that the slices produce are separated , as can be seen in figure 4 .
the slicing mirrors truncate the anamorphically magnified image of the sky along the dispersion direction , as shown in figure 7 ( a ) to ( c ) .
this truncation results in the pupil image being diffraction broadened in the dispersion direction as shown in figure 7 ( d ) . to reduce vignetting , the baffle at this pupil image and subsequent optical components ( including the diffraction gratings )
are oversized .
this is illustrated in figure 7(d ) where the geometric footprints for 3 field positions are overlaid along a slice to appear as the blurred green patch in the image .
the notional , geometric pupil is shown in red and the oversized mask aperture is shown as a green rectangle .
the re - imaging mirror array forms images of the slicing mirrors as input slits of the spectrometer and also images the pupils at infinity , making the output telecentric .
finally , a roof mirror redirects light from the re - imaging mirrors so that the output consists of the two lines of staggered slitlets relayed from those seen in figure 4 .
a slotted mask at the position of the ifu output slits defines the field of view along the individual slices , while in the spectral direction the slots are oversized to ensure they do not vignette the image , but still act as baffles to reduce scattered light between the slices .
the numbers of detector columns covered by the four ifus are approximately 476 , 464 , 485 , 434 for channels 1 to 4 respectively .
the size of the gap between individual slits for channel 1 is set to be approximately equal to the diameter of the first dark diffraction ring in the telescope psf , ( about 4 pixels ) . for channels 2
 4 the size of the gap is slightly greater than the diameter of the first dark ring .
the smo ( whose layout is shown in figure 8) , comprises four grating spectrometers in two arms .
the development and test of these spectrometers are described by @xcite .
each of them performs three functions : collimation of the telecentric output beams of one of the four ifus , dispersion of the collimated beam , and imaging of the resulting spectrum onto one half of one of the two focal plane arrays .
one of the two spectrometer arms includes the two short wavelength channels ( 1 and 2 ) , and the other the long wavelength channels ( 3 and 4 ) .
we will now step through the optical path from the ifus to the detectors .
the ifu output beam for each channel is collimated and its light directed towards the corresponding diffraction gratings as shown in figure 9 .
each spectrometer arm uses 6 gratings ( two wavelength channels , three sub - band exposures ) .
figure 8 then shows the optical paths from the gratings to the detectors .
the dispersed beams are imaged by three - mirror - anastigmat ( tma ) camera systems ( m1-m2-m3 ) . in each spectrometer arm
the channels have separate , but identical , m1 camera mirrors that provide intermediate images of the spectra between m1 and m2 .
folding flats at these intermediate focus positions reflect the channel 1 and channel 4 beams such that the combined ( ch .
1 + 2 ) and ( ch . 3 + 4 ) beam pairs are imaged onto opposite halves of the detectors by common m2 and m3 mirrors .
the symmetry through the centre plane of the camera optics and the positioning of the optics allow for an opto - mechanical design of two mirror - imaged boxes , with identical optics and almost identical structures .
the combination of symmetry and an all aluminium design ( optics as well as structures ) allowed the very strict alignment and stability requirements to be met fully with an adjustment - free mounting ( i.e. positional accuracy by manufacturing accuracy only except for the focus shim at the detector interface ) , a major advantage regarding the total design , manufacture and test effort .
the mirror substrates are all light - weighted aluminium with diamond turned optical surfaces that are gold coated for maximum reflectivity at the miri operating wavelengths .
they are mounted through holes in the housing walls using stress - relieving lugs under light - tight covers to prevent any high temperature radiation from the instrument enclosure ( at @xmath640 k ) reaching the detectors .
the two sets of gratings for the a , b and c sub - bands of the two channels are mounted on a single wheel , as shown in figure 10 , that is mounted on a mechanism that also carries the dichroics wheel on a lower level .
the mechanisms are located in the spo and each mechanism is rotated by a single actuator to give the correct combination of dichroics and gratings across all channels for each exposure . the gratings are master rulings on aluminium substrates and are gold coated .
table 3 lists the design parameters of the gratings .
all gratings operate in first order .
the angular values quoted in figure 1 are calculated for the ( virtual ) nominal input beam , originating from the centre of the ifu output area .
the spo is designed to be a well baffled optical system . to intercept stray light from the telescope
the first optical element in the mrs is a cold stop placed at the entrance pupil .
a number of features within the mrs help to control stray light : 1 . ) stops at each pupil and sky image in the optical train ; 2 . )
light traps where significant stray light occurs ( 0@xmath16 order from the gratings ) ; 3 . )
labyrinths at the edges of apertures between modules and tight control of all external apertures , e.g. electrical feed throughs ; 4 . )
black coating of all surfaces not in the main optical path , which is an inorganic black anodising applied to a roughened surface of aluminium .
the process was carried out by protection des metaux , paris ; and 5 . )
avoidance of surfaces at grazing incidence near the main optical path .
in addition , for each slice of each ifu there are output pupil and slit masks .
all the diamond turned aluminium mirrors in miri were specified to have a surface roughness of < 10 nm rms .
this results in a total integrated scatter per surface of < 0.06% ; non - sequential optical modelling indicated that this level of scatter should not significantly degrade the psf of the mrs .
all mirrors have an overcoated gold surface with reflectivity > 98.5% in the miri wavelength range .
straylight analysis shows that the extensive baffling combined with the low scattering optical surfaces and blackened structure should reduce unwanted light ( cross talk between channels , degraded psf and out - of - beam light at the output image ) to levels that are estimated to be less than 0.1% of the background radiation included in the science beam .
due to the nature of an ifu spectrograph with its slicing and dispersing optics , the resulting detector images are not straightforward to analyze : spatial , spectral , and with it photometric information , are spread over the entire detector array .
further , the gratings are used in an optically fast , non - littrow conguration .
the resulting anamorphic magnification varies from the short to long wavelength limit for each sub - band which , when combined with the curved spectral images of the dispersed slices on the detector as shown in figure 11 , makes the optical distortion significant and complex .
the anamorphic and slicing optics add other components of distortion that vary the plate scale in the along - slice direction for each slice individually .
this leads to a very complicated variation of the spatial plate scales and finally to a dependency of the spatial and spectral axes on each other and on the location on the detector array .    to enable scientific studies
based on mrs data , the flux measured in each detector pixel needs to be associated with a wavelength and location on the sky .
since the ifu provides two spatial dimensions , each detector pixel corresponds to a position within a three - dimensional cube with two spatial and one spectral dimension .
due to the optical distortion , the edges of these cubes are neither orthogonal nor constant in length .
consequently , we have developed a process ( called image or cube reconstruction ) , which allows a transformation of the detector pixels onto orthogonal cubes .
cube reconstruction requires a thorough understanding of the optical distortion .
it is not possible to just characterize the curved images of the dispersed slices ( as shown in the left plot of figure 11 ) by approximating the curvature with polynomial functions . due to the distortion caused by the slicing optics , the spatial plate scale varies within a slice non - uniformly .
the characterization of the plate scale and the association of each detector pixel with its projected location on the sky at any given wavelength is a task for the astrometric and wavelength calibration , described in the next sections .
once the sky - coordinates and wavelength are known for each detector pixel , the cube can be reconstructed as discussed by glauser et .
2010 ) .      to describe the optical distortion on the image plane of the detectors we began from the optical model , using ray - tracing techniques to project each detector pixel through the slicing optics backwards onto the sky .
when the as - built geometry was taken into account , we achieved a high spatial accuracy , as demonstrated for the miri verification model ( glauser , et al . , 2010 ) .
to verify this approach , a dedicated astrometric calibration campaign was conducted during the instrument test campaign of the miri flight model .    as outlined in glauser et al .
( 2010 ) , the intra - slice spatial distortion can be approximated with a 2@xmath17 order polynomial to accuracies of a few milli - arcseconds - much better than required for the astrometric accuracy given the minimum plate scale of 0.196 arcseconds in the along - slice direction for channel 1 .
we conducted the astrometric calibration by placing a broad - band point source at three field positions for each slice and each channel and recording the dispersed signature on the detector .
the central pixel of the spatial profile was determined and correlated with the known position of the point source ( our reference on the sky ) . with this method
we were able to determine the spatial plate scale at any location on the detector . due to limitations of the test setup , i.e. , strong field distortion of the steerable point - source ,
the achievable relative astrometric accuracy was very limited .
however , within an estimated upper limit of @xmath60.5 pixels ( 0.098  arcsecond for channels 1 and 2 , 0.123  arcsecond for channel 3 , and 0.137  arcsecond for channel 4 ) , the approach of using the optical model for the reconstruction was validated .
a further result from this calibration campaign was the measurement of the fov for each sub - band .
figure 12 shows the mrs fov in the jwst coordinate frame and its position relative to the imager field .
the fov common to all mrs channels is 3.64  arcsec in the along - slice ( @xmath18 and 3.44  arcsec in the across - slice direction ( @xmath19 .      to determine the absolute wavelengths for the mrs channels we conducted a series of calibration measurements during the instrument test campaign .
fabry - prot etalon filters were used to create a dense pattern of unresolved spectral lines on the detector .
many tens of lines were typically visible at a signal to noise ratio of more than 50 in a single sub - band exposure .
an example etalon measurement is shown in figure 13 . to provide a reference wavelength to distinguish between adjacent etalon lines , the telescope simulator used in the test
was also equipped with a pair of ` edge ' filters , one of which cut - on at around @xmath20 6.6 @xmath0 m ( in sub - band 1c ) and the other which cut off at @xmath21 21.5 @xmath0 m ( in sub - band 4b ) .
the absolute wavelengths of the etalon lines and edge filters had previously been measured at ambient and 77 k temperatures using a laboratory standard fourier transform spectrometer with a spectral resolving power of r @xmath22 100,000 .
the extrapolation of the wavelength scale to the 34 k operating temperature for the test campaign was based on published measurements ( browder and ballard , 1969 , browder and ballard , 1972 and smith and white , 1975 ) .
this extrapolation resulted in a typical wavelength correction of less than 1% of the width of the mrs spectral resolution element .
the repeatability of the scale after multiple mechanism reconfigurations has been measured to be 0.02 resolution elements .
the wavelength calibration process then involved the assignment of an absolute wavelength to an etalon line by fitting the calibrated spectra of the edge filters to their mrs measured spectra in sub - band 1c and 4b .
the known separation of the etalon lines was used to extend the wavelength scale across the full spectral image in each of these sub - bands . to extend the scale to other sub - bands , pairs of measured etalon spectra
were co - added and the positions of unique identifying features ( due to spectral beating between the two patterns ) were used .
a set ( 2 per sub - band ) of second order polynomial fits to the positions of the etalon lines was used to generate a wavelength value for the corners of all illuminated pixels .
the wavelength calibration derived in this way was encoded for use in the mrs calibration pipeline by forming six images ( one for each mrs detector and all three grating wheel settings ) where the image signal values were set equal to the wavelengths at the corner of each detector pixel .
we note that as a result , these wavelength reference images have one more row and column than the detector images .
the relative accuracy of this wavelength scale ( within and between sub - bands ) is estimated to be better than 0.02 spectral resolution elements which , for example , corresponds to 0.03 nm at @xmath21 5 @xmath0 m .
the absolute accuracy of the wavelength scale is estimated to be comparable to this figure but this will need to be confirmed during on - orbit commissioning using spectral standards .
the wavelength calibrated etalon spectra were also used to measure the spectral resolving power of the mrs .
the results are shown in figure 14 , where the sub - band averaged values are shown in red and the spread of values seen across the field of view is indicated by the black band .
we note that figure 14 does not take account of the intrinsic spectral width of the etalon features , which was determined using the r @xmath22 100,000 calibrated spectra , described above .
initial efforts to deconvolve the intrinsic line profiles from the mrs measured spectra suggest that the resolving powers quoted in figure 14 may be underestimated by around 10 % .
we have therefore used the band averaged measurements scaled by a factor 1.1 to generate the summary values quoted in table 1 .      as outlined in section [ sec : optical ] , the psf of the mrs is under - sampled by design , with full sampling in both spatial and spectral dimensions requiring that the object be observed in at least two dither positions that include an offset in the across - slice direction of 11/2 times the channel 1 slice width ( which corresponds to 7/2 slices in channel 2 , 5/2 slices in channel 3 , and 3/2 slices in channel 4 ) . due to the curved shape of the distorted spectrum on the detector and the variable plate scale along the individual slices ,
the exact dither offset in the along - slice direction is less well determined ( but also less critical ) .
figure 15 shows the nominal mrs dither pattern to be used in a single observation to sample point sources fully , as derived during test campaigns , and as proposed for in - flight operations .    to achieve a fully sampled psf
, these dithered observations must be combined .
we anticipate that this could most readily be achieved using the reconstructed cubes .
to avoid loss of spatial resolving power caused by any shift- and co - adding algorithm due to the re - binning of the data ( for example , fruchter & hook , 2002 ) , we minimize the necessary re - binning steps by incorporating dither offsets parallel to the slice into the reconstruction algorithm itself .
this has the advantage that only one re - binning step is required from detector data to reconstructed cubes , while dither offsets in the across slice direction can be corrected and combined afterwards using an interlacing method .
we expect more sophisticated techniques than we have developed so far to be incorporated into the data reduction pipeline before launch .
we attempted to measure the mrs psf during flight model testing at ral using the miri telescope simulator ( mts ) , described in paper ii .
however , optical aberrations and vignetting in the mts led to the generated point source being elongated and extended at short wavelengths , such that it did not provide a sufficiently point - like image . even at longer wavelengths , where aberrations became less apparent as diffraction started to dominate ,
the measured psf was broader than nominal due to vignetting in the telescope simulator .
we therefore repeated the psf measurement on the flight model during the first cryo - vacuum test campaign at nasa - goddard ( cv1rr ) , where a compact and well defined point source was available .
deep exposures at 17 different locations in the mrs field were combined and reconstructed to form the psf image for channel 1a , shown in figure 16 . for these data ,
the spectral coverage was limited to a narrow ( 0.125 @xmath0 m wide ) wavelength range around 5.6  @xmath0 m .
a comparison with the model psf ( pure diffraction limited fourier - transformed jwst pupil ) shows a very good match across the slices . in the along - slice direction , a broadening of approximately 50%
is observed .
currently , possible causes considered for the broadening include scattering in the detector substrate ( the detector halo effect , which is also observed in the imager and is discussed in rieke et al . , ( 2014 , paper vii ) or a side - effect of the straylight discussed in section [ subsec : mylabel6 ] . in the case of the halo effect ,
the larger degree of broadening seen in the mrs may be due to the larger spatial sample per pixel .
more detailed modelling is required to confirm the root cause .
spectral fringes are a common characteristic of infrared spectrometers . they originate from interference at plane - parallel surfaces in the light path of the instrument .
these surfaces act as fabry - prot etalons , each of which can absorb light from the source signal with a unique fringe pattern . in the infrared wavelength range , surfaces separated by a fraction of a mm up to a few cm may form very efficient etalons . the most obvious source of fringes in the mrs is the detector itself with a physical thickness of 500 @xmath0 m ( paper vii ) .
similar fringes have also been observed in spectra measured with the miri verification model during testing and with the spitzer - irs instrument , which employs comparable ( though smaller ) si : as bib detectors , lahuis & boogert ( 2003 ) .    for the initial analysis we follow the formalism
as defined in kester et al . , ( 2003 ) and lahuis & boogert , ( 2003 ) .
the sine approximation , @xmath23 _ _ cos(2__@xmath24 _ _ sin(2__@xmath25 , is used with @xmath26 being the wavenumber and @xmath27 the optical thickness of the instrument component .
of primary interest to help in the identification and first characterization of the fringes is the optical thickness @xmath27 . in the mrs test data three distinct fringe components
are seen , with key parameters listed in table 4 .    of the three fringe components two
are directly matched to optical components in the instrument .
the main fringe component ( # 1 in table 4 ) has a derived optical thickness of approximately 3.5 mm for all sub - bands .
this corresponds to the optical thickness of the detector substrate which has d @xmath6 500 @xmath28 m and n @xmath6 3.42 , giving d @xmath6 0.34 cm .
figure 17 gives an illustration of this fringe pattern , showing the main detector and dichroic fringes in more detail for channel 4 .
the optical thickness derived for the second , high frequency , component ( d @xmath6 2.7 cm ) is matched to that of the cdte dichroic filters ( section 2.2 ) . for the third set of low frequency components ( d = 0.01 to 0.1 cm ) ,
no unique surfaces in the instrument are identified ; instead these are likely to originate from beating between primary fringe components .
the fringe variations come from the layered structure of the detector substrate and optical thickness differences between individual dichroic filters .
figure 18 shows the peak normalized fringes over the entire wavelength range of the mrs .
the two curves in figure 18 show predictions for the expected fringe amplitudes based on representative anti - reflection ( ar ) coating profiles as applied to the miri flight detectors .
the solid curve assumes a pure two - sided etalon while the dashed - dotted curve simulates a back - illuminated surface with a fully reflective front surface and photon absorption in the active layer ( adopted from woods et al . , 2011 ) .
though not a perfect match , this approximate detector model does reproduce the general trend and magnitude of the fringes .
fringe removal will be achieved using the techniques developed for and applied to iso and spitzer data ( see lahuis & van dishoeck , 2000 ; kester et al . , 2003 ; lahuis & boogert , 2003 ) .
this involves dividing the observed spectra by a fringe flat - field followed by the removal of fringe residuals using the sine fitting method .
this approach has proven to be reliable and robust for most spectra and the experience with iso and spitzer has shown that it allows the removal of fringe residuals down to the noise level .
the main limitations with this technique are the definition of the spectral continuum in the presence of spectral features and isolating the fringe spectrum from broad molecular ( vibration-)rotation bands ( e.g. those of c@xmath29h@xmath29 , hcn , co@xmath29 and h@xmath29o ) .    for the miri ifu
other effects play a role and may limit the fringe removal for point and compact source measurements .
the two major effects are ; i ) the illumination ( and its effective angle ) on the detector depends on the source morphology ( position and extent ) and ii ) the wavelength depends on the spatial location of the point source in the ifu field .
this results in i ) changes in the effective optical thickness from source to source and ii ) a wavelength shift with spatial offset .
both modify the detailed fringe pattern for individual cases .
figure 19 illustrates this with point source measurements from the cv1rr test campaign and using extended source blackbody spectra from flight model testing at ral .
small sub - pixel pointing offsets are seen to have a discernable impact on the fringe pattern .
these effects can be mitigated by traditional fringe removal techniques using optimized and iterative reduction algorithms ( e.g. by modifying , shifting and stretching the reference fringe spectrum before applying it ) .
this has been used in individual iso and spitzer cases and the miri team will work on developing optimized methods for the mrs . for miri
an alternative model - based approach is also under study which uses the observed source morphology to define the fringe spectrum .
this method will be applicable to both the mrs and the lrs , and will complement the traditional fringe removal techniques .
this requires both a well - defined and well - calibrated fringe model ( an ongoing miri team activity ) and a flexible and iterative reduction pipeline ( in development at stsci based on input from the miri team ) .
we determined the pixel - to - pixel variation of the response for both short and long wavelength detectors , using measurements taken during testing at ral .
the illumination was provided by an external , extended source in the mts .
a number of exposures measured over the period of the whole test run and covering the full mrs wavelength range were included in this calculation .
we first de - fringed the data using the prescription described in section [ subsec : spectral ] , with the results illustrated in figure 17 .
we then calculated the mean value of each pixel , @xmath30 , by averaging over 5 x 5 pixel boxes centered on pixel ( @xmath31 and accounting for pixels close to the edges of the slices or near bad pixel clusters .
the original data were then divided by these averaged values to create a map of the normalized pixel gain .
we checked the distribution of the pixel - to - pixel variation for each exposure in all the available data for both detectors and all the sub - bands and found that the distribution is gaussian with a full - width - half - maximum of @xmath62% ( figure 20 ) .
the variation among different datasets has a standard deviation of @xmath32 0.2% for 16 different observations .
the pixel - to - pixel variation does not appear to be wavelength dependent as both short and long wavelength detectors show the same overall flatness .
this uniformity suggests that the correction of pixel response variations on orbit can be achieved using infrequent calibration measurements .
the absolute responsivity of the mrs is expressed in terms of the quantity referred to as the photon conversion efficiency ( pce ) , which is equal to the number of electrons detected by the focal plane array for each photon incident at the miri entrance focal plane .
the wavelength - dependent pces for the mrs were derived during testing at ral .
this was done by configuring the mts to provide extended illumination of the miri entrance pupil with the spectral energy distributions of blackbodies of 400 , 600 and 800 kelvin . for each mts blackbody configuration ,
mrs spectra were obtained in all 12 spectral bands , together with background measurements using the blank position in the mts filter wheel .
the data were processed using the standard dhas tool ( paper ii ) , which converts the raw readouts of the integration ramps to slopes in physical units ( electrons / sec ) .
the dhas miricube module , which performs the reconstruction technique described in section [ subsec : mylabel4 ] , was then used to construct spectral cubes from the slope images , re - gridding the focal plane array pixel signals onto an equidistant spectral cube .
the spectral cubes of the background measurements ( mts filter blank position ) were subtracted from the flood illumination measurements to correct for the test facility background .
the spectral cubes produced with the dhas miricube routine have a fully calibrated wcs with the plate scale and wavelength coverage of every cube pixel . when combined with an estimate for the absolute flux delivered to the entrance focal plane by the mts ( paper ii ) , this allows us to calculate the photon conversion efficiency in every pixel of the spectral cube for all mrs spectral bands .
table 5 lists the mean pces for all mrs bands .
we estimate the fractional error to be 20 % in these figures , due to systematic effects , primarily in estimating the absolute flux from the mts .
one obvious feature of table 5 is the sharp drop in pce from channel 3 to channel 4 .
the pce in channel 4 is roughly a factor of 2.5 lower than was expected from sub - system measurements of the nominal mrs optical train .
the extra loss was identified ( m. te plate , esa , private communication ) as being caused by a fault in the groove profiles of the channel 4 gratings , which can not be corrected before launch .
following the procedure to determine the photon conversion efficiency , we can establish a first spectrophotometric calibration . by comparing the flux conversion factors derived from blackbody measurements of the mts at 400 , 600 and 800k
, we can assess the achievable spectrophotometric calibration accuracy .
figure 21 shows the ratios of the different obtained flux conversion factors as a function of wavelength .
we are encouraged by the good agreement ( less than 2 % variation ) over a large swathe of the mrs wave - band .      as described in sections 2.3 and 2.5 ,
great care was taken to minimise sources of straylight and optical cross - talk within the mrs ifus .
however , a source of straylight was detected during ral testing , which was identified as being caused by scattering in optical components within the smo .
the stray light is manifested as a signal that extends in the detector row direction .
its magnitude is proportional to that of bright illuminated regions of the spectral image , at a ratio that falls with increasing wavelength , from about 2 % in channel 1a to undetectably low levels longward of channel 2b .
[ fig23 ] emphasises the impact of the straylight in channel 1b , using the wavelength - averaged , reconstructed image of a bright source ( seen at the top - left ) .
the straylight signature is seen as the two horizontal bands , where the variation in brightness with the ` alpha ' coordinate is well explained by the mapping between alpha and detector row coordinate .
the development of algorithms for correction of this straylight is underway .
they take advantage of the stray - light being the dominant signal in the inter - slice regions of the detector , thereby making it amenable to accurate characterisation .
initial indications ( figure 22 ) suggest that an effective correction algorithm will be available before launch .
testing at ral revealed a gap in the performance of the train of dichroics described in section 2.2 .
the set of filters that define the pass - band for channel 3 , sub - band a , have an unwanted ( but small ) transmission peak at a wavelength of 6.1 @xmath0 m , which allows light in the second diffraction order to reach the detector at the position where 12.2 @xmath0 m light is detected in the first diffraction order .
this leak was confirmed using fabry - prot etalon data and characterised to produce the leak profile plotted in figure 23 .
this curve can be interpreted as the transmission profile by which the 6.1 @xmath0 m spectrum of a target object should be multiplied to determine the leakage signal at 12.2 @xmath0 m .
there are two options for mitigating the effects of the spectral leak .
first , the channel 3a spectrum can be corrected by multiplying an observation of the 6.1 @xmath0 m ( channel 1b ) spectrum of the target object by the leak profile , resampling the wavelength scale of the resulting spectrum to the wavelength grid of channel 3a and then subtracting it from the contaminated channel 3a spectrum .
this requires that a separate channel 1b observation has been taken .
the second method would be to make the channel 3a observation with dichroic wheel 1 set to use the sub - band c dichroics ( see section 2.2 to see what this means in terms of the optical train ) .
this combination of dichroics reduces the spectral leak by a factor of more than 1000 at @xmath33 = 6.1 @xmath28 m .
the unwanted side - effect of this solution is up to a factor of three loss of pce at the short wavelength ends of channel 2a and channel 4a .
we have presented the key parameters that describe the performance of the miri mrs spectrometer as designed or measured , in a form that both provides our best estimate of the behaviour of the instrument on - orbit and also that is accessible to the prospective user .
the optical design behind the parameters is presented at a level of detail that is intended to provide the astronomer with an understanding of what to expect in terms of operating restrictions and data format when planning observations .
the impact of straylight and spectral leaks in contaminating the spectral images has been discussed , along with proposals of operational and analytical techniques that should mitigate their effects . when combined with the latest sensitivity estimates ( glasse et al . , 2014 , paper ix ) , we are confident that the miri mrs will meet all of its scientific objectives as part of the jwst observatory .
the work presented is the effort of the entire miri team and the enthusiasm within the miri partnership is a significant factor in its success .
miri draws on the scientific and technical expertise many organizations , as summarized in papers i and ii .
a portion of this work was carried out at the jet propulsion laboratory , california institute of technology , under a contract with the national aeronautics and space administration .
we would like to thank the following national and international funding agencies for their support of the miri development : nasa ; esa ; belgian science policy office ; centre nationale detudes spatiales ; danish national space centre ; deutsches zentrum fur luft - und raumfahrt ( dlr ) ; enterprise ireland ; ministerio de economi y competividad ; netherlands research school for astronomy ( nova ) ; netherlands organisation for scientific research ( nwo ) ; science and technology facilities council ; swiss space office ; swedish national space board ; uk space agency .
lccccc slice width & arcsec & 0.176 & 0.277 & 0.387 & 0.645 + number of slices & | & 21 & 17 & 16 & 12 +   @xmath35 & pixels & 1.405 & 1.452 & 1.629 & 2.253 + slice width at detector & & & & & +  @xmath36 & pixels & 1.791 & 1.821 & 2.043 & 2.824 + pixel size along slice & arcsec / pixel & 0.196 & 0.196 & 0.245 & 0.273 + fov ( across @xmath37 along slices ) & arcsec & 3.70 @xmath37 3.70 & 4.71 @xmath37 4.52 & 6.19 @xmath37 6.14 & 7.74 @xmath37 7.95 + & & sub - band a & & & + wavelength range   @xmath38 - @xmath39 & @xmath28 m & 4.87 - 5.82 & 7.45 - 8.90 & 11.47 - 13.67 & 17.54 - 21.10 + resolution & @xmath40 & 3320 - 3710 & 2990 - 3110 & 2530 - 2880 & 1460 - 1930 + & & sub - band b & & & + wavelength range   @xmath41 - @xmath42 & @xmath28 m & 5.62 - 6.73 & 8.61 - 10.28 & 13.25 - 15.80 & 20.44 - 24.72 + resolution & @xmath40 & 3190 - 3750 & 2750 - 3170 & 1790 - 2640 & 1680 - 1770 + & & sub - band c & & & + wavelength range   @xmath41 - @xmath42 & @xmath28 m & 6.49 - 7.76 & 9.91 - 11.87 & 15.30 - 18.24 & 23.84 - 28.82 + resolution & @xmath40 & 3100 - 3610 & 2860 - 3300 & 1980 - 2790 & 1630 - 1330 +    lcc dichroic 1a & 4.84 - 5.83 & 7.40 - 21.22 + dichroic 1b & 5.59 - 6.73 & 8.55 - 24.73 + dichroic 1c & 6.45 - 7.77 & 9.87 - 28.5 + dichroic 2a & 7.40 - 8.91 & 11.39 - 21.22 + dichroic 2b & 8.55 - 10.29 & 13.16 - 24.73 + dichroic 2c & 9.87 - 11.88 & 15.20 - 28.5 + dichroic 3a & 11.39 - 13.68 & 17.45 - 21.22 + dichroic 3b & 13.16 - 15.80 & 20.34 - 24.73 + dichroic 3c & 15.20 - 18.25 & 23,72 - 28.5 +    cccccc & & channel 1 & & & + a & 266.67 & & & & + b & 230.77 & 28 & 44 & 55.46 & 29.2 + c & 200.00 & & & & + & & channel 2 & & & + a & 171.43 & & & & + b & 148.45 & 30 & 63 & 54.46 & 28.5 + c & 128.57 & & & & + & & channel 3 & & & + a & 112.06 & & & & + b & 96.97 & 30 & 63 & 54.46 & 28.5 + c & 83.96 & & & & + & & channel 4 & & & + a & 71.43 & & & & + b & 61.28 & 34 & 64 & 53.46 & 27.2 + c & 52.55 & & & & +                                                                m ( top left ) compared with the fft of the jwst pupil ( top right ) and normalized peak profiles of the measured ( black ) and modelled ( red ) for the along - slice ( bottom left ) and across - slice direction ( bottom right ) .
the x - axis is multiplied by two for the lower figures.,width=480 ]