Loading csst/msc/calib_flux.py 0 → 100644 +19 −0 Original line number Diff line number Diff line from .. import PACKAGE_PATH from ..core.processor import CsstProcessor path_config = PACKAGE_PATH + "/msc/astrometry_config/" class CsstProcFluxCalibration(CsstProcessor): def __init__(self): pass def prepare(self, **kwargs): pass def run(self, **kwargs): pass def cleanup(self): pass No newline at end of file csst/msc/flux_calib_config/cali_default.conv 0 → 100644 +6 −0 Original line number Diff line number Diff line CONV NORM # 3x3 convolution mask of a gaussian PSF with FWHM = 2.0 pixels. 0.260856 0.483068 0.260856 0.483068 0.894573 0.483068 0.260856 0.483068 0.260856 csst/msc/flux_calib_config/cali_default.nnw 0 → 100644 +28 −0 Original line number Diff line number Diff line NNW # Neural Network Weights for the SExtractor star/galaxy classifier (V1.3) # inputs: 9 for profile parameters + 1 for seeing. # outputs: ``Stellarity index'' (0.0 to 1.0) # Seeing FWHM range: from 0.025 to 5.5'' (images must have 1.5 < FWHM < 5 pixels) # Optimized for Moffat profiles with 2<= beta <= 4. 3 10 10 1 -1.56604e+00 -2.48265e+00 -1.44564e+00 -1.24675e+00 -9.44913e-01 -5.22453e-01 4.61342e-02 8.31957e-01 2.15505e+00 2.64769e-01 3.03477e+00 2.69561e+00 3.16188e+00 3.34497e+00 3.51885e+00 3.65570e+00 3.74856e+00 3.84541e+00 4.22811e+00 3.27734e+00 -3.22480e-01 -2.12804e+00 6.50750e-01 -1.11242e+00 -1.40683e+00 -1.55944e+00 -1.84558e+00 -1.18946e-01 5.52395e-01 -4.36564e-01 -5.30052e+00 4.62594e-01 -3.29127e+00 1.10950e+00 -6.01857e-01 1.29492e-01 1.42290e+00 2.90741e+00 2.44058e+00 -9.19118e-01 8.42851e-01 -4.69824e+00 -2.57424e+00 8.96469e-01 8.34775e-01 2.18845e+00 2.46526e+00 8.60878e-02 -6.88080e-01 -1.33623e-02 9.30403e-02 1.64942e+00 -1.01231e+00 4.81041e+00 1.53747e+00 -1.12216e+00 -3.16008e+00 -1.67404e+00 -1.75767e+00 -1.29310e+00 5.59549e-01 8.08468e-01 -1.01592e-02 -7.54052e+00 1.01933e+01 -2.09484e+01 -1.07426e+00 9.87912e-01 6.05210e-01 -6.04535e-02 -5.87826e-01 -7.94117e-01 -4.89190e-01 -8.12710e-02 -2.07067e+01 -5.31793e+00 7.94240e+00 -4.64165e+00 -4.37436e+00 -1.55417e+00 7.54368e-01 1.09608e+00 1.45967e+00 1.62946e+00 -1.01301e+00 1.13514e-01 2.20336e-01 1.70056e+00 -5.20105e-01 -4.28330e-01 1.57258e-03 -3.36502e-01 -8.18568e-02 -7.16163e+00 8.23195e+00 -1.71561e-02 -1.13749e+01 3.75075e+00 7.25399e+00 -1.75325e+00 -2.68814e+00 -3.71128e+00 -4.62933e+00 -2.13747e+00 -1.89186e-01 1.29122e+00 -7.49380e-01 6.71712e-01 -8.41923e-01 4.64997e+00 5.65808e-01 -3.08277e-01 -1.01687e+00 1.73127e-01 -8.92130e-01 1.89044e+00 -2.75543e-01 -7.72828e-01 5.36745e-01 -3.65598e+00 7.56997e+00 -3.76373e+00 -1.74542e+00 -1.37540e-01 -5.55400e-01 -1.59195e-01 1.27910e-01 1.91906e+00 1.42119e+00 -4.35502e+00 -1.70059e+00 -3.65695e+00 1.22367e+00 -5.74367e-01 -3.29571e+00 2.46316e+00 5.22353e+00 2.42038e+00 1.22919e+00 -9.22250e-01 -2.32028e+00 0.00000e+00 1.00000e+00 csst/msc/flux_calib_config/cali_default.param 0 → 100644 +51 −0 Original line number Diff line number Diff line NUMBER X_IMAGE Y_IMAGE ALPHA_J2000 DELTA_J2000 XWIN_IMAGE YWIN_IMAGE ALPHAWIN_J2000 DELTAWIN_J2000 MAG_AUTO MAGERR_AUTO MU_MAX MAG_APER MAGERR_APER FLUX_APER FLUXERR_APER FLUX_RADIUS BACKGROUND FWHM_IMAGE CLASS_STAR FLAGS ELLIPTICITY #VIGNET(63,63) #SNR_WIN #ELONGATION #FLUX_AUTO #FLUXERR_AUTO #FWHM_WORLD #POLAR_WORLD #X2_WORLD #Y2_WORLD #XY_WORLD #A_WORLD #B_WORLD #THETA_WORLD #ERRX2_WORLD #ERRY2_WORLD #ERRXY_WORLD #ERRA_WORLD #ERRB_WORLD #ERRTHETA_WORLD #IMAFLAGS_ISO csst/msc/flux_calib_config/cali_default.sex 0 → 100644 +107 −0 Original line number Diff line number Diff line # Default configuration file for SExtractor 2.12.4 # EB 2010-10-10 # #-------------------------------- Catalog ------------------------------------ CATALOG_NAME test.fits # name of the output catalog CATALOG_TYPE FITS_LDAC # NONE,ASCII,ASCII_HEAD, ASCII_SKYCAT, # ASCII_VOTABLE, FITS_1.0 or FITS_LDAC PARAMETERS_NAME /home/zhouzm/data/csst/code/cali_default.param # name of the file containing catalog contents #------------------------------- Extraction ---------------------------------- DETECT_TYPE CCD # CCD (linear) or PHOTO (with gamma correction) DETECT_MINAREA 3 # min. # of pixels above threshold DETECT_MAXAREA 0 THRESH_TYPE RELATIVE # threshold type: RELATIVE (in sigmas) # or ABSOLUTE (in ADUs) DETECT_THRESH 3.0 # <sigmas> or <threshold>,<ZP> in mag.arcsec-2 ANALYSIS_THRESH 3.0 # <sigmas> or <threshold>,<ZP> in mag.arcsec-2 FILTER Y # apply filter for detection (Y or N)? FILTER_NAME /home/zhouzm/data/csst/code/cali_default.conv # name of the file containing the filter DEBLEND_NTHRESH 64 # Number of deblending sub-thresholds DEBLEND_MINCONT 0.0005 # Minimum contrast parameter for deblending CLEAN Y # Clean spurious detections? (Y or N)? CLEAN_PARAM 0.5 # Cleaning efficiency MASK_TYPE CORRECT # type of detection MASKing: can be one of # NONE, BLANK or CORRECT FITS_UNSIGNED Y # Force 16-bit FITS input data to be # interpreted as unsigned integers #-------------------------------- WEIGHTing ---------------------------------- WEIGHT_TYPE MAP_WEIGHT # type of WEIGHTing: NONE, BACKGROUND, # MAP_RMS, MAP_VAR or MAP_WEIGHT WEIGHT_IMAGE weight.fits # weight-map filename #------------------------------ Photometry ----------------------------------- # corresponding to diameters of [1.5,3,5,7,9,11.8,13,14.6] arcsec # assuming 0.454 arcsec pixel scale PHOT_APERTURES 10 # MAG_APER aperture diameter(s) in pixels PHOT_AUTOPARAMS 2.5, 3.5 # MAG_AUTO parameters: <Kron_fact>,<min_radius> PHOT_PETROPARAMS 2.0, 3.5 # MAG_PETRO parameters: <Petrosian_fact>, # <min_radius> PHOT_AUTOAPERS 0.0,0.0 # <estimation>,<measurement> minimum apertures # for MAG_AUTO and MAG_PETRO SATUR_LEVEL 5000.0 # level (in ADUs) at which arises saturation SATUR_KEY SATURATEabc # keyword for saturation level (in ADUs) MAG_ZEROPOINT 0.0 # magnitude zero-point MAG_GAMMA 7.0 # gamma of emulsion (for photographic scans) GAIN 1.5 # detector gain in e-/ADU GAIN_KEY GAINabc # keyword for detector gain in e-/ADU PIXEL_SCALE 0 # size of pixel in arcsec (0=use FITS WCS info) #------------------------- Star/Galaxy Separation ---------------------------- SEEING_FWHM 0.15 # stellar FWHM in arcsec STARNNW_NAME /home/zhouzm/data/csst/code/cali_default.nnw # Neural-Network_Weight table filename #------------------------------ Background ----------------------------------- BACK_TYPE AUTO # AUTO or MANUAL BACK_VALUE 0.0 # Default background value in MANUAL mode BACK_SIZE 256 # Background mesh: <size> or <width>,<height> BACK_FILTERSIZE 3 # Background filter: <size> or <width>,<height> BACKPHOTO_TYPE LOCAL # can be GLOBAL or LOCAL BACKPHOTO_THICK 24 # thickness (pix) of background rectangular aperture for LOCAL #------------------------------ Check Image ---------------------------------- CHECKIMAGE_TYPE NONE # can be NONE, BACKGROUND, BACKGROUND_RMS, # MINIBACKGROUND, MINIBACK_RMS, -BACKGROUND, # FILTERED, OBJECTS, -OBJECTS, SEGMENTATION, # or APERTURES CHECKIMAGE_NAME check.fits # Filename for the check-image #--------------------- Memory (change with caution!) ------------------------- MEMORY_OBJSTACK 3000 # number of objects in stack MEMORY_PIXSTACK 300000 # number of pixels in stack MEMORY_BUFSIZE 1024 # number of lines in buffer #------------------------------- ASSOCiation --------------------------------- #ASSOC_NAME sky.list # name of the ASCII file to ASSOCiate #ASSOC_DATA 2,3,4 # columns of the data to replicate (0=all) #ASSOC_PARAMS 2,3,4 # columns of xpos,ypos[,mag] #ASSOC_RADIUS 2.0 # cross-matching radius (pixels) #ASSOC_TYPE NEAREST # ASSOCiation method: FIRST, NEAREST, MEAN, # MAG_MEAN, SUM, MAG_SUM, MIN or MAX #ASSOCSELEC_TYPE MATCHED # ASSOC selection type: ALL, MATCHED or -MATCHED #----------------------------- Miscellaneous --------------------------------- VERBOSE_TYPE NORMAL # can be QUIET, NORMAL or FULL HEADER_SUFFIX .head # Filename extension for additional headers WRITE_XML N # Write XML file (Y/N)? XML_NAME sex.xml # Filename for XML output Loading
csst/msc/calib_flux.py 0 → 100644 +19 −0 Original line number Diff line number Diff line from .. import PACKAGE_PATH from ..core.processor import CsstProcessor path_config = PACKAGE_PATH + "/msc/astrometry_config/" class CsstProcFluxCalibration(CsstProcessor): def __init__(self): pass def prepare(self, **kwargs): pass def run(self, **kwargs): pass def cleanup(self): pass No newline at end of file
csst/msc/flux_calib_config/cali_default.conv 0 → 100644 +6 −0 Original line number Diff line number Diff line CONV NORM # 3x3 convolution mask of a gaussian PSF with FWHM = 2.0 pixels. 0.260856 0.483068 0.260856 0.483068 0.894573 0.483068 0.260856 0.483068 0.260856
csst/msc/flux_calib_config/cali_default.nnw 0 → 100644 +28 −0 Original line number Diff line number Diff line NNW # Neural Network Weights for the SExtractor star/galaxy classifier (V1.3) # inputs: 9 for profile parameters + 1 for seeing. # outputs: ``Stellarity index'' (0.0 to 1.0) # Seeing FWHM range: from 0.025 to 5.5'' (images must have 1.5 < FWHM < 5 pixels) # Optimized for Moffat profiles with 2<= beta <= 4. 3 10 10 1 -1.56604e+00 -2.48265e+00 -1.44564e+00 -1.24675e+00 -9.44913e-01 -5.22453e-01 4.61342e-02 8.31957e-01 2.15505e+00 2.64769e-01 3.03477e+00 2.69561e+00 3.16188e+00 3.34497e+00 3.51885e+00 3.65570e+00 3.74856e+00 3.84541e+00 4.22811e+00 3.27734e+00 -3.22480e-01 -2.12804e+00 6.50750e-01 -1.11242e+00 -1.40683e+00 -1.55944e+00 -1.84558e+00 -1.18946e-01 5.52395e-01 -4.36564e-01 -5.30052e+00 4.62594e-01 -3.29127e+00 1.10950e+00 -6.01857e-01 1.29492e-01 1.42290e+00 2.90741e+00 2.44058e+00 -9.19118e-01 8.42851e-01 -4.69824e+00 -2.57424e+00 8.96469e-01 8.34775e-01 2.18845e+00 2.46526e+00 8.60878e-02 -6.88080e-01 -1.33623e-02 9.30403e-02 1.64942e+00 -1.01231e+00 4.81041e+00 1.53747e+00 -1.12216e+00 -3.16008e+00 -1.67404e+00 -1.75767e+00 -1.29310e+00 5.59549e-01 8.08468e-01 -1.01592e-02 -7.54052e+00 1.01933e+01 -2.09484e+01 -1.07426e+00 9.87912e-01 6.05210e-01 -6.04535e-02 -5.87826e-01 -7.94117e-01 -4.89190e-01 -8.12710e-02 -2.07067e+01 -5.31793e+00 7.94240e+00 -4.64165e+00 -4.37436e+00 -1.55417e+00 7.54368e-01 1.09608e+00 1.45967e+00 1.62946e+00 -1.01301e+00 1.13514e-01 2.20336e-01 1.70056e+00 -5.20105e-01 -4.28330e-01 1.57258e-03 -3.36502e-01 -8.18568e-02 -7.16163e+00 8.23195e+00 -1.71561e-02 -1.13749e+01 3.75075e+00 7.25399e+00 -1.75325e+00 -2.68814e+00 -3.71128e+00 -4.62933e+00 -2.13747e+00 -1.89186e-01 1.29122e+00 -7.49380e-01 6.71712e-01 -8.41923e-01 4.64997e+00 5.65808e-01 -3.08277e-01 -1.01687e+00 1.73127e-01 -8.92130e-01 1.89044e+00 -2.75543e-01 -7.72828e-01 5.36745e-01 -3.65598e+00 7.56997e+00 -3.76373e+00 -1.74542e+00 -1.37540e-01 -5.55400e-01 -1.59195e-01 1.27910e-01 1.91906e+00 1.42119e+00 -4.35502e+00 -1.70059e+00 -3.65695e+00 1.22367e+00 -5.74367e-01 -3.29571e+00 2.46316e+00 5.22353e+00 2.42038e+00 1.22919e+00 -9.22250e-01 -2.32028e+00 0.00000e+00 1.00000e+00
csst/msc/flux_calib_config/cali_default.param 0 → 100644 +51 −0 Original line number Diff line number Diff line NUMBER X_IMAGE Y_IMAGE ALPHA_J2000 DELTA_J2000 XWIN_IMAGE YWIN_IMAGE ALPHAWIN_J2000 DELTAWIN_J2000 MAG_AUTO MAGERR_AUTO MU_MAX MAG_APER MAGERR_APER FLUX_APER FLUXERR_APER FLUX_RADIUS BACKGROUND FWHM_IMAGE CLASS_STAR FLAGS ELLIPTICITY #VIGNET(63,63) #SNR_WIN #ELONGATION #FLUX_AUTO #FLUXERR_AUTO #FWHM_WORLD #POLAR_WORLD #X2_WORLD #Y2_WORLD #XY_WORLD #A_WORLD #B_WORLD #THETA_WORLD #ERRX2_WORLD #ERRY2_WORLD #ERRXY_WORLD #ERRA_WORLD #ERRB_WORLD #ERRTHETA_WORLD #IMAFLAGS_ISO
csst/msc/flux_calib_config/cali_default.sex 0 → 100644 +107 −0 Original line number Diff line number Diff line # Default configuration file for SExtractor 2.12.4 # EB 2010-10-10 # #-------------------------------- Catalog ------------------------------------ CATALOG_NAME test.fits # name of the output catalog CATALOG_TYPE FITS_LDAC # NONE,ASCII,ASCII_HEAD, ASCII_SKYCAT, # ASCII_VOTABLE, FITS_1.0 or FITS_LDAC PARAMETERS_NAME /home/zhouzm/data/csst/code/cali_default.param # name of the file containing catalog contents #------------------------------- Extraction ---------------------------------- DETECT_TYPE CCD # CCD (linear) or PHOTO (with gamma correction) DETECT_MINAREA 3 # min. # of pixels above threshold DETECT_MAXAREA 0 THRESH_TYPE RELATIVE # threshold type: RELATIVE (in sigmas) # or ABSOLUTE (in ADUs) DETECT_THRESH 3.0 # <sigmas> or <threshold>,<ZP> in mag.arcsec-2 ANALYSIS_THRESH 3.0 # <sigmas> or <threshold>,<ZP> in mag.arcsec-2 FILTER Y # apply filter for detection (Y or N)? FILTER_NAME /home/zhouzm/data/csst/code/cali_default.conv # name of the file containing the filter DEBLEND_NTHRESH 64 # Number of deblending sub-thresholds DEBLEND_MINCONT 0.0005 # Minimum contrast parameter for deblending CLEAN Y # Clean spurious detections? (Y or N)? CLEAN_PARAM 0.5 # Cleaning efficiency MASK_TYPE CORRECT # type of detection MASKing: can be one of # NONE, BLANK or CORRECT FITS_UNSIGNED Y # Force 16-bit FITS input data to be # interpreted as unsigned integers #-------------------------------- WEIGHTing ---------------------------------- WEIGHT_TYPE MAP_WEIGHT # type of WEIGHTing: NONE, BACKGROUND, # MAP_RMS, MAP_VAR or MAP_WEIGHT WEIGHT_IMAGE weight.fits # weight-map filename #------------------------------ Photometry ----------------------------------- # corresponding to diameters of [1.5,3,5,7,9,11.8,13,14.6] arcsec # assuming 0.454 arcsec pixel scale PHOT_APERTURES 10 # MAG_APER aperture diameter(s) in pixels PHOT_AUTOPARAMS 2.5, 3.5 # MAG_AUTO parameters: <Kron_fact>,<min_radius> PHOT_PETROPARAMS 2.0, 3.5 # MAG_PETRO parameters: <Petrosian_fact>, # <min_radius> PHOT_AUTOAPERS 0.0,0.0 # <estimation>,<measurement> minimum apertures # for MAG_AUTO and MAG_PETRO SATUR_LEVEL 5000.0 # level (in ADUs) at which arises saturation SATUR_KEY SATURATEabc # keyword for saturation level (in ADUs) MAG_ZEROPOINT 0.0 # magnitude zero-point MAG_GAMMA 7.0 # gamma of emulsion (for photographic scans) GAIN 1.5 # detector gain in e-/ADU GAIN_KEY GAINabc # keyword for detector gain in e-/ADU PIXEL_SCALE 0 # size of pixel in arcsec (0=use FITS WCS info) #------------------------- Star/Galaxy Separation ---------------------------- SEEING_FWHM 0.15 # stellar FWHM in arcsec STARNNW_NAME /home/zhouzm/data/csst/code/cali_default.nnw # Neural-Network_Weight table filename #------------------------------ Background ----------------------------------- BACK_TYPE AUTO # AUTO or MANUAL BACK_VALUE 0.0 # Default background value in MANUAL mode BACK_SIZE 256 # Background mesh: <size> or <width>,<height> BACK_FILTERSIZE 3 # Background filter: <size> or <width>,<height> BACKPHOTO_TYPE LOCAL # can be GLOBAL or LOCAL BACKPHOTO_THICK 24 # thickness (pix) of background rectangular aperture for LOCAL #------------------------------ Check Image ---------------------------------- CHECKIMAGE_TYPE NONE # can be NONE, BACKGROUND, BACKGROUND_RMS, # MINIBACKGROUND, MINIBACK_RMS, -BACKGROUND, # FILTERED, OBJECTS, -OBJECTS, SEGMENTATION, # or APERTURES CHECKIMAGE_NAME check.fits # Filename for the check-image #--------------------- Memory (change with caution!) ------------------------- MEMORY_OBJSTACK 3000 # number of objects in stack MEMORY_PIXSTACK 300000 # number of pixels in stack MEMORY_BUFSIZE 1024 # number of lines in buffer #------------------------------- ASSOCiation --------------------------------- #ASSOC_NAME sky.list # name of the ASCII file to ASSOCiate #ASSOC_DATA 2,3,4 # columns of the data to replicate (0=all) #ASSOC_PARAMS 2,3,4 # columns of xpos,ypos[,mag] #ASSOC_RADIUS 2.0 # cross-matching radius (pixels) #ASSOC_TYPE NEAREST # ASSOCiation method: FIRST, NEAREST, MEAN, # MAG_MEAN, SUM, MAG_SUM, MIN or MAX #ASSOCSELEC_TYPE MATCHED # ASSOC selection type: ALL, MATCHED or -MATCHED #----------------------------- Miscellaneous --------------------------------- VERBOSE_TYPE NORMAL # can be QUIET, NORMAL or FULL HEADER_SUFFIX .head # Filename extension for additional headers WRITE_XML N # Write XML file (Y/N)? XML_NAME sex.xml # Filename for XML output