IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20925


Ignore:
Timestamp:
Dec 7, 2008, 1:40:11 PM (17 years ago)
Author:
eugene
Message:

flesh out a bit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20081124/Ohana/src/addstar/test/addstar.sh

    r20905 r20925  
    11
     2macro test.measure.basic
     3 
     4  $PASS = 1
     5
     6  catdir catdir.test
     7  skyregion 9 11 19 21
     8
     9  mextract ra, dec, xccd, yccd, mag:inst, mag, mag:err, time, photcode
     10
     11  if (ra[] != 242)
     12    $PASS = 0
     13    echo "found the wrong number of measurements in db"
     14  end
     15
     16  avextract ra, dec
     17
     18  if (ra[] != 242)
     19    $PASS = 0
     20    echo "found the wrong number of stars in db"
     21  end
     22
     23  ### XXX write down some tests of things we know about the input data values
     24  ### XXX probably need to add options to mkcmf to eliminate poisson error
     25end
     26
     27# create a populated catdir with a couple of cmf files
     28macro mkcatdir
     29
     30  exec rm -rf catdir.test
     31
     32  mkinput
     33  exec mkcmf test.in.txt test.1.cmf -date 2008/1/1 -time 01:00:00 -radec 10.0 20.0
     34  exec mkcmf test.in.txt test.2.cmf -date 2008/1/1 -time 02:00:00 -radec 10.0 20.0
     35
     36  exec addstar -D CATDIR catdir.test -D CAMERA simtest test.1.cmf
     37  exec addstar -D CATDIR catdir.test -D CAMERA simtest test.2.cmf
     38end
     39
     40# make a simple input file for mkcmf
    241macro mkinput
    342  exec rm -f test.in.txt
     
    1756   lim x y; clear; box; zplot -pt 7 x y m -10 -15
    1857end
     58
Note: See TracChangeset for help on using the changeset viewer.