
# run 01
mkdir run_01
sex -c sex.conf -CATALOG_NAME test_01.cat -DETECT_THRESH 1.5 -FILTER N -BACK_VALUE 0.00069 -BACK_TYPE MANUAL \
    -CHECKIMAGE_NAME segmentation_01.fits,back_01.fits,minusback_01.fits,objects_01.fits,apertures_01.fits,filtered_01.fits \
    LGAL_IC342-fd-int.fits


# run 02
mkdir run_02
sex -c sex.conf -CATALOG_NAME run_02/test_02.cat -DETECT_THRESH 1.5 -FILTER Y -BACK_SIZE 16 -BACK_VALUE 0.00394 -BACK_TYPE MANUAL -DEBLEND_NTHRESH 20 -DEBLEND_MINCONT 0.05 \
    -WRITE_XML Y -XML_NAME run_02/run_02.xml \
    -CHECKIMAGE_NAME run_02/segmentation_02.fits,run_02/back_02.fits,run_02/minusback_02.fits,run_02/objects_02.fits,run_02/apertures_02.fits,run_02/filtered_02.fits \
    LGAL_IC342-nd-int.fits


mkdir run_03
sex -c sex.conf -CATALOG_NAME run_03/test_03.cat -DETECT_THRESH 1.5 -FILTER Y -BACK_SIZE 16 -BACK_VALUE 0.00394 -BACK_TYPE MANUAL -DEBLEND_NTHRESH 15 -DEBLEND_MINCONT 0.1 -DETECT_MINAREA 30 \
    -WRITE_XML Y -XML_NAME run_03/run_03.xml \
    -WEIGHT_IMAGE LGAL_IC342-nd-rrhr.fits \
    -CHECKIMAGE_NAME run_03/segmentation_03.fits,run_03/back_03.fits,run_03/minusback_03.fits,run_03/objects_03.fits,run_03/apertures_03.fits,run_03/filtered_03.fits \
    LGAL_IC342-nd-int.fits


mkdir run_04
sex -c sex.conf -CATALOG_NAME run_04/test_04.cat -DETECT_THRESH 1.5 -FILTER Y -BACK_SIZE 16  -BACK_VALUE 0.00394 -BACK_TYPE MANUAL \
    -WRITE_XML Y -XML_NAME run_04/run_04.xml \
    -CHECKIMAGE_NAME run_04/segmentation_04.fits,run_04/back_04.fits,run_04/minusback_04.fits,run_04/objects_04.fits,run_04/apertures_04.fits,run_04/filtered_04.fits \
    LGAL_IC342-nd-int.fits


mkdir run_05
sex -c sex.conf -CATALOG_NAME run_05/test_05.cat -DETECT_THRESH 1.5 -FILTER Y -BACK_VALUE 0.00069 -BACK_SIZE 16 -BACK_TYPE MANUAL -DETECGT_MINAREA 25 \
    -WRITE_XML Y -XML_NAME run_05/run_05.xml \
    -WEIGHT_IMAGE LGAL_IC342-fd-rrhr.fits \
    -CHECKIMAGE_NAME run_05/segmentation_05.fits,run_05/back_05.fits,run_05/minusback_05.fits,run_05/objects_05.fits,run_05/apertures_05.fits,run_05/filtered_05.fits \
    LGAL_IC342-fd-int.fits


mkdir run_06
sex -c sex.conf -CATALOG_NAME run_06/test_06.cat -DETECT_THRESH 1.5 -FILTER N -BACK_VALUE 0.0 -BACK_TYPE MANUAL \
    -WRITE_XML Y -XML_NAME run_06/run_06.xml \
    -CHECKIMAGE_NAME run_06/segmentation_06.fits,run_06/back_06.fits,run_06/minusback_06.fits,run_06/objects_06.fits,run_06/apertures_06.fits,run_06/filtered_06.fits \
    LGAL_IC342-nd-int.fits


mkdir run_07
sex -c sex.conf -CATALOG_NAME run_07/test_07.cat -DETECT_THRESH 1.0 -DETECT_MINAREA 25 -FILTER Y -BACK_VALUE 0.00394 -BACK_TYPE MANUAL \
    -WRITE_XML Y -XML_NAME run_07/run_07.xml \
    -WEIGHT_IMAGE LGAL_IC342-nd-rrhr.fits \
    -CHECKIMAGE_NAME run_07/segmentation_07.fits,run_07/back_07.fits,run_07/minusback_07.fits,run_07/objects_07.fits,run_07/apertures_07.fits,run_07/filtered_07.fits \
    LGAL_IC342-nd-int.fits

mkdir run_08
sex -c sex.conf -CATALOG_NAME run_08/test_08.cat -DETECT_THRESH 1.0 -DETECT_MINAREA 15 -FILTER Y -BACK_VALUE 0.00394 -BACK_TYPE MANUAL -DEBLEND_NTHRESH 20\
    -DEBLEND_MINCONT 0.05 \
    -WRITE_XML Y -XML_NAME run_08/run_08.xml \
    -WEIGHT_IMAGE LGAL_IC342-nd-rrhr.fits \
    -CHECKIMAGE_NAME run_08/segmentation_08.fits,run_08/back_08.fits,run_08/minusback_08.fits,run_08/objects_08.fits,run_08/apertures_08.fits,run_08/filtered_08.fits \
    LGAL_IC342-nd-int.fits





