IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17911 for trunk/ippconfig


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).
Location:
trunk/ippconfig
Files:
35 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippconfig/cfh12k/format_mef.config

    r15550 r17911  
    1414        PHU             STR     FPA     # The FITS file represents an entire FPA
    1515        EXTENSIONS      STR     CHIP    # The extensions represent chips
    16         FPA.NAME        STR     EXPNUM  # A PHU keyword for unique identifier
     16        FPA.OBS         STR     EXPNUM  # A PHU keyword for unique identifier
    1717        CHIP.NAME       STR     IMAGEID # An extension keyword for unique identifie
    1818        EXTWORD         STR     IMAGEID
  • trunk/ippconfig/cfh12k/format_mef_early.config

    r16808 r17911  
    1818        PHU             STR     FPA     # The FITS file represents an entire FPA
    1919        EXTENSIONS      STR     CHIP    # The extensions represent chips
    20         FPA.NAME        STR     EXPNUM  # A PHU keyword for unique identifier
     20        FPA.OBS         STR     EXPNUM  # A PHU keyword for unique identifier
    2121        CHIP.NAME       STR     IMAGEID # An extension keyword for unique identifie
    2222        EXTWORD         STR     IMAGEID
  • trunk/ippconfig/cfh12k/format_split.config

    r15550 r17911  
    1414        PHU             STR     CHIP     # The FITS file represents an entire FPA
    1515        EXTENSIONS      STR     NONE     # The extensions represent chips
    16         FPA.NAME        STR     EXPNUM   # A PHU keyword for unique identifier
     16        FPA.OBS         STR     EXPNUM   # A PHU keyword for unique identifier
    1717        CHIP.NAME       STR     IMAGEID  # An extension keyword for unique identifie
    1818        EXTWORD         STR     IMAGEID
  • trunk/ippconfig/cfh12k/format_split_cmf.config

    r17294 r17911  
    1414        PHU             STR     CHIP     # The FITS file represents an entire FPA
    1515        EXTENSIONS      STR     NONE     # The extensions represent chips
    16         FPA.NAME        STR     EXPNUM   # A PHU keyword for unique identifier
     16        FPA.OBS         STR     EXPNUM   # A PHU keyword for unique identifier
    1717        CHIP.NAME       STR     IMAGEID  # An extension keyword for unique identifie
    1818        EXTWORD         STR     IMAGEID
  • trunk/ippconfig/cfh12k/format_split_early.config

    r15550 r17911  
    1818        PHU             STR     CHIP    # The FITS file represents an entire FPA
    1919        EXTENSIONS      STR     NONE    # The extensions represent chips
    20         FPA.NAME        STR     EXPNUM  # A PHU keyword for unique identifier
     20        FPA.OBS         STR     EXPNUM  # A PHU keyword for unique identifier
    2121        CHIP.NAME       STR     IMAGEID # An extension keyword for unique identifie
    2222        EXTWORD         STR     IMAGEID
  • trunk/ippconfig/ctio_mosaic2/format.config

    r13865 r17911  
    1313        PHU             STR     FPA      # The FITS file represents an entire FPA
    1414        EXTENSIONS      STR     CELL     # The extensions represent cells
    15         FPA.NAME        STR     FILENAME # A PHU keyword for unique identifier within the hierarchy level
     15        FPA.OBS STR     FILENAME # A PHU keyword for unique identifier within the hierarchy level
    1616END
    1717
  • trunk/ippconfig/esowfi/format_split.config

    r15309 r17911  
    1111        PHU             STR     CHIP            # The FITS file represents an entire FPA
    1212        EXTENSIONS      STR     NONE            # There are no extensions
    13         FPA.NAME        STR     ORIGIN          # A PHU keyword for unique FPA identifier
     13        FPA.OBS         STR     ORIGIN          # A PHU keyword for unique FPA identifier
    1414        CONTENT         STR     EXTNAME         # Key to the CONTENTS menu
    1515        CONTENT.RULE    STR     {CHIP.NAME}     # How to derive the CONTENT when writing
  • trunk/ippconfig/esowfi/format_together.config

    r15309 r17911  
    1212        PHU             STR             FPA             # The FITS file represents an entire FPA
    1313        EXTENSIONS      STR             CHIP            # There are no extensions
    14         FPA.NAME        STR             ESO OBS NAME    # A PHU keyword for unique FPA identifier
     14        FPA.OBS         STR             ESO OBS NAME    # A PHU keyword for unique FPA identifier
    1515END
    1616
  • trunk/ippconfig/gpc1/format_mef.config

    r15949 r17911  
    1313        PHU             STR     FPA        # The FITS file represents a complete camera fpa
    1414        EXTENSIONS      STR     CHIP       # The extensions represent chips
    15         FPA.NAME        STR     CONTROLR   # A PHU keyword for unique identifier within the hierarchy level
     15        FPA.OBS         STR     CONTROLR   # A PHU keyword for unique identifier within the hierarchy level
    1616END
    1717
     
    196196        FPA.INSTRUMENT  STR     GPC1
    197197        FPA.DETECTOR    STR     GPC1
    198         FPA.NAME        S32     12345
     198        FPA.OBS S32     12345
    199199        FPA.TIMESYS     STR     UTC
    200200        CHIP.XPARITY    S32     1
  • 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
  • trunk/ippconfig/isp/format.config

    r13601 r17911  
    1414        PHU             STR     FPA     # The FITS file represents an entire FPA
    1515        EXTENSIONS      STR     NONE    # There are no extensions
    16         FPA.NAME        STR     SEQID   # A PHU keyword for unique identifier within the hierarchy level
     16        FPA.OBS STR     SEQID   # A PHU keyword for unique identifier within the hierarchy level
    1717END
    1818
  • trunk/ippconfig/lbc_red/format.config

    r17154 r17911  
    1515        PHU             STR     FPA     # The FITS file represents an entire FPA
    1616        EXTENSIONS      STR     CHIP    # The extensions represent chips
    17         FPA.NAME        STR     OBS_ID  # A PHU keyword for unique identifier
     17        FPA.OBS STR     OBS_ID  # A PHU keyword for unique identifier
    1818        CHIP.NAME       STR     EXTNAME # An extension keyword for unique identifie
    1919END
  • trunk/ippconfig/lris_blue/format_mef.config

    r6869 r17911  
    1212        PHU             STR     FPA     # The FITS file represents an entire FPA
    1313        EXTENSIONS      STR     CHIP    # There are no extensions
    14         FPA.NAME        STR     OBSNUM  # A PHU keyword for unique identifier within the hierarchy level
     14        FPA.OBS         STR     OBSNUM  # A PHU keyword for unique identifier within the hierarchy level
    1515END
    1616
  • trunk/ippconfig/lris_blue/format_raw.config

    r6869 r17911  
    3333        PHU             STR     FPA     # The FITS file represents an entire FPA
    3434        EXTENSIONS      STR     NONE    # There are no extensions
    35         FPA.NAME        STR     OBSNUM  # A PHU keyword for unique identifier within the hierarchy level
     35        FPA.OBS         STR     OBSNUM  # A PHU keyword for unique identifier within the hierarchy level
    3636END
    3737
  • trunk/ippconfig/lris_red/format_raw.config

    r7100 r17911  
    3434        PHU             STR     FPA     # The FITS file represents a single chip
    3535        EXTENSIONS      STR     NONE    # There are no extensions
    36         FPA.NAME        STR     OBSNUM  # A PHU keyword for unique identifier within the hierarchy level
     36        FPA.OBS         STR     OBSNUM  # A PHU keyword for unique identifier within the hierarchy level
    3737END
    3838
  • trunk/ippconfig/lris_red/format_spec.config

    r7100 r17911  
    3434        PHU             STR     FPA     # The FITS file represents a single chip
    3535        EXTENSIONS      STR     NONE    # There are no extensions
    36         FPA.NAME        STR     OBSNUM  # A PHU keyword for unique identifier within the hierarchy level
     36        FPA.OBS         STR     OBSNUM  # A PHU keyword for unique identifier within the hierarchy level
    3737        CHIP.NAME       STR     INSTRUME        # An extension keyword for unique identifier
    3838END
  • trunk/ippconfig/mcshort/format_raw.config

    r9512 r17911  
    1414        PHU             STR     FPA     # The FITS file represents an entire FPA
    1515        EXTENSIONS      STR     CELL    # The extensions represent cells
    16         FPA.NAME        STR     EXPNUM  # A PHU keyword for unique identifier within the hierarchy level
     16        FPA.OBS         STR     EXPNUM  # A PHU keyword for unique identifier within the hierarchy level
    1717END
    1818
     
    118118# How to translate PS concepts into FITS headers
    119119TRANSLATION     METADATA
    120         FPA.NAME                STR     EXPNUM
     120        FPA.OBS         STR     EXPNUM
    121121        FPA.AIRMASS             STR     AIRMASS
    122122        FPA.FILTER              STR     FILTER
  • trunk/ippconfig/mcshort/format_spliced.config

    r12565 r17911  
    1414        PHU             STR     FPA     # The FITS file represents an entire FPA
    1515        EXTENSIONS      STR     CHIP    # The extensions represent chips
    16         FPA.NAME        STR     EXPNUM  # A PHU keyword for unique identifier
     16        FPA.OBS         STR     EXPNUM  # A PHU keyword for unique identifier
    1717        CHIP.NAME       STR     EXTNAME # An extension keyword for unique identifie
    1818END
     
    9090# How to translate PS concepts into FITS headers
    9191TRANSLATION     METADATA
    92         FPA.NAME        STR     EXPNUM
     92        FPA.OBS        STR     EXPNUM
    9393        FPA.AIRMASS     STR     AIRMASS
    9494        FPA.FILTER      STR     FILTER
  • trunk/ippconfig/mcshort/format_split.config

    r15064 r17911  
    1212        PHU             STR     CHIP    # The FITS file represents an entire FPA
    1313        EXTENSIONS      STR     NONE    # The extensions represent chips
    14         FPA.NAME        STR     EXPNUM  # A PHU keyword for unique identifier
     14        FPA.OBS         STR     EXPNUM  # A PHU keyword for unique identifier
    1515        CONTENT         STR     EXTNAME # Key to the CONTENTS menu
    1616END
     
    8888# How to translate PS concepts into FITS headers
    8989TRANSLATION     METADATA
    90         FPA.NAME        STR     EXPNUM
     90        FPA.OBS        STR     EXPNUM
    9191        FPA.AIRMASS     STR     AIRMASS
    9292        FPA.FILTER      STR     FILTER
  • trunk/ippconfig/megacam/format_mef.config

    r17875 r17911  
    1414        PHU             STR     FPA     # The FITS file represents an entire FPA
    1515        EXTENSIONS      STR     CHIP    # The extensions represent chips
    16         FPA.NAME        STR     EXPNUM  # A PHU keyword for unique identifier
     16        FPA.OBS         STR     EXPNUM  # A PHU keyword for unique identifier
    1717        # CHIP.NAME     STR     EXTNAME # An extension keyword for unique identifie
    1818END
  • trunk/ippconfig/megacam/format_pre_03Am04_mef.config

    r16644 r17911  
    1313        PHU             STR     FPA     # The FITS file represents an entire FPA
    1414        EXTENSIONS      STR     CHIP    # The extensions represent chips
    15         FPA.NAME        STR     EXPNUM  # A PHU keyword for unique identifier
     15        FPA.OBS         STR     EXPNUM  # A PHU keyword for unique identifier
    1616        # CHIP.NAME     STR     EXTNAME # An extension keyword for unique identifie
    1717END
  • trunk/ippconfig/megacam/format_pre_03Am04_raw.config

    r16644 r17911  
    1313        PHU             STR     FPA     # The FITS file represents an entire FPA
    1414        EXTENSIONS      STR     CELL    # The extensions represent cells
    15         FPA.NAME        STR     EXPNUM  # A PHU keyword for unique identifier within the hierarchy level
     15        FPA.OBS         STR     EXPNUM  # A PHU keyword for unique identifier within the hierarchy level
    1616END
    1717
  • trunk/ippconfig/megacam/format_raw.config

    r16644 r17911  
    1414        PHU             STR     FPA     # The FITS file represents an entire FPA
    1515        EXTENSIONS      STR     CELL    # The extensions represent cells
    16         FPA.NAME        STR     EXPNUM  # A PHU keyword for unique identifier within the hierarchy level
     16        FPA.OBS         STR     EXPNUM  # A PHU keyword for unique identifier within the hierarchy level
    1717END
    1818
  • trunk/ippconfig/megacam/format_split.config

    r15095 r17911  
    1212        PHU             STR     CHIP    # The FITS file represents an entire FPA
    1313        EXTENSIONS      STR     NONE    # The extensions represent chips
    14         FPA.NAME        STR     EXPNUM  # A PHU keyword for unique identifier
     14        FPA.OBS         STR     EXPNUM  # A PHU keyword for unique identifier
    1515        CONTENT         STR     EXTNAME # Key to the CONTENTS menu
    1616        CONTENT.RULE    STR     {CHIP.NAME} # How to derive the CONTENT when writing
     
    9191# How to translate PS concepts into FITS headers
    9292TRANSLATION     METADATA
    93         FPA.NAME        STR     EXPNUM
     93        FPA.OBS        STR     EXPNUM
    9494        FPA.AIRMASS     STR     AIRMASS
    9595        FPA.FILTER      STR     FILTER
  • trunk/ippconfig/mosaic2/format.config

    r17735 r17911  
    1313        PHU             STR     FPA      # The FITS file represents an entire FPA
    1414        EXTENSIONS      STR     CELL     # The extensions represent cells
    15         FPA.NAME        STR     FILENAME # A PHU keyword for unique identifier within the hierarchy level
     15        FPA.OBS STR     FILENAME # A PHU keyword for unique identifier within the hierarchy level
    1616END
    1717
  • trunk/ippconfig/recipes/ppStats.config

    r16254 r17911  
    8181  CONCEPT       STR     FPA.TIME        # Time of exposure
    8282  CONCEPT       STR     FPA.TELESCOPE   # Telescope (eg, CFHT)
    83   CONCEPT       STR     FPA.INSTRUMENT  # Instrument (eg, CFH12K)
     83  CONCEPT       STR     FPA.CAMERA      # Instrument (eg, CFH12K)
    8484  CONCEPT       STR     CHIP.TEMP       # Detector temperature
    8585  CONCEPT       STR     CELL.EXPOSURE   # Exposure time
  • trunk/ippconfig/sdss/format.config

    r14553 r17911  
    1414        PHU             STR     FPA     # The FITS file represents an entire FPA
    1515        EXTENSIONS      STR     NONE    # There are no extensions
    16         FPA.NAME        STR     FRAME   # A PHU keyword for unique identifier within the hierarchy level
     16        FPA.OBS STR     FRAME   # A PHU keyword for unique identifier within the hierarchy level
    1717END
    1818
  • trunk/ippconfig/sdss/format_skycell.config

    r14553 r17911  
    1414        PHU             STR     FPA     # The FITS file represents an entire FPA
    1515        EXTENSIONS      STR     NONE    # There are no extensions
    16         FPA.NAME        STR     FRAME   # A PHU keyword for unique identifier within the hierarchy level
     16        FPA.OBS         STR     FRAME   # A PHU keyword for unique identifier within the hierarchy level
    1717END
    1818
  • trunk/ippconfig/simmosaic/format_split.config

    r15095 r17911  
    1212        PHU             STR     CHIP            # The FITS file represents an entire FPA
    1313        EXTENSIONS      STR     CELL            # There are no extensions
    14         FPA.NAME        STR     FPANAME         # A PHU keyword for unique FPA identifier
     14        FPA.OBS         STR     FPANAME         # A PHU keyword for unique FPA identifier
    1515        CONTENT         STR     CHIPNAME        # How to determine content of FITS file
    1616        CONTENT.RULE    STR     {CHIP.NAME}     # How to derive the CONTENT when writing
  • trunk/ippconfig/simmosaic/format_together.config

    r15064 r17911  
    1212        PHU             STR     FPA             # The FITS file represents an entire FPA
    1313        EXTENSIONS      STR     CHIP            # There are no extensions
    14         FPA.NAME        STR     FPANAME         # A PHU keyword for unique FPA identifier
     14        FPA.OBS         STR     FPANAME         # A PHU keyword for unique FPA identifier
    1515        CONTENT         STR     CHIPNAME        # How to determine content of FITS file
    1616END
  • trunk/ippconfig/simple/format.config

    r13110 r17911  
    1111        PHU             STR     FPA     # The FITS file represents an entire FPA
    1212        EXTENSIONS      STR     NONE    # There are no extensions
    13         FPA.NAME        STR     NAXIS   # A PHU keyword for unique identifier within the hierarchy level
     13        FPA.OBS         STR     NAXIS   # A PHU keyword for unique identifier within the hierarchy level
    1414END
    1515
  • trunk/ippconfig/simtest/format.config

    r16220 r17911  
    1212        PHU             STR     FPA     # The FITS file represents an entire FPA
    1313        EXTENSIONS      STR     NONE    # There are no extensions
    14         FPA.NAME        STR     OBJECT  # A PHU keyword for unique identifier within the hierarchy level
     14        FPA.OBS STR     OBJECT  # A PHU keyword for unique identifier within the hierarchy level
    1515END
    1616
  • trunk/ippconfig/tc3/format.config

    r15095 r17911  
    1313        PHU             STR     CHIP    # The FITS file represents a chip
    1414        EXTENSIONS      STR     CELL    # The extensions represent cells
    15         FPA.NAME        STR     OBSTYPE # A PHU keyword for unique identifier
     15        FPA.OBS STR     OBSTYPE # A PHU keyword for unique identifier
    1616        CONTENT         STR     DETECTOR # How to determine content of FITS file
    1717        CONTENT.RULE    STR     {CHIP.NAME}     # How to derive the CONTENT when writing
  • trunk/ippconfig/tek/format.config

    r14564 r17911  
    1414        PHU             STR     FPA     # The FITS file represents an entire FPA
    1515        EXTENSIONS      STR     NONE    # There are no extensions
    16         FPA.NAME        STR     NAXIS   # A PHU keyword for unique identifier within the hierarchy level
     16        FPA.OBS STR     NAXIS   # A PHU keyword for unique identifier within the hierarchy level
    1717END
    1818
  • trunk/ippconfig/ucam/format_raw.config

    r9716 r17911  
    1313        PHU             STR     FPA     # The FITS file represents an entire FPA
    1414        EXTENSIONS      STR     CELL    # The extensions represent cells
    15         FPA.NAME        STR     OBSTYPE # A PHU keyword for unique identifier within the hierarchy level
     15        FPA.OBS         STR     OBSTYPE # A PHU keyword for unique identifier within the hierarchy level
    1616END
    1717
Note: See TracChangeset for help on using the changeset viewer.