IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 24, 2005, 3:05:59 PM (21 years ago)
Author:
Paul Price
Message:

Retrieval of concepts seems to be working.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/scripts/src/concepts.txt

    r4281 r4386  
    2727FPA.RADECSYS            System of RA,Dec (e.g., J2000 or ICRS)
    2828FPA.NAME                An identifier (e.g., observation number) for the FPA instance
     29FPA.DATE                UT date (YYYY-MM-DD)
     30FPA.TIME                UT time (HH:MM:SS.sss)
     31FPA.DATETIME            UT date and time (YYYY-MM-DDTHH:MM:SS.ss)
     32FPA.MJD                 Modified Julian Date
    2933
    3034Chip-level:
     
    4347CELL.GAIN               CCD gain (e/ADU)
    4448CELL.READNOISE          CCD read noise (e)
     49CELL.SATURATION         CCD saturation point (ADU)
     50CELL.BAD                CCD bad pixel point (ADU)
    4551
    46 CELL.XOFFSET            Offset on the CCD of window start in x
    47 CELL.YOFFSET            Offset on the CCD of window start in y
    4852CELL.XBIN               Binning in x
    4953CELL.YBIN               Binning in y
     
    5559value to become out of sync).  And there is no reason why (most)
    5660concepts 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.
     61inherited.  The exception to this is the FPA.NAME (observation
     62number), which allows an FPA to be identified given a cell, etc.
     63
     64There are so many ways of specifying dates and times.  We probably
     65want a high-level function, psCellGetTimeObs() to sort through all of the
     66possibilities.
     67
     68Similarly with binning: CCDSUM is a common header, or the bin factors
     69might be in separate headers.
    5970
    6071
    61 These are optional:
     72Retrieval
     73=========
    6274
    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)
     75Each of the concepts can be retrieved in the following ways:
    6776
     771. FITS header translation: the camera configuration contains a
     78   "TRANSLATION" entry, which gives the concept along with the FITS
     79   header equivalent.
     80
     812. 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
     983. 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.