IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 2, 2010, 3:56:51 PM (16 years ago)
Author:
eugene
Message:

improve tests; extend mkcmf to other cmf types; modifications to support PS1_V2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/addstar/test/simple.dvo

    r27435 r27582  
    44
    55macro test.all
    6   test.fields.type PS1_V1
    7 
     6  test.fields PS1_DEV_0 PS1_V1
     7  test.fields PS1_DEV_1 PS1_V1
     8  test.fields PS1_V1    PS1_V1
     9  test.fields PS1_V2    PS1_V1
     10
     11  test.fields PS1_DEV_0 PS1_V2
     12  test.fields PS1_DEV_1 PS1_V2
     13  test.fields PS1_V1    PS1_V2
     14  test.fields PS1_V2    PS1_V2
    815end 
    916
    1017# create a populated catdir with a single cmf -- test each field
    11 macro test.fields.type
    12   if ($0 != 2)
    13     echo "USAGE: test.fields.type (cmftype) (dvotype?)"
     18macro test.fields
     19  if ($0 != 3)
     20    echo "USAGE: test.fields (cmftype) (dvotype?)"
    1421    break
    1522  end
     
    2431  mkinput
    2532  exec mkcmf test.in.txt test.cmf -date 2008/1/1 -time 01:00:00 -radec $RA $DEC -type $1
    26   exec addstar -D CATDIR catdir.test -D CAMERA simtest test.cmf
     33  exec addstar -D CATDIR catdir.test -D CAMERA simtest test.cmf -D CATFORMAT $2
     34
     35  list testfields -copy testfields_$1
    2736
    2837  catdir catdir.test
     
    7685  end   
    7786
    78   exec rm test.cmf test.in.txt
    79   exec rm -r catdir.test
     87  # exec rm test.cmf test.in.txt
     88  # exec rm -r catdir.test
    8089
    8190  tapDONE
     
    96105
    97106# list of cmf fields to test matched to mextract fields
     107# this list is good for PS1_DEV_0
     108list testfields_PS1_DEV_0
     109  IPP_IDET          : detid
     110  X_PSF             : xccd
     111  Y_PSF             : yccd
     112  X_PSF_SIG         : xccd:err
     113  Y_PSF_SIG         : yccd:err
     114  PSF_INST_MAG      : mag:inst
     115  PSF_INST_MAG_SIG  : mag:err
     116  PEAK_FLUX_AS_MAG  : SKIP
     117  SKY               : sky
     118  SKY_SIG           : sky_err
     119  PSF_CHISQ         : psf_chisq
     120  PSF_WIDTH_X       : FWHM_MAJ
     121  PSF_WIDTH_Y       : FWHM_MIN
     122  PSF_THETA         : THETA
     123  PSF_QF            : PSF_QF
     124  N_FRAMES          : SKIP
     125end
     126
     127# list of cmf fields to test matched to mextract fields
    98128# this list is good for PS1_DEV_1
    99 list testfields_PS1_DEV_V1
     129list testfields_PS1_DEV_1
    100130  IPP_IDET          : detid
    101131  X_PSF             : xccd
     
    119149end
    120150
    121 ... etc ...
    122 # this list is good for PS1_DEV_0
    123 list testfields_PS1_DEV_V0
    124   IPP_IDET          : detid
    125   X_PSF             : xccd
    126   Y_PSF             : yccd
    127   X_PSF_SIG         : xccd:err
    128   Y_PSF_SIG         : yccd:err
    129   PSF_INST_MAG      : mag:inst
    130   PSF_INST_MAG_SIG  : mag:err
    131   PEAK_FLUX_AS_MAG  : SKIP
    132   SKY               : sky
    133   SKY_SIG           : sky_err
    134   PSF_CHISQ         : psf_chisq
    135   CR_NSIGMA         : cr_nsigma
     151# this list is good for PS1_V1
     152list testfields_PS1_V1
     153  IPP_IDET          : detid     
     154  X_PSF             : xccd     
     155  Y_PSF             : yccd     
     156  X_PSF_SIG         : xccd:err #  FAIL
     157  Y_PSF_SIG         : yccd:err # FAIL
     158  RA_PSF            : SKIP # astrometry is not calibrated in the cmf
     159  DEC_PSF           : SKIP # astrometry is not calibrated in the cmf
     160  POSANGLE          : SKIP # astrometry is not calibrated in the cmf
     161  PLTSCALE          : SKIP # astrometry is not calibrated in the cmf
     162  PSF_INST_MAG      : mag:inst 
     163  PSF_INST_MAG_SIG  : mag:err   
     164  AP_MAG_STANDARD   : mag:ap # FAIL
     165  AP_MAG_RADIUS     : SKIP # no accessor
     166  PEAK_FLUX_AS_MAG  : SKIP # no accessor
     167  CAL_PSF_MAG       : SKIP # photometry is not calibrated in the cmf
     168  CAL_PSF_MAG_SIG   : SKIP # photometry is not calibrated in the cmf
     169  SKY               : sky       
     170  SKY_SIG           : sky_err   
     171  PSF_CHISQ         : psf_chisq
     172  CR_NSIGMA         : cr_nsigma
    136173  EXT_NSIGMA        : ext_nsigma
    137   PSF_WIDTH_X       : FWHM_MAJ
    138   PSF_WIDTH_Y       : FWHM_MIN
    139   PSF_THETA         : THETA
    140   PSF_QF            : PSF_QF
    141   N_FRAMES          : SKIP
     174  PSF_MAJOR         : FWHM_MAJ 
     175  PSF_MINOR         : FWHM_MIN 
     176  PSF_THETA         : THETA # FAIL
     177  PSF_QF            : PSF_QF   
     178  PSF_NDOF          : SKIP # no accessor
     179  PSF_NPIX          : SKIP # no accessor
     180  MOMENTS_XX        : SKIP # no accessor
     181  MOMENTS_XY        : SKIP # no accessor
     182  MOMENTS_YY        : SKIP # no accessor
    142183  FLAGS             : phot_flags
    143 end
    144 
     184  N_FRAMES          : SKIP # no accessor       
     185end
     186
     187# this list is good for PS1_V2
     188list testfields_PS1_V2
     189  IPP_IDET          : detid     
     190  X_PSF             : xccd     
     191  Y_PSF             : yccd     
     192  X_PSF_SIG         : xccd:err # FAIL
     193  Y_PSF_SIG         : yccd:err # FAIL
     194  RA_PSF            : SKIP # astrometry is not calibrated in the cmf
     195  DEC_PSF           : SKIP # astrometry is not calibrated in the cmf
     196  POSANGLE          : SKIP # astrometry is not calibrated in the cmf
     197  PLTSCALE          : SKIP # astrometry is not calibrated in the cmf
     198  PSF_INST_MAG      : mag:inst 
     199  PSF_INST_MAG_SIG  : mag:err   
     200  AP_MAG_STANDARD   : mag:ap # FAIL
     201  AP_MAG_RADIUS     : SKIP # no accessor
     202  PEAK_FLUX_AS_MAG  : SKIP # no accessor
     203  CAL_PSF_MAG       : SKIP # photometry is not calibrated in the cmf
     204  CAL_PSF_MAG_SIG   : SKIP # photometry is not calibrated in the cmf
     205  SKY               : sky       
     206  SKY_SIG           : sky_err   
     207  PSF_CHISQ         : psf_chisq
     208  CR_NSIGMA         : cr_nsigma
     209  EXT_NSIGMA        : ext_nsigma
     210  PSF_MAJOR         : FWHM_MAJ 
     211  PSF_MINOR         : FWHM_MIN 
     212  PSF_THETA         : THETA # FAIL
     213  PSF_QF            : PSF_QF   
     214  PSF_NDOF          : SKIP # no accessor
     215  PSF_NPIX          : SKIP # no accessor
     216  MOMENTS_XX        : SKIP # no accessor
     217  MOMENTS_XY        : SKIP # no accessor
     218  MOMENTS_YY        : SKIP # no accessor
     219  FLAGS             : phot_flags
     220  N_FRAMES          : SKIP # no accessor       
     221end
Note: See TracChangeset for help on using the changeset viewer.