mkdir run_fuv+nuv
sex -c sex.conf -CATALOG_NAME run_fuv+nuv/test_nuv.cat -DETECT_THRESH 1.5 -FILTER Y -BACK_SIZE 16 -BACK_VALUE 0.00394 -BACK_TYPE MANUAL -DEBLEND_NTHRESH 15 -DEBLEND_MINCONT 0.1 -DETECT_MINAREA 30 \
    -WRITE_XML Y -XML_NAME run_fuv+nuv/run_fuv+nuv.xml \
    -WEIGHT_IMAGE LGAL_IC342-nd-rrhr.fits \
    -CHECKIMAGE_NAME run_fuv+nuv/segmentation_nuv.fits,run_fuv+nuv/back_nuv.fits,run_fuv+nuv/minusback_nuv.fits,run_fuv+nuv/objects_nuv.fits,run_fuv+nuv/apertures_nuv.fits,run_fuv+nuv/filtered_nuv.fits \
    LGAL_IC342-nd-int.fits

sex -c sex.conf -CATALOG_NAME run_fuv+nuv/test_fuv.cat -DETECT_THRESH 1.5 -FILTER Y -BACK_SIZE 16 -BACK_VALUE 0.00394,0.0007 -BACK_TYPE MANUAL -DEBLEND_NTHRESH 15 -DEBLEND_MINCONT 0.1 -DETECT_MINAREA 30 \
    -WRITE_XML Y -XML_NAME run_fuv+nuv/run_fuv+nuv.xml \
    -WEIGHT_IMAGE LGAL_IC342-nd-rrhr.fits \
    -CHECKIMAGE_NAME run_fuv+nuv/segmentation_fuv.fits,run_fuv+nuv/back_fuv.fits,run_fuv+nuv/minusback_fuv.fits,run_fuv+nuv/objects_fuv.fits,run_fuv+nuv/apertures_fuv.fits,run_fuv+nuv/filtered_fuv.fits \
    LGAL_IC342-nd-int.fits,LGAL_IC342-fd-int.fits






mkdir run_ha+nuv
sex -c sex.conf -CATALOG_NAME run_ha+nuv/test_nuv.cat -DETECT_THRESH 1.5 -FILTER Y -BACK_SIZE 16 -BACK_VALUE 0.00394 -BACK_TYPE MANUAL -DEBLEND_NTHRESH 15 -DEBLEND_MINCONT 0.1 -DETECT_MINAREA 30 \
    -WRITE_XML Y -XML_NAME run_ha+nuv/run_ha+nuv.xml \
    -WEIGHT_IMAGE LGAL_IC342-nd-rrhr.fits \
    -CHECKIMAGE_NAME run_ha+nuv/segmentation_nuv.fits,run_ha+nuv/back_nuv.fits,run_ha+nuv/minusback_nuv.fits,run_ha+nuv/objects_nuv.fits,run_ha+nuv/apertures_nuv.fits,run_ha+nuv/filtered_nuv.fits \
    LGAL_IC342-nd-int.fits

sex -c sex.conf -CATALOG_NAME run_ha+nuv/test_ha.cat -DETECT_THRESH 1.5 -FILTER Y -BACK_SIZE 16 -BACK_VALUE 0.00394,-17.3854 -BACK_TYPE MANUAL -DEBLEND_NTHRESH 15 -DEBLEND_MINCONT 0.1 -DETECT_MINAREA 30 \
    -WRITE_XML Y -XML_NAME run_ha+nuv/run_ha+nuv.xml \
    -WEIGHT_IMAGE odi_haweight_fov_matched.fixed.fits \
    -CHECKIMAGE_NAME run_ha+nuv/segmentation_ha.fits,run_ha+nuv/back_ha.fits,run_ha+nuv/minusback_ha.fits,run_ha+nuv/objects_ha.fits,run_ha+nuv/apertures_ha.fits,run_ha+nuv/filtered_ha.fits \
    LGAL_IC342-nd-int.fits,odi_ha_fov_matched.fixed.fits


mkdir run_r+nuv
sex -c sex.conf -CATALOG_NAME run_r+nuv/test_nuv.cat -DETECT_THRESH 1.5 -FILTER Y -BACK_SIZE 16 -BACK_VALUE 0.00394 -BACK_TYPE MANUAL -DEBLEND_NTHRESH 15 -DEBLEND_MINCONT 0.1 -DETECT_MINAREA 30 \
    -WRITE_XML Y -XML_NAME run_r+nuv/run_r+nuv.xml \
    -WEIGHT_IMAGE LGAL_IC342-nd-rrhr.fits \
    -CHECKIMAGE_NAME run_r+nuv/segmentation_nuv.fits,run_r+nuv/back_nuv.fits,run_r+nuv/minusback_nuv.fits,run_r+nuv/objects_nuv.fits,run_r+nuv/apertures_nuv.fits,run_r+nuv/filtered_nuv.fits \
    LGAL_IC342-nd-int.fits

sex -c sex.conf -CATALOG_NAME run_r+nuv/test_r.cat -DETECT_THRESH 1.5 -FILTER Y -BACK_SIZE 16 -BACK_VALUE 0.00394,-1.57436 -BACK_TYPE MANUAL -DEBLEND_NTHRESH 15 -DEBLEND_MINCONT 0.1 -DETECT_MINAREA 30 \
    -WRITE_XML Y -XML_NAME run_r+nuv/run_r+nuv.xml \
    -WEIGHT_IMAGE odi_rweight_fov_matched.fixed.fits \
    -CHECKIMAGE_NAME run_r+nuv/segmentation_r.fits,run_r+nuv/back_r.fits,run_r+nuv/minusback_r.fits,run_r+nuv/objects_r.fits,run_r+nuv/apertures_r.fits,run_r+nuv/filtered_r.fits \
    LGAL_IC342-nd-int.fits,odi_r_fov_matched.fixed.fits





