IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33158


Ignore:
Timestamp:
Jan 26, 2012, 5:21:27 AM (14 years ago)
Author:
eugene
Message:

test improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20111122/Ohana/src/addstar/test/relphot.flatcorr.dvo

    r33143 r33158  
    5050
    5151  # mjd and zpt values for not-ubercal'ed images
     52  # place this within a valid season (55000.0 - 55010.0 - 55020.0 - 55030.0)
    5253  set zpt_nc = 25.0 - tmpseq*0.0050 + 0.0025
    5354  set mjd_nc = zero(zpt_nc)
    54   mjd_nc[0] = 55100.01
    55   mjd_nc[1] = 55100.02
    56   mjd_nc[2] = 55100.03
    57 
    58   mjd_nc[3] = 55115.01
    59   mjd_nc[4] = 55115.02
    60   mjd_nc[5] = 55115.03
    61 
    62   mjd_nc[6] = 55125.01
    63   mjd_nc[7] = 55125.02
    64   mjd_nc[8] = 55125.03
     55  mjd_nc[0] = 55000.11
     56  mjd_nc[1] = 55000.12
     57  mjd_nc[2] = 55000.13
     58  mjd_nc[3] = 55015.11
     59  mjd_nc[4] = 55015.12
     60  mjd_nc[5] = 55015.13
     61  mjd_nc[6] = 55025.11
     62  mjd_nc[7] = 55025.12
     63  mjd_nc[8] = 55025.13
    6564end
    6665
     
    8988
    9089macro ckexposure
    91   if ($0 != 4)
    92     echo "ckexposure (catdir) (zpt) (mode)"
     90  if ($0 != 5)
     91    echo "ckexposure (catdir) (mjd) (zpt) (mode)"
    9392    echo "  mode == raw or corr"
    9493    break
    9594  end
    9695
    97   local ZPT_REAL ZPT_NOMINAL
     96  local CATDIR MJD_IMAGE ZPT_REAL ZPT_NOMINAL
    9897 
    99   $ZPT_REAL = $2
     98  $CATDIR      = $1
     99  $MJD_IMAGE   = $2
     100  $ZPT_REAL    = $3
    100101  $ZPT_NOMINAL = 24.58
     102  $MODE        = $4
    101103  # XXX need a function to extract the nominal zpt for a given filter / photcode
    102104
     105  $TIMEFORMAT = mjd
     106  $TIMEREF = 0.0
     107
    103108  # assume we still have stars_ra, stars_dec, stars_mag in hand
    104   catdir $1
     109  dev -n 0
     110  catdir $CATDIR
    105111  region $RA_CENTER $DEC_CENTER 0.2
    106112  images
    107113  pmeasure -all -m 15 20
    108   mextract -region ra dec mag xccd yccd
     114  mextract -region ra dec mag xccd yccd where (abs(time - $MJD_IMAGE) < 0.0001)
    109115 
    110116  match2d -closest ra dec stars_ra stars_dec 0.001 -index1 index1 -index2 index2
     
    116122  set dd = 3600*(dec - stars_dec_m)
    117123  set dm = mag - stars_mag_m
     124
     125  dev -n 1
    118126  lim mag dm; clear; box; plot mag dm
    119127
     
    137145  #   dm = mag_DVO - mag_real ~ 0.0
    138146
    139   if ("$3" == "raw")
     147  if ("$MODE" == "raw")
    140148    for ix 0 $NCELL_X
    141149      for iy 0 $NCELL_Y
     
    163171  # for i 0 mjd_uc[]
    164172  for i 0 1
    165     mkexposure $1.$i $RA_CENTER $DEC_CENTER zpt_uc[$i] mjd_uc[$i] g $2
     173    mkexposure $1.uc.$i $RA_CENTER $DEC_CENTER zpt_uc[$i] mjd_uc[$i] g $2
    166174  end
    167175
     
    169177  # for i 0 mjd_nc[]
    170178  for i 0 1
    171     mkexposure $1.$i $RA_CENTER $DEC_CENTER zpt_nc[$i] mjd_nc[$i] g $2
     179    mkexposure $1.nc.$i $RA_CENTER $DEC_CENTER zpt_nc[$i] mjd_nc[$i] g $2
    172180  end
    173181end
     
    391399end
    392400
     401# running setphot: setphot testzpt.fits -update -ubercal -D CATDIR catdir.test
Note: See TracChangeset for help on using the changeset viewer.