IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13606


Ignore:
Timestamp:
Jun 3, 2007, 4:27:35 PM (19 years ago)
Author:
eugene
Message:

added sat_pixel_frac

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/dbconfig/tasks.md

    r12531 r13606  
    1 # $Id: tasks.md,v 1.132 2007-03-22 01:10:12 jhoblitt Exp $
     1# $Id: tasks.md,v 1.133 2007-06-04 02:26:09 eugene Exp $
    22
    33# this table records all exposure ID ever seen from the summit
     
    116116    decl        F64         0.0
    117117    exp_time    F32         0.0
     118    sat_pixel_frac F32      0.0
    118119    bg          F64         0.0
    119120    bg_stdev    F64         0.0
     
    142143    decl        F64         0.0
    143144    exp_time    F32         0.0
     145    sat_pixel_frac F32      0.0
    144146    bg          F64         0.0
    145147    bg_stdev    F64         0.0
  • trunk/ippScripts/scripts/register_exp.pl

    r13019 r13606  
    7272                           "ccd_temp", # CCD temperature
    7373                           "exp_time", # Exposure time
     74                           "sat_pixel_frac", # Fraction of saturated pixels
    7475                           "airmass", # Airmass
    7576                           "ra", # Right ascension
     
    160161if (0) {
    161162# XXX for a test, randomly declare a failure and return to pantasks
    162 my $rnd = rand(1);
    163 if ($rnd > 0.5) {
    164     warn ("random failure");
    165     &my_die ($exp_tag, $PS_EXIT_DATA_ERROR);
    166 }
     163    my $rnd = rand(1);
     164    if ($rnd > 0.5) {
     165        warn ("random failure");
     166        &my_die ($exp_tag, $PS_EXIT_DATA_ERROR);
     167    }
    167168}
    168169
  • trunk/ippScripts/scripts/register_imfile.pl

    r13275 r13606  
    5858    and defined $uri;
    5959
    60 my $RECIPE = "PPSTATS_PHASE0"; # Recipe to use for ppStats
     60my $RECIPE = "PPSTATS_REGISTER"; # Recipe to use for ppStats
    6161
    6262# These values should be constant for all components
     
    7979# The key is the name in the ppStats output; the value is the switch for "phase0 -updateexp"
    8080use constant VARIABLES => {
    81     "CHIP.TEMP"    => "-ccd_temp", # CCD temperature
    82     "CELL.EXPOSURE" => "-exp_time" # Exposure time
     81    "CHIP.TEMP"      => "-ccd_temp", # CCD temperature
     82    "CELL.EXPOSURE"  => "-exp_time", # Exposure time
     83    "SAT_PIXEL_FRAC" => "-sat_pixel_frac" # fraction of saturated pixels
    8384    };
    8485
  • trunk/ippTools/src/regtool.c

    r13580 r13606  
    892892    }
    893893
     894    psF32 sat_pixel_frac = psMetadataLookupF32(&status, config->args, "-sat_pixel_frac");
     895    if (!status) {
     896        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -sat_pixel_frac");
     897        return false;
     898    }
     899
    894900    psF64 bg = psMetadataLookupF64(&status, config->args, "-bg");
    895901    if (!status) {
     
    977983        decl,
    978984        exp_time,
     985        sat_pixel_frac,
    979986        bg,
    980987        bg_stdev,
     
    10461053    }
    10471054
     1055    psF32 sat_pixel_frac = psMetadataLookupF32(&status, config->args, "-sat_pixel_frac");
     1056    if (!status) {
     1057        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -sat_pixel_frac");
     1058        return false;
     1059    }
     1060
    10481061    psF64 bg = psMetadataLookupF64(&status, config->args, "-bg");
    10491062    if (!status) {
     
    11261139        decl,
    11271140        exp_time,
     1141        sat_pixel_frac,
    11281142        bg,
    11291143        bg_stdev,
  • trunk/ippTools/src/regtoolConfig.c

    r13580 r13606  
    7979    psMetadataAddF32(addprocessedimfileArgs, PS_LIST_TAIL, "-exp_time",  0,
    8080        "define exposure time", NAN);
     81    psMetadataAddF32(addprocessedimfileArgs, PS_LIST_TAIL, "-sat_pixel_frac",  0,
     82        "define fraction of saturated pixels", NAN);
    8183    psMetadataAddF64(addprocessedimfileArgs, PS_LIST_TAIL, "-bg",  0,
    8284        "define exposue background", NAN);
     
    160162    psMetadataAddF32(addprocessedexpArgs, PS_LIST_TAIL, "-exp_time",  0,
    161163        "define exposure time", NAN);
     164    psMetadataAddF32(addprocessedexpArgs, PS_LIST_TAIL, "-sat_pixel_frac",  0,
     165        "define fraction of saturated pixels", NAN);
    162166    psMetadataAddF64(addprocessedexpArgs, PS_LIST_TAIL, "-bg",  0,
    163167        "define exposue background", NAN);
Note: See TracChangeset for help on using the changeset viewer.