<<file level1b_miri_fm1_lrs>>
<<header primary>>
#include "level1b.gen.inc"
#include 'observation_identifiers.gen.inc'
#include 'exposure_parameters.gen.inc'
#include 'program_information.gen.inc'
#include 'observation_information.gen.inc'
#include 'visit_information.gen.inc'
#include 'exposure_information.gen.inc'
#include 'target_information.gen.inc'
#include 'exposure_times.gen.inc'
#include 'exposure_time_parameters.gen.inc'
#include 'miri_fm1_subarray_parameters.gen.inc'
#include 'miri_configuration.gen.inc'
#include 'lamp_configuration.gen.inc'
#include 'guide_star_information.gen.inc'
#include 'jwst_ephemeris_information.gen.inc'
#include 'spacecraft_pointing_information.gen.inc'
#include 'aperture_pointing_information.gen.inc'
#include 'wcs_parameters_miri_lrs.gen.inc'
#include 'velocity_aberration_correction.gen.inc'
#include 'miri_lrs_dither_pattern.gen.inc'
#include 'time_related.gen.inc'

<<data>>

<<header science>>
#include 'level1b_sci_extension_basic.gen.inc'

<<data>>
input[0].data.reshape((input[0].header['NINT'], \
                       input[0].header['NGROUP'], \
                       input[0].header['NAXIS2'], \
                       input[0].header['NAXIS1'])). \
                       astype('uint16')

<<header refout>>
EXTNAME = "REFOUT"

<<data>>
input[1].data.reshape((input[0].header['NINT'], \
                       input[0].header['NGROUP'], \
                       input[1].header['NAXIS2'], \
                       input[1].header['NAXIS1'])). \
                       astype('uint16')
