IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 31, 2010, 5:51:01 PM (16 years ago)
Author:
Paul Price
Message:

Adding work in progress on static sky analysis workflow definition. This doesn't work, but nothing relies on it either.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/pxadmin_create_tables.sql

    r27450 r27546  
    15361536
    15371537
     1538-- Tables for static sky analysis
     1539
     1540-- A static sky analysis set
     1541CREATE TABLE staticskyRun (
     1542      ss_id BIGINT AUTO_INCREMENT, -- unique identifier
     1543      state VARCHAR(64) NOT NULL,  -- state of run (new, full, etc.)
     1544      workdir VARCHAR(255) NOT NULL, -- working directory
     1545      label VARCHAR(64),             -- processing label
     1546      data_group VARCHAR(64),        -- group for data
     1547      dist_group VARCHAR(64),        -- group for distribution
     1548      reduction VARCHAR(64),         -- reduction class (for altering recipe)
     1549      note VARCHAR(255),             -- note
     1550      registered TIMESTAMP DEFAULT CURRENT_TIMESTAMP, -- time run was registered
     1551      PRIMARY KEY(dqstats_id),
     1552      KEY(state),
     1553      KEY(label),
     1554      KEY(data_group),
     1555      KEY(dist_group)
     1556) ENGINE=innodb DEFAULT CHARSET=latin1;
     1557
     1558-- Inputs for static sky analysis
     1559CREATE TABLE staticskyInput (
     1560      ss_id BIGINT,             -- static sky identifier
     1561      stack_id BIGINT,          -- stack identifier
     1562      PRIMARY KEY(ss_id,stack_id),
     1563      KEY(stack_id),
     1564      FOREIGN KEY(ss_id) REFERENCES staticskyRun(ss_id),
     1565      FOREIGN KEY(stack_id) REFERENCES stackSumSkyfile(stack_id)
     1566) ENGINE=innodb DEFAULT CHARSET=latin1;
     1567
     1568-- Result of static sky analysis
     1569CREATE TABLE staticskyResult (
     1570      ss_id BIGINT,             -- static sky identifier
     1571      path_base VARCHAR(255) NOT NULL, -- root name for outputs
     1572      dtime_phot FLOAT,                -- elapsed time for photometry
     1573      dtime_script FLOAT,              -- elapsed time for script
     1574      sources INT,                     -- number of sources
     1575      hostname VARCHAR(64) NOT NULL,   -- host that executed script
     1576      good_frac FLOAT,                 -- good fraction of skycell
     1577      quality SMALLINT NOT NULL,       -- bad quality flag
     1578      fault SMALLINT NOT NULL,         -- fault code
     1579      PRIMARY KEY(ss_id),
     1580      KEY(good_frac),
     1581      KEY(fault),
     1582      KEY(quality),
     1583      FOREIGN KEY(ss_id) REFERENCES staticskyRun(ss_id),
     1584) ENGINE=innodb DEFAULT CHARSET=latin1;
     1585
    15381586-- This comment line is here to avoid empty query error.
    15391587-- Another way to avoid that problem is to omit the semicolon above but I think that is untidy.
Note: See TracChangeset for help on using the changeset viewer.