IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38401


Ignore:
Timestamp:
Jun 6, 2015, 7:51:10 AM (11 years ago)
Author:
eugene
Message:

flexible compression test in dvo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20150429/src/addstar/test/compress.dvo

    r38369 r38401  
    66macro test.all
    77  # test.fields (DVO schema) (CMF format)
    8   test.fields PS1_DEV_0 PS1_V1
    9   test.fields PS1_DEV_1 PS1_V1
    10   test.fields PS1_V1    PS1_V1
    11   test.fields PS1_V2    PS1_V1
    12   test.fields PS1_V3    PS1_V1
    13   test.fields PS1_V5    PS1_V1
    14 
    15   test.fields PS1_DEV_0 PS1_V2
    16   test.fields PS1_DEV_1 PS1_V2
    17   test.fields PS1_V1    PS1_V2
    18   test.fields PS1_V2    PS1_V2
    19   test.fields PS1_V3    PS1_V2
    20   test.fields PS1_V5    PS1_V2
    21 
    22   test.fields PS1_DEV_0 PS1_V3
    23   test.fields PS1_DEV_1 PS1_V3
    24   test.fields PS1_V1    PS1_V3
    25   test.fields PS1_V2    PS1_V3
    26   test.fields PS1_V3    PS1_V3
    27   test.fields PS1_V5    PS1_V3
    28 
    29   test.fields PS1_DEV_0 PS1_V4
    30   test.fields PS1_DEV_1 PS1_V4
    31   test.fields PS1_V1    PS1_V4
    32   test.fields PS1_V2    PS1_V4
    33   test.fields PS1_V3    PS1_V4
    34   test.fields PS1_V5    PS1_V4
     8  local dvo_schema cmf_format cmpmode
     9
     10  foreach cmf_format PS1_DEV_0 PS1_DEV_1 PS1_V1 PS1_V2 PS1_V3 PS1_V5
     11    foreach dvo_schema PS1_V1 PS1_V2 PS1_V3 PS1_V4
     12      foreach cmpmode NONE GZIP_1 GZIP_2 RICE_1 AUTO
     13        test.fields $cmf_format $dvo_schema $cmpmode
     14      end
     15    end
     16  end
    3517end 
    3618
     
    4123# create a populated catdir with a single cmf -- test each field
    4224macro test.fields
    43   if ($0 != 3)
    44     echo "USAGE: test.fields (cmftype) (dvotype?)"
     25  if ($0 != 4)
     26    echo "USAGE: test.fields (cmf_format) (dvo_schema) (cmdmode)"
    4527    break
    4628  end
     
    5638  mkinput
    5739  tapEXEC mkcmf test.in.txt test.cmf -date 2008/1/1 -time 01:00:00 -radec $RA $DEC -type $1 $NO_NOISE
    58   tapEXEC addstar -D CATCOMPRESS GZIP_2 -D CATDIR $CATDIR -D CAMERA simtest test.cmf -D CATFORMAT $2 -quick-airmass
     40  tapEXEC addstar -D CATCOMPRESS $3 -D CATDIR $CATDIR -D CAMERA simtest test.cmf -D CATFORMAT $2 -quick-airmass
    5941
    6042  list testfields -copy testfields_$1
Note: See TracChangeset for help on using the changeset viewer.