IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27546


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.

Location:
trunk
Files:
5 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dbconfig/changes.txt

    r27450 r27546  
    15401540ALTER TABLE magicDSFile ADD COLUMN nondiff_frac FLOAT AFTER streak_frac;
    15411541ALTER TABLE distRun ADD COLUMN alternate TINYINT DEFAULT 0 AFTER no_magic;
     1542
     1543-- Tables for static sky analysis
     1544
     1545-- A static sky analysis set
     1546CREATE TABLE staticskyRun (
     1547      ss_id BIGINT AUTO_INCREMENT, -- unique identifier
     1548      state VARCHAR(64) NOT NULL,  -- state of run (new, full, etc.)
     1549      workdir VARCHAR(255) NOT NULL, -- working directory
     1550      label VARCHAR(64),             -- processing label
     1551      data_group VARCHAR(64),        -- group for data
     1552      dist_group VARCHAR(64),        -- group for distribution
     1553      reduction VARCHAR(64),         -- reduction class (for altering recipe)
     1554      note VARCHAR(255),             -- note
     1555      registered TIMESTAMP DEFAULT CURRENT_TIMESTAMP, -- time run was registered
     1556      PRIMARY KEY(dqstats_id),
     1557      KEY(state),
     1558      KEY(label),
     1559      KEY(data_group),
     1560      KEY(dist_group)
     1561) ENGINE=innodb DEFAULT CHARSET=latin1;
     1562
     1563-- Inputs for static sky analysis
     1564CREATE TABLE staticskyInput (
     1565      ss_id BIGINT,             -- static sky identifier
     1566      stack_id BIGINT,          -- stack identifier
     1567      PRIMARY KEY(ss_id,stack_id),
     1568      KEY(stack_id),
     1569      FOREIGN KEY(ss_id) REFERENCES staticskyRun(ss_id),
     1570      FOREIGN KEY(stack_id) REFERENCES stackSumSkyfile(stack_id)
     1571) ENGINE=innodb DEFAULT CHARSET=latin1;
     1572
     1573-- Result of static sky analysis
     1574CREATE TABLE staticskyResult (
     1575      ss_id BIGINT,             -- static sky identifier
     1576      path_base VARCHAR(255) NOT NULL, -- root name for outputs
     1577      dtime_phot FLOAT,                -- elapsed time for photometry
     1578      dtime_script FLOAT,              -- elapsed time for script
     1579      sources INT,                     -- number of sources
     1580      hostname VARCHAR(64) NOT NULL,   -- host that executed script
     1581      good_frac FLOAT,                 -- good fraction of skycell
     1582      quality SMALLINT NOT NULL,       -- bad quality flag
     1583      fault SMALLINT NOT NULL,         -- fault code
     1584      PRIMARY KEY(ss_id),
     1585      KEY(good_frac),
     1586      KEY(fault),
     1587      KEY(quality),
     1588      FOREIGN KEY(ss_id) REFERENCES staticskyRun(ss_id),
     1589) ENGINE=innodb DEFAULT CHARSET=latin1;
  • 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.