IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 19, 2014, 2:41:50 PM (12 years ago)
Author:
eugene
Message:

fix bugs to make addstar work with new PS1_V5 format & dvo tests to verify; fix PS1_V5 I/O functions for table column order error (RA_PSF,DEC_PSF not on 8-byte block in FITS table)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140610/Ohana/src/addstar/test/simple.dvo

    r36911 r36912  
    3434end 
    3535
     36if (not($?NO_NOISE))
     37  $NO_NOISE = ""
     38end
     39
    3640# create a populated catdir with a single cmf -- test each field
    3741macro test.fields
     
    5054
    5155  mkinput
    52   echo mkcmf test.in.txt test.cmf -date 2008/1/1 -time 01:00:00 -radec $RA $DEC -type $1
    53   exec mkcmf test.in.txt test.cmf -date 2008/1/1 -time 01:00:00 -radec $RA $DEC -type $1
     56  echo mkcmf test.in.txt test.cmf -date 2008/1/1 -time 01:00:00 -radec $RA $DEC -type $1 $NO_NOISE
     57  exec mkcmf test.in.txt test.cmf -date 2008/1/1 -time 01:00:00 -radec $RA $DEC -type $1 $NO_NOISE
    5458  if ($TAP_VERBOSE)
    5559    echo exec addstar -D CATDIR catdir.test -D CAMERA simtest test.cmf -D CATFORMAT $2 -quick-airmass
    5660    exec addstar -D CATDIR catdir.test -D CAMERA simtest test.cmf -D CATFORMAT $2 -quick-airmass
    5761  else
     62    echo addstar -D CATDIR catdir.test -D CAMERA simtest test.cmf -D CATFORMAT $2 -quick-airmass
    5863    exec addstar -D CATDIR catdir.test -D CAMERA simtest test.cmf -D CATFORMAT $2 -quick-airmass >& tmp.log
    5964  end
     
    113118
    114119    # some fields require arithmetic manipulations
    115     if ("$name:0" == "KRON_FLUX")
    116      set v1 = -2.5*log(v1)
    117     end
    118     if ("$name:0" == "KRON_FLUX_ERR")
    119      set v1 = KRON_FLUX_ERR / KRON_FLUX
     120    ## if ("$name:0" == "KRON_FLUX")
     121    ##  set v1 = -2.5*log(v1)
     122    ## end
     123    ## if ("$name:0" == "KRON_FLUX_ERR")
     124    ##  set v1 = KRON_FLUX_ERR / KRON_FLUX
     125    ## end
     126    if (("$name:0" == "X_PSF_SIG") || ("$name:0" == "Y_PSF_SIG"))
     127     set v1 = int(100*(v1))
     128     set v2 = int(100*(v2 + 0.0001))
     129    end
     130    if ("$name:0" == "POSANGLE")
     131     set v1 = int((0xffff/360.0)*(v1))
     132     set v2 = int((0xffff/360.0)*(v2 + 0.0028))
    120133    end
    121134
     
    335348  Y_PSF_SIG         : yccd:err
    336349  POSANGLE          : posangle
    337   PLTSCALE          : pltscale
     350  PLTSCALE          : platescale
    338351  PSF_INST_MAG      : mag:inst 
    339352  PSF_INST_MAG_SIG  : mag:err   
     
    345358  AP_FLUX           : flux:aper:inst 
    346359  AP_FLUX_SIG       : flux:aper:inst:err
    347   CAL_PSF_MAG       : mag:rel
    348   CAL_PSF_MAG_SIG   : mag:rel:err
     360  CAL_PSF_MAG       : mag:cal
     361  CAL_PSF_MAG_SIG   : mag:cal:err
    349362  RA_PSF            : ra
    350363  DEC_PSF           : dec
     
    386399  N_FRAMES          : SKIP # not ingested into DVO                   
    387400end                                                                   
    388 
    389  
    390 
    391 
    392 
    393 
    394 
    395 
    396 
    397 
    398 
    399 
    400 
    401 
    402 
    403 
    404 
    405 
    406 
    407 
    408 
    409 
    410 
    411 
    412 
    413 
    414 
    415 
    416 
    417 
    418 
    419 
    420 
    421 
    422 
    423 
    424 
    425 
    426 
    427 
    428 
    429 
    430 
    431 
    432 
    433 
    434 
Note: See TracChangeset for help on using the changeset viewer.