Trims and bias subtracts an LRS2 image. The bias overscan is taken to be column 2066 to column 2128, and the resultant output image has a size of 2048 x 1032. This size can be handled by the SCO gfortran image-processing codes.
% lrs2_bias_sub.sh --help EXAMPLE: % lrs2_bias_sub.sh /media/sco/DataDisk1/sco/AD/HET_work/HET_acm+lrs2/HET_IZw136/20200530/lrs2/lrs20000009/exp01/lrs2/20200530T042121.0_056RL_sci.fits % ls 20200530T042121.0_056RL_sci.fits lrs_bsub.fits Here is the tail end of the new FITS headers: % imhead 20200530T042121.0_056RL_sci.fits > A % tail -3 A BIASSUB = 1170.0317 / LRS2 bias value from overscan BIASME = 0.0223 / LRS2 bias mean error ENDIn Aug2020 I fixed up some problems with the header cards that were causing problems with reading coordinates when using ds9 to view the output image. Also, I leave a copy of the output image with the generic name (lrs_bsub.fits) as they can be used by some downstream codes.