[INSTRM-150] Updating scheme for AIT sequence/exposure database Created: 13/Jul/17 Updated: 04/Jul/18 Resolved: 04/Jul/18 |
|
| Status: | Done |
| Project: | Instrument control development |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Normal |
| Reporter: | arnaud.lefur | Assignee: | arnaud.lefur |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Sprint: | 2017-10A | ||||||||||||||||
| Description |
|
We agreed on a updated scheme for the AIT exposure database in order to facilitate the sharing of the data between institutes. This consist in 3 tables :
CREATE TABLE expgroup ( expid bigint NOT NULL, groupid bigint, CONSTRAINT id PRIMARY KEY (expid)
CREATE TABLE sm0 ( testid bigint NOT NULL, groupid bigint, testname text, experiment text, date text, arm text, drp text, operator text, cmdstr text, status text, comments text, anomalies text, exptime double precision, lowbound double precision, upbound double precision, nbimage bigint, CONSTRAINT id PRIMARY KEY (index) |
| Comments |
| Comment by cloomis [ 13/Jul/17 ] |
|
How much should this be compatible with Yasuda-san's survey ops db? (See the schema pages 7+) The obvious overlap is the Exposure table. I think that the observing schema needs to be split, with the core part merged into AIT's exp and the observing conditions and fiber allocation details pulled out. Something like: CREATE TABLE Exposure ( -- include Pxyz and seqno, to allow merging -- from multiple sites. exposureId CHAR[10] PRIMARY KEY, -- denormalize frameId for convenience. Or -- add functions. visitId INTEGER NOT NULL, site CHAR[1] NOT NULL, -- add WITHOUT TIME ZONE? obsdate TIMESTAMP, exptime FLOAT, -- bias, dark, arc, flat, object, junk exptype TEXT, -- OK, bad quality TEXT DEFAULT 'OK', ) We also need to know which cameras are part of this Exposure. Note CREATE TABLE CamExposure ( camExposureId PRIMARY KEY, exposureId CHAR[10] NOT NULL, spectrograph INTEGER, arm CHAR[1], ) Yes, there will be up to 12 CamExposure rows per Exposure. |
| Comment by cloomis [ 27/Jul/17 ] |
|
Comment from fmadec copied from The current very simple exposure logs of LAM is there: |
| Comment by arnaud.lefur [ 04/Jun/18 ] |
|
I've almost covered everything fixing tickets/INSTRM-274. The mechanism to fill experiment table is not working yet . The scheme is very similar to Craig's proposal
For now the quality flag is by default set to "OK". |
| Comment by arnaud.lefur [ 04/Jul/18 ] |
|
merged in 428f8d0 |