IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 14, 2011, 2:58:59 PM (14 years ago)
Author:
bills
Message:

first draft of changes to staticskytool to support skycalRun (the sky calibration stage)

File:
1 edited

Legend:

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

    r32771 r32960  
    20352035) ENGINE=innodb DEFAULT CHARSET=latin1;
    20362036
     2037CREATE TABLE skycalRun (
     2038      skycal_id BIGINT AUTO_INCREMENT, -- unique identifier
     2039      sky_id BIGINT,
     2040      stack_id BIGINT,
     2041      state VARCHAR(64) NOT NULL,  -- state of run (new, full, etc.)
     2042      workdir VARCHAR(255) NOT NULL, -- working directory
     2043      label VARCHAR(64),             -- processing label
     2044      data_group VARCHAR(64),        -- group for data
     2045      dist_group VARCHAR(64),        -- group for distribution
     2046      reduction VARCHAR(64),         -- reduction class (for altering recipe)
     2047      registered TIMESTAMP DEFAULT CURRENT_TIMESTAMP, -- time run was registered
     2048      note VARCHAR(255),             -- note
     2049      PRIMARY KEY(skycal_id),
     2050      KEY(state),
     2051      KEY(label),
     2052      KEY(data_group),
     2053      KEY(dist_group),
     2054      KEY(sky_id),
     2055      KEY(stack_id),
     2056      FOREIGN KEY(sky_id) REFERENCES staticskyRun(sky_id),
     2057      FOREIGN KEY(stack_id) REFERENCES stackRun(stack_id)
     2058) ENGINE=innodb DEFAULT CHARSET=latin1;
     2059
     2060-- Result of sky calibration analysis
     2061CREATE TABLE skycalResult (
     2062      skycal_id BIGINT,
     2063      path_base VARCHAR(255) NOT NULL,
     2064      dtime_script FLOAT,
     2065      dtime_astrom FLOAT,
     2066      sigma_ra FLOAT,
     2067      sigma_dec FLOAT,
     2068      n_astrom INT,
     2069      zpt_obs FLOAT,
     2070      zpt_stdev FLOAT,
     2071      quality SMALLINT NOT NULL,
     2072      hostname VARCHAR(64) NOT NULL,
     2073      fault SMALLINT NOT NULL,
     2074      PRIMARY KEY(skycal_id),
     2075      KEY(fault),
     2076      KEY(quality),
     2077      FOREIGN KEY(skycal_id) REFERENCES skycalRun(skycal_id)
     2078) ENGINE=innodb DEFAULT CHARSET=latin1;
     2079
     2080
    20372081-- This comment line is here to avoid empty query error.
    20382082-- 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.