Changeset 4386 for trunk/archive/scripts/src/concepts.txt
- Timestamp:
- Jun 24, 2005, 3:05:59 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/archive/scripts/src/concepts.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/scripts/src/concepts.txt
r4281 r4386 27 27 FPA.RADECSYS System of RA,Dec (e.g., J2000 or ICRS) 28 28 FPA.NAME An identifier (e.g., observation number) for the FPA instance 29 FPA.DATE UT date (YYYY-MM-DD) 30 FPA.TIME UT time (HH:MM:SS.sss) 31 FPA.DATETIME UT date and time (YYYY-MM-DDTHH:MM:SS.ss) 32 FPA.MJD Modified Julian Date 29 33 30 34 Chip-level: … … 43 47 CELL.GAIN CCD gain (e/ADU) 44 48 CELL.READNOISE CCD read noise (e) 49 CELL.SATURATION CCD saturation point (ADU) 50 CELL.BAD CCD bad pixel point (ADU) 45 51 46 CELL.XOFFSET Offset on the CCD of window start in x47 CELL.YOFFSET Offset on the CCD of window start in y48 52 CELL.XBIN Binning in x 49 53 CELL.YBIN Binning in y … … 55 59 value to become out of sync). And there is no reason why (most) 56 60 concepts lower down can't be specified higher up, and simply be 57 inherited. The exception to this is the OBSNUM (observation number), 58 which allows an FPA to be identified given a cell, etc. 61 inherited. The exception to this is the FPA.NAME (observation 62 number), which allows an FPA to be identified given a cell, etc. 63 64 There are so many ways of specifying dates and times. We probably 65 want a high-level function, psCellGetTimeObs() to sort through all of the 66 possibilities. 67 68 Similarly with binning: CCDSUM is a common header, or the bin factors 69 might be in separate headers. 59 70 60 71 61 These are optional: 72 Retrieval 73 ========= 62 74 63 DB.HOST Database host name (for psDBInit) 64 DB.NAME Database name (for psDBInit) 65 DB.USER Database user name (for psDBInit) 66 DB.PASSWORD Database password (for psDBInit) 75 Each of the concepts can be retrieved in the following ways: 67 76 77 1. FITS header translation: the camera configuration contains a 78 "TRANSLATION" entry, which gives the concept along with the FITS 79 header equivalent. 80 81 2. Database: the camera configuration "DATABASE" entry contains 82 information on how to poll the database for the required concept. 83 The DATABASE entry contains metadatas specified using the TYPE: 84 85 TYPE dbEntry TABLE COLUMN GIVENDBCOL GIVENPS 86 87 An example DATABASE entry is: 88 89 CELL.GAIN dbEntry Camera gain chipId,cellId CHIP.NAME,CELL.NAME 90 91 This says, in the database, you basically do: "SELECT gain IN 92 Camera where chipId == CHIP.NAME and cellId == CELL.NAME" (where I 93 have, no doubt, taken liberty with the SQL query). In this case, 94 CHIP.NAME and CELL.NAME are looked up before the query is executed, 95 using means other than a DB query (otherwise we could get stuck in 96 an infinite loop). 97 98 3. Defaults: the camera configuration "DEFAULTS" entry contains 99 default values. These default values may simply be specified, or 100 they may be dependent upon another value. In the latter case, an 101 additional keyword, "CONCEPT_DEPEND", where "CONCEPT" is the 102 concept of interest, and "DEPEND" is literal, is specified with the 103 value being the concept on which it is dependent. Then, the 104 concept is a METADATA type, with the elements being values of the 105 other concept on which it is dependent. An example is helpful: 106 107 CELL.YPARITY_DEPEND STR CHIP.NAME 108 CELL.YPARITY METADATA 109 ccd00 S32 -1 110 ccd35 S32 1 111 END 112 113 This says that the CELL.YPARITY is dependent upon the CHIP.NAME: 114 ccd00 has negative parity, and ccd35 has positive parity. 115
Note:
See TracChangeset
for help on using the changeset viewer.
