IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36928


Ignore:
Timestamp:
Jun 20, 2014, 3:53:40 PM (12 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-20140610
Files:
29 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140610

  • branches/eam_branches/ipp-20140610/Ohana/src/getstar

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/eam_branches/ipp-20140610/dbconfig/cam.md

    r36529 r36928  
    119119    quality        S16      0
    120120    background_model  S16   0
     121    astrom_chips   S64      0
    121122END
    122123
  • branches/eam_branches/ipp-20140610/dbconfig/changes.txt

    r36529 r36928  
    25212521UPDATE dbversion set schema_version = '1.1.79', updated= CURRENT_TIMESTAMP();
    25222522
    2523 
     2523ALTER TABLE camProcessedExp ADD COLUMN astrom_chips BIGINT;
     2524UPDATE dbversion set schema_version = '1.1.79', updated= CURRENT_TIMESTAMP();
     2525
     2526
  • branches/eam_branches/ipp-20140610/ippScripts/scripts/queuestaticsky.pl

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/eam_branches/ipp-20140610/ippScripts/scripts/sc_prepare_stack.pl

    r36884 r36928  
    182182    $ppstack_command    .= " -R PPSTACK.UNCONV.VARIANCE FITS.TYPE COMP_STACK";
    183183    $ppstack_command    .= " -tracedest ${remote_outroot}.trace -log ${remote_outroot}.log ";
    184     $ppstack_command    .= " -threads 10 ";
     184    $ppstack_command    .= " -threads 4 ";
    185185    $ppstack_command    .= " -dumpconfig ${remote_outroot}.mdc ";
    186186    $ppstack_command    .= " -stack_id $stack_id -skycell_id $skycell_id -tess_id $tess_id ";
  • branches/eam_branches/ipp-20140610/ippScripts/scripts/sc_transfer_tool.pl

    r36844 r36928  
    5151while(<I>) {
    5252    chomp;
     53    $i = int(rand($#filehandles));
     54
    5355    my $fline;
    5456    if ($fetch) {
     
    5759    if (($fetch)&&(!(-e $_))) {  # We are fetching, and do not already have this file.
    5860        print { $filehandles[$i] } $fline;
    59         $i++;
     61#       $i++;
    6062    }
    6163    elsif (!($fetch)) { # We are pushing
    6264#       if (-e "${local_tmp}/$_") {
    6365            print { $filehandles[$i] } "${local_tmp}/$_" . "\n";
    64             $i++;
     66#           $i++;
    6567#       }
    6668#       else { # But somehow couldn't find the file we expected
     
    6971#       }
    7072    }
    71     if ($i >= $threads) { $i = 0; }
     73#    if ($i >= $threads) { $i = 0; }
    7274}
    7375close(I);
  • branches/eam_branches/ipp-20140610/ippTasks/pstamp.pro

    r36647 r36928  
    175175macro pstamp.find.off
    176176    task pstamp.request.find
     177        active false
     178    end
     179end
     180macro pstamp.parse.on
     181    task pstamp.request.load
     182        active true
     183    end
     184    task pstamp.request.run
     185        active true
     186    end
     187end
     188macro pstamp.parse.off
     189    task pstamp.request.load
     190        active false
     191    end
     192    task pstamp.request.run
     193        active false
     194    end
     195end
     196macro pstamp.job.on
     197    task pstamp.job.load
     198        active true
     199    end
     200    task pstamp.job.run
     201        active true
     202    end
     203end
     204macro pstamp.job.off
     205    task pstamp.job.load
     206        active false
     207    end
     208    task pstamp.job.run
     209        active false
     210    end
     211end
     212macro pstamp.finish.on
     213    task pstamp.finish.load
     214        active true
     215    end
     216    task pstamp.finish.run
     217        active true
     218    end
     219end
     220macro pstamp.finish.off
     221    task pstamp.finish.load
     222        active false
     223    end
     224    task pstamp.finish.run
    177225        active false
    178226    end
     
    469517        add_poll_args run
    470518        add_poll_labels run
     519        # limit query for finished requests to small number
     520        # because we only run 4 at a time. Using the default queue
     521        # depth fouls up the priority orer
     522        # XXX: use a varaible
     523        $run = $run -limit 8
    471524        command $run
    472525    end
     
    499552    periods     -timeout 2400
    500553    host        anyhost
     554    npending    4
    501555
    502556    task.exec
     
    9511005    # overloading nfs
    9521006
    953     npending    5
     1007    npending    2
    9541008
    9551009    task.exec
  • branches/eam_branches/ipp-20140610/ippTools/share/camtool_find_processedexp.sql

    r33000 r36928  
    11SELECT
    22    camProcessedExp.*,
     3    HEX(IFNULL(camProcessedExp.astrom_chips, 0)) AS good_astrom_chips,
    34    camRun.workdir,
    45    camRun.label,
  • branches/eam_branches/ipp-20140610/ippTools/share/pxadmin_create_tables.sql

    r36529 r36928  
    523523    quality SMALLINT NOT NULL DEFAULT 0,
    524524    background_model SMALLINT,
     525    astrom_chips BIGINT,
    525526    PRIMARY KEY(cam_id),
    526527    KEY(fault),
  • branches/eam_branches/ipp-20140610/ippTools/share/remotetool_definebyquery_warp.sql

    r36884 r36928  
    1 SELECT
    2        warp_id AS stage_id
    3 FROM warpRun
    4        LEFT JOIN remoteComponent ON (remoteComponent.stage_id = warpRun.warp_id)
    5        LEFT JOIN remoteRun ON (
    6             remoteComponent.remote_id = remoteRun.remote_id AND
    7             remoteRun.label = warpRun.label
    8             )
    9 WHERE
    10 warpRun.state = 'new' AND
    11 (remoteRun.stage = 'warp' OR remoteRun.state IS NULL) AND
    12 remoteComponent.remote_id IS NULL
     1SELECT warp_id AS stage_id FROM (
     2SELECT warp_id, count(warpSkyCellMap.skycell_id) AS N
     3    FROM warpRun
     4    LEFT JOIN warpSkyCellMap USING(warp_id)
     5    LEFT JOIN remoteComponent ON (remoteComponent.stage_id = warpRun.warp_id)
     6    LEFT JOIN remoteRun ON (remoteComponent.remote_id = remoteRun.remote_id
     7                        AND remoteRun.label = warpRun.label             )
     8WHERE warpRun.state = 'new'
     9AND (remoteRun.stage = 'warp' OR remoteRun.state IS NULL)
     10AND remoteComponent.remote_id IS NULL
     11-- where hook %s
     12GROUP BY warp_id
     13) AS warpTry
     14WHERE N != 0
     15
  • branches/eam_branches/ipp-20140610/ippTools/src/camtool.c

    r36529 r36928  
    501501    PXOPT_LOOKUP_S16(quality, config->args, "-quality", false, false);
    502502    PXOPT_LOOKUP_S16(background_model, config->args, "-background_model", false, false);
     503    PXOPT_LOOKUP_S64(astrom_chips, config->args, "-astrom_chips", false, false);
     504
    503505   
    504506    PXOPT_LOOKUP_STR(ver_pslib, config->args, "-ver_pslib", false, false);
     
    692694        deteff_uq,
    693695        quality,
    694         background_model
     696        background_model,
     697        astrom_chips
    695698        );
    696699
  • branches/eam_branches/ipp-20140610/ippTools/src/camtoolConfig.c

    r36529 r36928  
    205205    psMetadataAddF32(addprocessedexpArgs, PS_LIST_TAIL, "-deteff_inst_uq", 0, "define deteff_uq", NAN);
    206206    psMetadataAddS16(addprocessedexpArgs, PS_LIST_TAIL, "-background_model", 0, "set background_model value", 0);
     207    psMetadataAddS64(addprocessedexpArgs, PS_LIST_TAIL, "-astrom_chips", 0, "chips with successful astrom", -1);
    207208
    208209    // -processedexp
  • branches/eam_branches/ipp-20140610/ippTools/src/remotetool.c

    r36623 r36928  
    9595  // Get a list of the things we can insert into a new component
    9696  psString query = NULL;
     97  psString whereOption = psStringCopy("");
    9798  if (!strcmp(stage,"chip")) {
    9899    query = pxDataGet("remotetool_definebyquery_chip.sql");
     
    125126   
    126127    if (label) {
    127       psStringAppend(&query, " AND (warpRun.label = '%s')", label);
     128      // Because warp has to check to see if something other than the state is set correctly, I have to use this wonky way to pass the label in.
     129      //      psStringAppend(&query, " AND (warpRun.label = '%s')", label);
     130      psStringAppend(&whereOption, "\n AND (warpRun.label = '%s')", label);
    128131    }
    129132  }   
     
    149152    psFree(limitString);
    150153  }
    151   if (!p_psDBRunQuery(config->dbh, query)) {
     154  if (!p_psDBRunQueryF(config->dbh, query,whereOption)) {
    152155    psError(PS_ERR_UNKNOWN, false, "database error");
    153156    psFree(query);
     
    313316{
    314317  PS_ASSERT_PTR_NON_NULL(config, false);
    315   // PXOPT_LOOKUP_S64(remote_id,  config->args, "-remote_id",    true, false);
     318  PXOPT_LOOKUP_S64(remote_id,  config->args, "-remote_id",    true, false);
     319  psAssert(remote_id,"This should have failed before this point.");
    316320 
    317321  psMetadata *where = psMetadataAlloc();
     
    341345{
    342346  PS_ASSERT_PTR_NON_NULL(config, false);
    343   // PXOPT_LOOKUP_S64(remote_id,  config->args, "-remote_id",    true, false);
    344  
     347  PXOPT_LOOKUP_S64(remote_id,  config->args, "-remote_id",    true, false);
     348  psAssert(remote_id,"This should have failed before this point.");
     349
    345350  psMetadata *where = psMetadataAlloc();
    346351  // Wheres
  • branches/eam_branches/ipp-20140610/ippconfig

  • branches/eam_branches/ipp-20140610/ippconfig/gpc1/psastro.config

    r36884 r36928  
    493493   ZERO.POINT.USE.MEAN             BOOL  TRUE
    494494   PSASTRO.FIELD.PADDING           F32   0.01   # skycells are well defined, don't need large padding. 1% of 6400 is 64 pixels
    495    PSASTRO.MAX.NRAW                S32   1000   # include more than MAX.NREF to account for extras like false-positives
    496    PSASTRO.MAX.NREF                S32    500   # if edge skycell ~10% then try ~50 to match
     495   PSASTRO.MAX.NRAW                S32   1500   # include more than MAX.NREF to account for extras like false-positives
     496   PSASTRO.MAX.NREF                S32   1000   # if edge skycell ~10% then try ~50 to match. increase to help odd bulk offsets
    497497   PSASTRO.MIN.INST.MAG.RAW        F32   -25.0  #
    498498   PSASTRO.MAX.INST.MAG.RAW        F32   -5.0
  • branches/eam_branches/ipp-20140610/ippconfig/recipes/ppStats.config

    r35195 r36928  
    116116  HEADER        STR     DT_ASTR  # elapsed time in astrometry processing
    117117  HEADER        STR     NASTRO
     118  HEADER        STR     ASTROM_CHIPS
    118119
    119120  HEADER        STR     ZPT_OBS
  • branches/eam_branches/ipp-20140610/ippconfig/recipes/ppStatsFromMetadata.config

    r35269 r36928  
    274274  ENTRY  VAL  DT_ASTR             F32  SUM              -dtime_astrom     
    275275  ENTRY  VAL  NASTRO              S32  SUM              -n_astrom         
     276  ENTRY  VAL  ASTROM_CHIPS        U64  BITWISEOR        -astrom_chips
    276277
    277278  ENTRY  VAL  ZPT_OBS             F32  SAMPLE_MEAN      -zpt_obs
  • branches/eam_branches/ipp-20140610/ippconfig/recipes/ppSub.config

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/eam_branches/ipp-20140610/ippconfig/recipes/reductionClasses.mdc

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/eam_branches/ipp-20140610/ppStack/src/ppStackReadout.c

    r36884 r36928  
    188188    psFree(stack);
    189189
    190     psLogMsg("ppStack", PS_LOG_INFO, "initial stack image sectionNum %d", sectionNum);
     190    //MEH change to trace
     191    //psLogMsg("ppStack", PS_LOG_INFO, "initial stack image sectionNum %d", sectionNum);
    191192
    192193    sectionNum++;
     
    275276        //MEH -- apply bscale offset before norm   
    276277        if (bscaleApplyOffset) {
    277             psLogMsg("ppStack", PS_LOG_INFO, "bscaleApplyOffset: %d %f", i, bscaleApplyOffset->data.F32[i]);
     278            //MEH change to trace
     279            //psLogMsg("ppStack", PS_LOG_INFO, "bscaleApplyOffset: %d %f", i, bscaleApplyOffset->data.F32[i]);
    278280            psBinaryOp(ro->image, ro->image, "-", psScalarAlloc(bscaleApplyOffset->data.F32[i], PS_TYPE_F32));
    279281        }
     
    307309    psFree(stack);
    308310
    309     psLogMsg("ppStack", PS_LOG_INFO, "final stack image sectionNum %d", sectionNum);
     311    //MEH change to trace
     312    //psLogMsg("ppStack", PS_LOG_INFO, "final stack image sectionNum %d", sectionNum);
    310313
    311314    sectionNum++;
  • branches/eam_branches/ipp-20140610/ppStats/src/ppStatsFromMetadataStats.c

    r23989 r36928  
    11# include "ppStatsInternal.h"
     2
     3static void computeBitwiseOr(ppStatsEntry *entry);
    24
    35// calculate the stats for the non-constant entries (already calculated)
     
    1113        // XXX skip or warn on missing stats?
    1214        if (!entry->vector) continue;
     15
     16        if (!strcasecmp (entry->statistic, "bitwiseor")) {
     17            computeBitwiseOr(entry);
     18            continue;
     19        }
    1320
    1421        psStatsOptions option;
     
    6875    return true;
    6976}
     77
     78static void computeBitwiseOr(ppStatsEntry *entry)
     79{
     80    psU64 result = 0;
     81    psVector *vector = entry->vector;
     82    for (int j = 0; j < vector->n; j++) {
     83        // XXX: should we handle other types
     84        if (entry->type == PS_DATA_U64) {
     85            result |= vector->data.U64[j];
     86        } else if (entry->type == PS_DATA_U32) {
     87            result |= vector->data.U32[j];
     88        } else {
     89            return;
     90        }
     91    }
     92
     93    if (entry->type == PS_DATA_U64) {
     94        entry->value = psMetadataItemAllocU64(entry->keyword, entry->statistic, result);
     95    } else {
     96        entry->value = psMetadataItemAllocU32(entry->keyword, entry->statistic, result);
     97    }
     98
     99    return;
     100}
     101
  • branches/eam_branches/ipp-20140610/psModules

    • Property svn:mergeinfo deleted
  • branches/eam_branches/ipp-20140610/psastro/src/psastroChipAstrom.c

    r35419 r36928  
    143143                numGoodRO++;
    144144
     145                psU64 astrom_chip_val = 1;
     146                astrom_chip_val <<= view->chip;
     147                psMetadataAddU64 (updates, PS_LIST_TAIL, "ASTROM_CHIPS", PS_META_REPLACE,
     148                    "chips that passed astrometry", astrom_chip_val);
     149
    145150                // write the elapsed time here; this will be updated in psastroMosaicAstrometry, if called
    146151                psMetadataAddF32 (updates, PS_LIST_TAIL, "DT_ASTR", PS_META_REPLACE, "elapsed psastro time", psTimerMark ("psastroAnalysis"));
  • branches/eam_branches/ipp-20140610/psastro/src/psastroOneChipFit.c

    r36837 r36928  
    228228    psMetadataAddF32 (updates, PS_LIST_TAIL, "CPRECISE", PS_META_REPLACE, "astrometry precision (arcsec)", 0.0);
    229229    psMetadataAddS32 (updates, PS_LIST_TAIL, "NASTRO",   PS_META_REPLACE, "number of astrometry stars", 0);
     230    psMetadataAddU64 (updates, PS_LIST_TAIL, "ASTROM_CHIPS", PS_META_REPLACE, "chips that passed astrometry", 0);
    230231    return true;
    231232}
  • branches/eam_branches/ipp-20140610/psphot/test/tap_psphot_galaxies.pro

    r36884 r36928  
    194194  $psphotConfig = $psphotConfig -Di PSPHOT:LMM_FIT_GAIN_FACTOR_MODE 2
    195195  $psphotConfig = $psphotConfig -Db PSPHOT:SAVE.RESID T
    196   # $psphotConfig = $psphotConfig -D  PSPHOT:PSF_MODEL PS_MODEL_PS1_V1
    197   $psphotConfig = $psphotConfig -D  PSPHOT:PSF_MODEL PS_MODEL_GAUSS
     196  $psphotConfig = $psphotConfig -D  PSPHOT:PSF_MODEL PS_MODEL_PS1_V1
     197  # $psphotConfig = $psphotConfig -D  PSPHOT:PSF_MODEL PS_MODEL_GAUSS
    198198  $psphotConfig = $psphotConfig -D  PSPHOT:EXTENDED_SOURCE_MODELS_SELECTION $fitModel
    199   $psphotConfig = $psphotConfig -D  PSPHOT:OUTPUT.FORMAT PS1_V5
     199  # $psphotConfig = $psphotConfig -D  PSPHOT:OUTPUT.FORMAT PS1_V5
     200  $psphotConfig = $psphotConfig -D  PSPHOT:OUTPUT.FORMAT PS1_SV3
     201  $psphotConfig = $psphotConfig -Db PSPHOT:LENSING_PARAMETERS T
    200202
    201203  # ppImage / psphot on the output
  • branches/eam_branches/ipp-20140610/pstamp/scripts/pstamp_checkdependent.pl

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/eam_branches/ipp-20140610/pstamp/scripts/pstamp_finish.pl

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/eam_branches/ipp-20140610/pstamp/scripts/pstampparse.pl

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