IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24512 for trunk/ippTools


Ignore:
Timestamp:
Jun 19, 2009, 12:38:16 PM (17 years ago)
Author:
Paul Price
Message:

Done with development of mechanism to automatically publish detections: merging branches/pap_mops (r24510) into trunk

Location:
trunk
Files:
14 edited
7 copied

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/ippTools/share/Makefile.am

    r24422 r24512  
    168168     pxadmin_create_mirror_tables.sql \
    169169     pxadmin_drop_tables.sql \
     170     pubtool_definerun.sql \
     171     pubtool_pending.sql \
     172     pubtool_revert.sql \
    170173     pztool_find_completed_exp.sql \
    171174     pztool_pendingimfile.sql \
  • trunk/ippTools/share/camtool_find_processedexp.sql

    r24112 r24512  
    55    rawExp.exp_tag,
    66    rawExp.exp_name,
     7    rawExp.exp_time,
    78    rawExp.camera,
    89    rawExp.telescope,
  • trunk/ippTools/share/chiptool_export_imfile.sql

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • trunk/ippTools/share/chiptool_export_processed_imfile.sql

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • trunk/ippTools/share/difftool_definewarpstack.sql

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • trunk/ippTools/share/difftool_definewarpstack_part1.sql

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • trunk/ippTools/share/difftool_definewarpstack_part2.sql

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • trunk/ippTools/share/difftool_definewarpstack_temp_create.sql

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • trunk/ippTools/share/difftool_skyfile.sql

    r24174 r24512  
    55    diffRun.state,
    66    diffRun.workdir,
     7    diffRun.bothways,
     8    camProcessedExp.zpt_obs,
     9    camProcessedExp.zpt_stdev,
     10    camProcessedExp.zpt_lq,
     11    camProcessedExp.zpt_uq,
     12    rawExp.exp_time,
     13    rawExp.camera,
    714    warp1,
    815    stack1,
     
    1320JOIN diffInputSkyfile USING(diff_id, skycell_id)
    1421JOIN warpRun
     22-- NOTE: joining input only!
     23-- This is so that we can get the correct zero point
     24-- XXX This needs to be more clever to handle diffs between stacks
    1525    ON warpRun.warp_id = diffInputSkyfile.warp1
    1626JOIN fakeRun USING(fake_id)
    1727JOIN camRun USING(cam_id)
     28JOIN camProcessedExp USING(cam_id)
    1829JOIN chipRun USING(chip_id)
    1930JOIN rawExp USING(exp_id)
  • trunk/ippTools/share/pxadmin_create_tables.sql

    r24487 r24512  
    13691369
    13701370
     1371
     1372-- Tables to support publishing of detections to a Science Client
     1373
     1374-- Clients to which we send stuff
     1375CREATE TABLE publishClient (
     1376    client_id BIGINT AUTO_INCREMENT, -- unique identifier
     1377    product VARCHAR(64),             -- product name
     1378    stage VARCHAR(64) NOT NULL, -- stage of interest (chip, camera, diff, etc.)
     1379    workdir VARCHAR(255) NOT NULL, -- working directory
     1380    comment VARCHAR(255),            -- for human memory
     1381    PRIMARY KEY(client_id)
     1382) ENGINE=innodb DEFAULT CHARSET=latin1;
     1383
     1384-- Publishing a set of data (e.g., a specific diffRun)
     1385CREATE TABLE publishRun (
     1386    pub_id BIGINT AUTO_INCREMENT, -- unique identifier
     1387    client_id BIGINT NOT NULL,  -- link to publishClient
     1388    stage_id BIGINT NOT NULL,   -- link to various stage tables
     1389    label VARCHAR(64),          -- label for run
     1390    state VARCHAR(64),          -- state of run (new, full, etc.)
     1391    PRIMARY KEY(pub_id),
     1392    KEY(client_id),
     1393    KEY(stage_id),
     1394    KEY(label),
     1395    KEY(state),
     1396    FOREIGN KEY(client_id) REFERENCES publishClient(client_id)
     1397) ENGINE=innodb DEFAULT CHARSET=latin1;
     1398
     1399-- Publishing a file within a set
     1400CREATE TABLE publishDone (
     1401    pub_id BIGINT AUTO_INCREMENT, -- link to publishRun
     1402    path_base VARCHAR(255),     -- base path of output
     1403    fault SMALLINT NOT NULL DEFAULT 0, -- Fault code
     1404    PRIMARY KEY(pub_id),
     1405    KEY(fault),
     1406    FOREIGN KEY(pub_id) REFERENCES publishRun(pub_id)
     1407) ENGINE=innodb DEFAULT CHARSET=latin1;
     1408
     1409
    13711410-- This comment line is here to avoid empty query error.
    13721411-- Another way to avoid that problem is to omit the semicolon above but I think that is untidy.
  • trunk/ippTools/share/warptool_revertoverlap.sql

  • trunk/ippTools/src

    • Property svn:ignore
      •  

        old new  
        3434disttool
        3535receivetool
         36
         37pubtool
  • trunk/ippTools/src/Makefile.am

    r24038 r24512  
    2020        stacktool \
    2121        warptool \
    22         receivetool
     22        receivetool \
     23        pubtool
    2324
    2425
     
    5960        regtool.h \
    6061        stacktool.h \
    61         warptool.h
     62        warptool.h \
     63        pubtool.h
    6264
    6365lib_LTLIBRARIES = libpxtools.la
     
    220222    receivetoolConfig.c
    221223
     224pubtool_CFLAGS = $(PSLIB_CFLAGS) $(PSMODULES_CFLAGS) $(IPPDB_CFLAGS)
     225pubtool_LDADD = $(PSLIB_LIBS) $(PSMODULES_LIBS) $(IPPDB_LIBS) libpxtools.la
     226pubtool_SOURCES = \
     227    pubtool.c \
     228    pubtoolConfig.c
     229
    222230clean-local:
    223231        -rm -f TAGS
Note: See TracChangeset for help on using the changeset viewer.