IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25256 for trunk/ippTools


Ignore:
Timestamp:
Sep 2, 2009, 2:36:52 PM (17 years ago)
Author:
Paul Price
Message:

Merging branches/pap_mops into trunk. ppMops now merges multiple skycells, and these get published for MOPS as a single file per exposure. Tested and works.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/ippTools/share/difftool_skyfile.sql

    r25073 r25256  
    1212    -- The following are only valid for warps
    1313    -- XXX This needs to be more clever to handle diffs between stacks
     14    -- Zero points are appropriate for both forward and backward diffs
    1415    camProcessedInput.zpt_obs,
    1516    camProcessedInput.zpt_stdev,
     
    1920    rawInput.camera,
    2021    rawInput.exp_name AS exp_name_1,
     22    rawInput.exp_id AS exp_id_1,
     23    chipInput.chip_id AS chip_id_1,
     24    camInput.cam_id AS cam_id_1,
     25    fakeInput.fake_id AS fake_id_1,
     26    camProcessedInput.sigma_ra AS sigma_ra_1,
     27    camProcessedInput.sigma_dec AS sigma_dec_1,
    2128    rawTemplate.exp_name AS exp_name_2,
    22     rawInput.exp_id AS exp_id_1,
    23     rawTemplate.exp_id AS exp_id_2
     29    rawTemplate.exp_id AS exp_id_2,
     30    chipTemplate.chip_id AS chip_id_2,
     31    camTemplate.cam_id AS cam_id_2,
     32    fakeTemplate.fake_id AS fake_id_2,
     33    camProcessedTemplate.sigma_ra AS sigma_ra_2,
     34    camProcessedTemplate.sigma_dec AS sigma_dec_2
    2435FROM diffRun
    2536JOIN diffSkyfile USING(diff_id)
     
    4354LEFT JOIN camRun AS camTemplate
    4455    ON camTemplate.cam_id = fakeTemplate.cam_id
     56LEFT JOIN camProcessedExp AS camProcessedTemplate
     57    ON camProcessedTemplate.cam_id = camTemplate.cam_id
    4558LEFT JOIN chipRun AS chipTemplate
    4659    ON chipTemplate.chip_id = camTemplate.chip_id
  • trunk/ippTools/share/pxadmin_create_tables.sql

    r25012 r25256  
    14071407    pub_id BIGINT AUTO_INCREMENT, -- link to publishRun
    14081408    path_base VARCHAR(255),     -- base path of output
     1409    hostname VARCHAR(64),       -- name of host
     1410    dtime_script FLOAT,         -- run time for script
    14091411    fault SMALLINT NOT NULL DEFAULT 0, -- Fault code
    14101412    PRIMARY KEY(pub_id),
  • trunk/ippTools/src/pubtool.c

    r25098 r25256  
    259259    // required
    260260    PXOPT_LOOKUP_S64(pub_id, config->args, "-pub_id", true, false);
    261     PXOPT_LOOKUP_STR(path_base, config->args, "-path_base",  true, false);
     261    PXOPT_LOOKUP_STR(path_base, config->args, "-path_base", true, false);
    262262
    263263    // optional
     264    PXOPT_LOOKUP_STR(hostname, config->args, "-hostname", false, false);
     265    PXOPT_LOOKUP_F32(dtime_script, config->args, "-dtime_script", false, false);
    264266    PXOPT_LOOKUP_S32(fault, config->args, "-fault", false, false);
    265267
     
    269271    }
    270272
    271     if (!publishDoneInsert(config->dbh, pub_id, path_base, fault)) {
     273    if (!publishDoneInsert(config->dbh, pub_id, path_base, hostname, dtime_script, fault)) {
    272274        psError(PS_ERR_UNKNOWN, false, "Unable to add file");
    273275        if (!psDBRollback(config->dbh)) {
  • trunk/ippTools/src/pubtoolConfig.c

    r24512 r25256  
    6868    psMetadataAddS64(addArgs, PS_LIST_TAIL, "-pub_id", 0, "define pub_id (required)", 0);
    6969    psMetadataAddStr(addArgs, PS_LIST_TAIL, "-path_base", 0, "define path_base (required)", NULL);
     70    psMetadataAddStr(addArgs, PS_LIST_TAIL, "-hostname", 0, "define hostname", NULL);
     71    psMetadataAddF32(addArgs, PS_LIST_TAIL, "-dtime_script", 0, "define time for script", NAN);
    7072    psMetadataAddS32(addArgs, PS_LIST_TAIL, "-fault", 0, "define fault code", 0);
    7173
Note: See TracChangeset for help on using the changeset viewer.