SWIMS Imaging Data Reduction Pipeline, written in Python, processes SWSB*/SWSR* FITS data to produce a final stacked image in a standard manner.
| File | Contents |
| Python core scripts (swsred/*py) and configuration/utility files |
| File | Contents |
| Bad pixel mask files for S18A data | |
| Bad pixel mask files for S18B data | |
| Bad pixel mask files for S20B data |
| File | Contents |
| Mosaic parameter files for S18A data | |
| Mosaic parameter files for S18B data |
BBF: Broad-band filters, MBF: Medium-band filters, NBF: Narrow-band filters
| File | Contents |
| Flat files for S18A BBF data | |
| Flat files for S18B BBF data | |
| Flat files for S18B MBF data | |
| Flat files for S18B Blue NBF data | |
| Flat files for S18B Red NBF data | |
| Flat files for S20B BBF data |
Use these test data to check if your swsred works.
| File | Contents |
| J1-band data (4 frames x 2 arrays) | |
| H1-band data (4 frames x 2 arrays) |
The reduced images should be like these.
| File | Contents |
| Stacked image (after two iterations) on the blue array #1 | |
| Stacked image (after two iterations) on the blue array #2 | |
| Stacked image (after two iterations) on the red array #1 | |
| Stacked image (after two iterations) on the redarray #2 | |
| Mosaicked image (after two iterations) on the blue arrays | |
| Mosaicked image (after two iterations) on the red arrays |
SWSRED requires the following python packages and astrOmatic softwares.
| Package | Tested version | |
| Python | 2.7.17 | 3.7.7 |
| astropy | 2.0.9 | 4.0 |
| numpy | 1.16.6 | 1.18.1 |
| scipy | 1.2.1 | 1.4.1 |
| matplotlib | 2.2.3 | 3.1.3 |
| sextractor | 2.19.5 | 2.19.5 |
| scamp | 2.7.8 | 2.7.8 |
| swarp | 2.38.0 | 2.38.0 |
Also, Internet connection is required during reducing data to access Pan-STARRS/2MASS catalogs.
% cd SWSRED_DIRECTORY % tar xvf swsred_20210131.tgz % tar xvf swsred_calib_bpm_s18a_20210131.tgz % tar xvf swsred_calib_bpm_s18b_20210131.tgz % tar xvf swsred_calib_bpm_s20b_20210131.tgz % tar xvf swsred_calib_mosaic_s18a_20210131.tgz % tar xvf swsred_calib_mosaic_s18b_20210131.tgz % tar xvf swsred_calib_flat_s18a_20210131.tgz % tar xvf swsred_calib_flat_s18b_20210131.tgz % tar xvf swsred_calib_flat_s20b_20210131.tgz
% export PYTHONPATH="SWSRED_DIRECTORY:${PYTHONPATH}
SWSRED has no documentations yet, but you can use a dirty script 'swsred/reduce_all.py' as a quick tutorial to learn how to use the software.
Be sure to use SWSRED within python (e.g., in ipython or jupyter, etc.), not via the command line.
Here is a quick introduction to use SWSRED.
> import glob
> in_arr1 = glob.glob("DATA/PATH/SWSB*1.fits") # blue chip1 data
> import swsred.make_file_lst > file_lst1 = swsred.make_file_lst.make_file_lst(in_arr1)
| Key | Value | Description |
| in | data/path/SWSB00000001.fits | input filename |
| ff | ffSWSB00000001.fits | filename of flat-fielded data |
| ms | msSWSB00000001.fits | filename of self-sky data |
| ss | ssSWSB00000001.fits | filename of sky-subtracted data |
| wc | wcSWSB00000001.fits | filename of WCS-corrected data |
| bpm | /SWSRED_DIRECTORY/calib/bpm_sXXY_b1.fits | filename of Bad-pixel mask (XXY denotes a semester) |
| wht | SWSB00000001_wht.fits | filename of weight map (created by make_weight_map module) |
| omsk | SWSB00000001_omsk.fits | filename of object mask |
| ldac | ssSWSB00000001.ldac | filename of SExtractor LDAC catalog |
| ascii | ssSWSB00000001.ascii | filename of SExtractor ASCII catalog |
| head | ssSWSB00000001.head | filename of SExtractor HEAD file |
> import swsred.flat_field > swsred.flat_field.flat_field(file_lst1["in"], file_lst1["ff"])
Refer to 'swsred/reduce_all.py' for all the procedures.
Please send your bug reports or questions to konishi__at__ioa.s.u-tokyo.ac.jp.