Baade + FourStar Reduction Manual
Updated on July 23, 2014 (Carlos)
Copy raw data into the work directory. In this example we will reduce chip 4 data.
mkdir BAA_FS_20241114_15
cd BAA_FS_20241114_15
cp /raw/BAA_FS_20241114_15/fsr*c4.fits .
Copy the corresponding bad-pixel-mask into the working directory.
cp /csp21/csp2/software/FSTAR/BPM/bp_4.fits MASK.fits
Run the FourStar pipeline for the chip number (it typically takes less than 30 min).
4STAR 4
Create the combination sequence lists as:
4STAR_COMBINE_SEMI_AUTO
Combinate each sequence lists as:
4STAR_COMBINE_SEMI_AUTO Long_Loop_xxxx
Then you need to change the orientation of the images, as well as to cut the borders.
For example I typically do for chip 4:
fitscopy stk_012.fits[1700:300,1700:300] stf_012.fits
so the stf_xxx images will be the final images. The orientation of the
original images depends on the chip, but it depends on the object coordinates
as well. So I suggest to look at the finding charts and use fitscopy properly.
Make the astrometric solution of every image with
REM_IMPOSE_WCS stk_006.fits mkwcs.par RA DEC
where RA and DEC are the SN coords in hh:mm:ss.ss dd:mm:ss format.
Run HEADERS to compute and add some necessary keywords.
ls stf*fits > l01
HEADERS @l01 BAA FS
Run SPREAD to create the proper final names of the images.
SPREAD l01 ../CATALOG.txt 5 BAA FS
Check the created file spread.txt makes sense, then execute it.
more spread.txt
source spread.txt
If it corresponds, you can do photometry of the images and upload it of the database.
For example:
ls /csp21/data/SNXXX/SNXXX_XX_BAA_FS_*.fits > lbaa
SN_COORDS SNXXX > cat
MAGINS @lbaa cat /csp21/data/CATALOGS/STDS.txt mags.txt
MAGINS2DB mags.txt
MAGSN SNXXX # Updating the SN photometry
Make sure the images were copied into the data repository, then you delete the fits images from the directory.
rm *fits
The End