IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36437


Ignore:
Timestamp:
Jan 14, 2014, 1:05:35 PM (13 years ago)
Author:
bills
Message:

updates from the trunk

Location:
branches/bills_branches/bills_201312
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • branches/bills_branches/bills_201312/ippScripts/scripts/ipp_apply_burntool_single.pl

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/bills_branches/bills_201312/ippScripts/scripts/publish_file.pl

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/bills_branches/bills_201312/ippScripts/scripts/stack_skycell.pl

    r35950 r36437  
    4040}
    4141
    42 my ($stack_id, $dbname, $outroot, $debug, $run_state, $threads, $reduction, $verbose, $no_update, $no_op, $redirect, $save_temps);
     42my ($stack_id, $dbname, $outroot, $debug, $run_state, $threads, $reduction, $verbose, $no_update, $no_op, $redirect, $save_temps, $delete_convolved_images);
    4343GetOptions(
    4444    'stack_id|d=s'      => \$stack_id, # Stack identifier
     
    5555    'redirect-output'   => \$redirect,
    5656    'save-temps'        => \$save_temps, # Save temporary files?
     57    'delete-convolved'  => \$delete_convolved_images,
    5758) or pod2usage( 2 );
    5859
     
    9293);
    9394
     95
    9496my $ipprc = PS::IPP::Config->new() or my_die( "Unable to set up", $stack_id, $PS_EXIT_CONFIG_ERROR ); # IPP configuration
    9597$| = 1;
     
    360362
    361363    if (!$quality) {
     364       
     365
    362366        check_outputs(\@outputFiles, $replicate_outputs);
     367
     368        if (($convolve)&&($delete_convolved_images)) { # We made convolved products, but do not wish to keep them anymore
     369            my @products_to_clear = ('PPSTACK.OUTPUT',
     370                                     'PPSTACK.OUTPUT.MASK',
     371                                     'PPSTACK.OUTPUT.VARIANCE',
     372                                     'PPSTACK.OUTPUT.EXP',
     373                                     'PPSTACK.OUTPUT.EXPNUM',
     374                                     'PPSTACK.OUTPUT.EXPWT');
     375            foreach my $product (@products_to_clear) {
     376                my $file = $ipprc->filename($product,$outroot,$skycell_id);
     377                print "Deleting unwanted convolved product: $file\n";
     378                my $error= $ipprc->kill_file($file);
     379                if ($error_code) {
     380                    print "Failed to delete unwanted convolved product: $error_code\n";
     381                }
     382            }
     383        }
     384
    363385    }
    364386
  • branches/bills_branches/bills_201312/ippTasks/rawcheck.pro

    r36372 r36437  
    7575  task.exec
    7676      book npages rawcheckPending -var N
    77       if ($N > 2000)
     77      if ($N > 200)
    7878        process_cleanup rawcheckPending
    7979        break
  • branches/bills_branches/bills_201312/ippTools/share/chiptool_pendingcleanuprun.sql

    r34766 r36437  
    44    rawExp.exp_tag,
    55    chipRun.state,
    6     chipRun.workdir
     6    chipRun.workdir,
     7    chipRun.label,
     8    IFNULL(Label.priority, 10000) AS priority
    79FROM chipRun
    810JOIN rawExp
    911USING (exp_id)
     12LEFT JOIN Label ON chipRun.label = Label.label
    1013WHERE
    1114    (chipRun.state = 'goto_cleaned' OR chipRun.state = 'goto_scrubbed' OR chipRun.state = 'goto_purged')
  • branches/bills_branches/bills_201312/ippTools/src/chiptool.c

    r35789 r36437  
    12551255
    12561256    psMetadata *where = psMetadataAlloc();
    1257     pxAddLabelSearchArgs (config, where, "-label", "label", "==");
     1257    pxAddLabelSearchArgs (config, where, "-label", "chipRun.label", "==");
    12581258
    12591259    psString query = pxDataGet("chiptool_pendingcleanuprun.sql");
     
    12691269    }
    12701270    psFree(where);
     1271
     1272    psStringAppend(&query, "\nORDER BY priority DESC, chip_id");
    12711273
    12721274    // treat limit == 0 as "no limit"
  • branches/bills_branches/bills_201312/ippTools/src/regtool.c

    r34081 r36437  
    310310}
    311311
     312
     313// CZW: 2013-12-11 A bad exposure caused this code to fail to return any rows.
     314//      I don't clearly see any logic flaws, and so I fixed the issue by
     315//      retricting dateobs_begin to exclude this exposure.  Problem for
     316//      another day.
    312317static bool pendingburntoolimfileMode(pxConfig *config)
    313318{
  • branches/bills_branches/bills_201312/ippconfig/gpc1/psastro.config

    r35723 r36437  
    380380END
    381381
     382POLE_REFCAT METADATA
     383   PSASTRO.CATDIR               STR  SYNTH.GRIZY
     384   ZERO.POINT.USE.MEAN               BOOL TRUE 
     385   PSASTRO.GRID.MIN.ANGLE       F32  -20
     386   PSASTRO.GRID.MAX.ANGLE       F32  +20
     387   PSASTRO.GRID.DEL.ANGLE       F32   0.5
     388   PSASTRO.FIELD.PADDING        F32   0.5
     389END
     390
    382391TEST_REFCAT METADATA
    383392   PSASTRO.CATDIR               STR /data/ipp064.0/ipp/ippRefs/catdir.refcat.20120524.v0
  • branches/bills_branches/bills_201312/ippconfig/recipes/ppSub.config

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/bills_branches/bills_201312/ippconfig/recipes/psastro.config

    r36426 r36437  
    273273END
    274274
     275POLE_REFCAT METADATA
     276END
     277
    275278TEST_REFCAT METADATA
    276279END
  • branches/bills_branches/bills_201312/ippconfig/recipes/reductionClasses.mdc

    r36375 r36437  
    251251        BACKGROUND_PSWARP       STR     BACKGROUND
    252252        FULLFORCE_PSPHOT  STR   FULLFORCE_WARP
     253END
     254
     255# basic science analysis
     256POLE_REFCAT             METADATA
     257        CHIP_PPIMAGE      STR     CHIP
     258        CHIP_PSPHOT       STR     CHIP
     259        JPEG_BIN1         STR     PPIMAGE_J1
     260        JPEG_BIN2         STR     PPIMAGE_J2
     261        ADDSTAR           STR     ADDSTAR
     262        PSASTRO           STR     POLE_REFCAT
    253263END
    254264
  • branches/bills_branches/bills_201312/psLib/src/math/psMixtureModels.c

    r36375 r36437  
    120120  *Ncensored = 0;
    121121
     122  int k = 0;
    122123  for (int i = 0; i < in->numRows; i++) {
    123124    int isCensored = 0;
     
    130131      *Ncensored = *Ncensored + 1;
    131132    }
    132     offsets->data.S32[i] = *Ncensored;
    133   }
     133    else {
     134      offsets->data.S32[k] = i - k;
     135      k++;
     136    }
     137    //    offsets->data.S32[i] = isCensored;
     138  }
     139
    134140  psImage *out;
    135141  if (*Ncensored == 0) {
     
    320326        }
    321327      }
    322       i = modes->data.F32[k];
    323       counts->data.F32[i] += 1.0;
     328      if (modes->data.F32[k] != -1) {
     329        i = modes->data.F32[k];
     330        counts->data.F32[i] += 1.0;
     331      }
    324332    }
    325333
     
    335343    for (k = 0; k < N; k++) {
    336344      i = modes->data.F32[k];
    337       for (j = 0; j < dim; j++) {
    338         means->data.F32[i][j] += D->data.F32[k][j];
     345      if (i != -1) {
     346        for (j = 0; j < dim; j++) {
     347          means->data.F32[i][j] += D->data.F32[k][j];
     348        }
    339349      }
    340350    }
  • branches/bills_branches/bills_201312/psphot/src/psphotStackImageLoop.c

    • Property svn:mergeinfo changed (with no actual effect on merging)
Note: See TracChangeset for help on using the changeset viewer.