IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 4, 2008, 3:32:28 PM (18 years ago)
Author:
Paul Price
Message:

I've implemented the chip-dependent concepts. It uses a generalised version of the dependent DEFAULT concepts, which can, unfortunately, make the camera format configuration a bit longer, but it consolidates code and keeps things simple both for the code and the configuration.

In the process, I took care of a couple of other concept bugs that have been sitting in my inbox for nearly a year:

  • FPA.NAME has been replaced with FPA.OBS, which is intended to be an observation identifier (bug 885). You're welcome to change the name, so long as you also volunteer to fix all the camera formats.
  • FPA.CAMERA is automatically set (on construction of the FPA) to the camera name as used by the configuration files (bug 931). I've changed the ppStats REGISTER recipe to use FPA.CAMERA instead of FPA.INSTRUMENT (which is retained in the concepts as the instrument's name according to the instrument, whereas FPA.CAMERA is the instrument's name according to our configuration).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippconfig/gpc1/format_raw.config

    r17100 r17911  
    1414        PHU             STR     CHIP       # The FITS file represents a single chip
    1515        EXTENSIONS      STR     CELL       # The extensions represent cells
    16         FPA.NAME        STR     CONTROLR   # A PHU keyword for unique identifier within the hierarchy level
     16        FPA.OBS         STR     CONTROLR   # A PHU keyword for unique identifier within the hierarchy level
    1717        CONTENT         STR     DETECTOR   # How to determine content of FITS file
    1818        CONTENT.RULE    STR     {CHIP.ID}  # How to derive the CONTENT when writing
     
    214214        CELL.YPARITY    STR     LTM2_2
    215215#       CELL.SATURATION STR     SATURATE
    216         CHIP.TEMP       STR     DETTEM
     216
     217#        CHIP.TEMP       STR     DETTEM # XY24 is bad, so get it from the database; all others from header
     218        CHIP.TEMP.DEPEND        STR     CHIP.NAME
     219        CHIP.TEMP       METADATA
     220                XY01    STR     DETTEM
     221                XY02    STR     DETTEM
     222                XY03    STR     DETTEM
     223                XY04    STR     DETTEM
     224                XY05    STR     DETTEM
     225                XY06    STR     DETTEM
     226                XY10    STR     DETTEM
     227                XY11    STR     DETTEM
     228                XY12    STR     DETTEM
     229                XY13    STR     DETTEM
     230                XY14    STR     DETTEM
     231                XY15    STR     DETTEM
     232                XY16    STR     DETTEM
     233                XY17    STR     DETTEM
     234                XY20    STR     DETTEM
     235                XY21    STR     DETTEM
     236                XY22    STR     DETTEM
     237                XY23    STR     DETTEM
     238#               XY24    STR     DETTEM  # This is currently bad --- get it from the database
     239                XY25    STR     DETTEM
     240                XY26    STR     DETTEM
     241                XY27    STR     DETTEM
     242                XY30    STR     DETTEM
     243                XY31    STR     DETTEM
     244                XY32    STR     DETTEM
     245                XY33    STR     DETTEM
     246                XY34    STR     DETTEM
     247                XY35    STR     DETTEM
     248                XY36    STR     DETTEM
     249                XY37    STR     DETTEM
     250                XY40    STR     DETTEM
     251                XY41    STR     DETTEM
     252                XY42    STR     DETTEM
     253                XY43    STR     DETTEM
     254                XY44    STR     DETTEM
     255                XY45    STR     DETTEM
     256                XY46    STR     DETTEM
     257                XY47    STR     DETTEM
     258                XY50    STR     DETTEM
     259                XY51    STR     DETTEM
     260                XY52    STR     DETTEM
     261                XY53    STR     DETTEM
     262                XY54    STR     DETTEM
     263                XY55    STR     DETTEM
     264                XY56    STR     DETTEM
     265                XY57    STR     DETTEM
     266                XY60    STR     DETTEM
     267                XY61    STR     DETTEM
     268                XY62    STR     DETTEM
     269                XY63    STR     DETTEM
     270                XY64    STR     DETTEM
     271                XY65    STR     DETTEM
     272                XY66    STR     DETTEM
     273                XY67    STR     DETTEM
     274                XY71    STR     DETTEM
     275                XY72    STR     DETTEM
     276                XY73    STR     DETTEM
     277                XY74    STR     DETTEM
     278                XY75    STR     DETTEM
     279                XY76    STR     DETTEM
     280        END
     281
    217282        FPA.EXPOSURE    STR     EXPREQ          # Requested exposure time, presumably camera exposure time
    218283        CELL.EXPOSURE   STR     EXPTIME         # Exposure time measured by shutter
     
    225290        FPA.INSTRUMENT  STR     GPC1
    226291        FPA.DETECTOR    STR     GPC1
    227         FPA.NAME        S32     12345
    228292        FPA.TIMESYS     STR     UTC
    229293        CHIP.XPARITY    S32     1
     
    492556# How to translation PS concepts into database lookups
    493557DATABASE        METADATA
    494         TYPE            dbEntry         TABLE           COLUMN          GIVENDBCOL      GIVENPS
    495 #       CELL.GAIN       dbEntry         Camera          gain            chipId,cellId   CHIP,CELL
    496 #       CELL.READNOISE  dbEntry         Camera          readNoise       chipId,cellId   CHIP,CELL
    497 
    498 # A database entry refers to a particular column (COLUMN) in a
    499 # particular table (TABLE), given certain PS concepts (GIVENPS) that
    500 # match certain database columns (GIVENDBCOL).
    501 
     558        CHIP.TEMP.DEPEND        STR     CHIP.NAME
     559        CHIP.TEMP               METADATA
     560                XY24    STR     SELECT AVG(ccd_temp) FROM rawImfile WHERE dateobs = '{FPA.TIME}' AND class_id != 'XY24'
     561        END
    502562END
    503563
Note: See TracChangeset for help on using the changeset viewer.