IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32355


Ignore:
Timestamp:
Sep 6, 2011, 1:56:40 PM (15 years ago)
Author:
eugene
Message:

do not use ppConfigDump to get the burntool state; do not wrap SOURCE in double quotes; fixed 0-counting error in kernel solution; add needed elements to megacam camera config; add PS_NOPATTERN recipe

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/chip_imfile.pl

    r31941 r32355  
    266266        }
    267267
    268         ## Read camera config to get the current good burntool state
    269         ## this returns just the values of interest in a tiny mdc file
    270         my $camera_config_cmd = "$ppConfigDump -camera $camera -get-key BURNTOOL.STATE.GOOD -get-key BURNTOOL.STATE.GOOD.UPDATE";
    271         ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    272             run(command => $camera_config_cmd, verbose => 0);
    273         unless ($success) {
    274             $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
    275             &my_die("Unable to perform ppConfigDump: $error_code", $exp_id, $chip_id, $class_id, $PS_EXIT_SYS_ERROR);
    276         }
    277 
    278         my $camData = $mdcParser->parse(join "", @$stdout_buf) or
    279             &my_die("Unable to parse ppConfigDump metadata", $exp_id, $chip_id, $class_id, $PS_EXIT_SYS_ERROR);
    280 
    281         my $burntoolStateGood;
    282         my $burntoolStateGoodUpdate;
    283         foreach my $camEntry (@$camData) {
    284             if ($camEntry->{name} eq "BURNTOOL.STATE.GOOD") {
    285                 $burntoolStateGood = $camEntry->{value};
    286             }
    287             if ($camEntry->{name} eq "BURNTOOL.STATE.GOOD.UPDATE") {
    288                 $burntoolStateGoodUpdate = $camEntry->{value};
    289             }
    290         }
     268        ## Read camera config to get the current good burntool state :
     269        ## XXX This is extremely slow. Any better way to do this?
     270        ## my $camera_config_cmd = "$ppConfigDump -camera $camera -dump-camera -";
     271        ## ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     272        ##     run(command => $camera_config_cmd, verbose => 0);
     273        ## unless ($success) {
     274        ##     $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     275        ##     &my_die("Unable to perform ppConfigDump: $error_code", $exp_id, $chip_id, $class_id, $PS_EXIT_SYS_ERROR);
     276        ## }
     277        ##
     278        ## my $camData = $mdcParser->parse(join "", @$stdout_buf) or
     279        ##     &my_die("Unable to parse ppConfigDump metadata", $exp_id, $chip_id, $class_id, $PS_EXIT_SYS_ERROR);
     280
     281        ## XXX short term hack until we have a C-based parser
     282        my $burntoolStateGood = 14;
     283        my $burntoolStateGoodUpdate = 13;
     284        ## foreach my $camEntry (@$camData) {
     285        ##     if ($camEntry->{name} eq "BURNTOOL.STATE.GOOD") {
     286        ##         $burntoolStateGood = $camEntry->{value};
     287        ##     }
     288        ##     if ($camEntry->{name} eq "BURNTOOL.STATE.GOOD.UPDATE") {
     289        ##         $burntoolStateGoodUpdate = $camEntry->{value};
     290        ##     }
     291        ## }
    291292
    292293        if ($run_state eq 'new') {
  • trunk/ippTasks/diskbalance.pro

    r31882 r32355  
    104104$BALANCE_LIMIT       = 500
    105105$BALANCE_OFFSET      = 0
    106 $BALANCE_TARGET      = "SOURCE"
     106$BALANCE_TARGET      = SOURCE
    107107# Select Nebulous objects which should be shuffled
    108108task           balance.load
  • trunk/ippconfig/gpc1/ppImage.config

    r31915 r32355  
    10831083END
    10841084
     1085PR_NOPATTERN       METADATA
     1086  BASE.FITS        BOOL    FALSE           # Save base detrended image?
     1087  BASE.MASK.FITS   BOOL    FALSE           # Save base detrended image?
     1088  BASE.VARIANCE.FITS BOOL  FALSE           # Save base detrended image?
     1089  CHIP.FITS        BOOL    TRUE            # Save chip-mosaic-ed image?
     1090  CHIP.MASK.FITS   BOOL    TRUE            # Save chip-mosaic-ed image?
     1091  CHIP.VARIANCE.FITS BOOL  TRUE            # Save chip-mosaic-ed image?
     1092  OVERSCAN         BOOL    TRUE            # Overscan subtraction
     1093  NONLIN           BOOL    TRUE            # apply non-linearity correction
     1094  BIAS             BOOL    FALSE           # Bias subtraction
     1095  DARK             BOOL    TRUE            # Dark subtraction
     1096  REMNANCE         BOOL    FALSE           # Remnance masking
     1097  SHUTTER          BOOL    FALSE           # Shutter correction
     1098  FLAT             BOOL    TRUE            # Flat-field normalisation
     1099  MASK             BOOL    TRUE            # Mask bad pixels
     1100  MASK.BUILD            BOOL    TRUE              # Build internal mask?
     1101  FRINGE           BOOL    FALSE           # Fringe subtraction
     1102  PATTERN.ROW      BOOL    FALSE           # Row pattern correction
     1103  PATTERN.CELL        BOOL    FALSE             # Cell pattern correction
     1104  BIN1.FITS        BOOL    TRUE            # Save 1st binned chip image?
     1105  BIN2.FITS        BOOL    TRUE            # Save 2nd binned chip image?
     1106  PHOTOM           BOOL    TRUE            # Source identification and photometry
     1107  ASTROM.CHIP      BOOL    FALSE           # Astrometry per chip?
     1108  ASTROM.MOSAIC    BOOL    FALSE           # Astrometry for mosaic?
     1109  BACKGROUND       BOOL    FALSE            # Subtract background?
     1110  CROSSTALK.MEASURE  BOOL  TRUE            # Subtract model background?
     1111END
    10851112
    10861113# Standard chip processing without any background removal
  • trunk/ippconfig/megacam/camera.config

    r29902 r32355  
    154154PHOTCODE.RULE           STR     {DETECTOR}.{FILTER.ID}.{CHIP.N}         # Rule for generating photcode
    155155
     156BURNTOOL.STATE.GOOD        S16  0  # Value for burntool_state with the most recent bt version.
     157BURNTOOL.STATE.GOOD.UPDATE S16  0  # for upddate processing accept earlier version
     158
     159FOV_REF                     F32     0   # Field of view of unvignetted region in FPA pixels.
     160FOV_MAX                     F32     0
     161NPIX_REF                    S32     0
     162NPIX_MAX                    S32     0
     163NPIX_INTERCHIP              S32     0
     164
     165# This sets the maximum size for the fwhm_major.  This is roughly 3", and 98.67% of all exposures in the database are less than this.
     166MAX_ALLOWED_FWHM          F32         25
     167
    156168# don't censor any masked pixels
    157169MASK.NO.CENSOR          U32 4294967295
     170
     171METADATA.COMPRESSION         STR      7f # compression mode (nM): n = 1-9, M = f (filtered), h (Huffman), R (run-length)
  • trunk/ippconfig/recipes/ppSim.config

    r32349 r32355  
    4646FORCED.PHOTCODE STR     r               # source of the forced photometry positions
    4747
    48 STARS.REAL      BOOL    TRUE            # Add stars from a catalogue?
    49 MATCH.DENSITY   BOOL    TRUE            # significance of faintest sources
     48STARS.REAL      BOOL    TRUE            # Add stars from a catalogue?
     49MATCH.DENSITY   BOOL    FALSE           # significance of faintest sources
    5050
    5151STARS.FAKE      BOOL    TRUE            # Add fake stars, randomly distributed?
    52 STARS.LUM       F32     0.35            # Stellar luminosity function slope (magnitude slope)
    53 STARS.MAG       F32     15.5            # Brightest magnitude for fake stars (choose based on real catalog limit)
    54 STARS.DENSITY   F32      1.0            # Stellar density (per square degree) at the brightest magnitude
     52STARS.LUM       F32     0.40            # Stellar luminosity function slope (magnitude slope)
     53STARS.MAG       F32     12.5            # Brightest magnitude for fake stars (choose based on real catalog limit)
     54STARS.DENSITY   F32    100.0            # Stellar density (per square degree) at the brightest magnitude
    5555STARS.SIGMA.LIM F32      1.0            # significance of faintest sources
    5656
  • trunk/ppStack/src/ppStackReject.c

    r31435 r32355  
    3333       
    3434        kernel->solution1 = psVectorAlloc(3, PS_TYPE_F64);
     35        psVectorSet(kernel->solution1, 0, 1.0);
    3536        psVectorSet(kernel->solution1, 1, 1.0);
    3637        psVectorSet(kernel->solution1, 2, 1.0);
    37         psVectorSet(kernel->solution1, 3, 1.0);
    3838        kernel->solution2 = psVectorAlloc(3, PS_TYPE_F64);
     39        psVectorSet(kernel->solution2, 0, 1.0);
    3940        psVectorSet(kernel->solution2, 1, 1.0);
    40         psVectorSet(kernel->solution1, 2, 1.0);
    41         psVectorSet(kernel->solution1, 3, 1.0);
     41        psVectorSet(kernel->solution2, 2, 1.0);
    4242       
    4343        options->kernels->data[i] = kernels;
Note: See TracChangeset for help on using the changeset viewer.