IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changes between Initial Version and Version 1 of Configfiles


Ignore:
Timestamp:
Feb 24, 2009, 4:23:54 PM (17 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Configfiles

    v1 v1  
     1Notes on creating/copying configuration files and adding a new camera config. Created for IPP 2.2, likely to be outdated in many ways by now that we are at 2.6.1. Started by Sebastian Jester (jester at mpia.de)
     2
     3Also see [wiki:Debugging#Debugging_configuration_errors Debugging configuration errors]
     4
     5= Hot news in 2.6.1 =
     6
     7psastro insists on having a MEF format config file defined, because that's what it uses for its outputs. Thus, even if your camera's data natively come in the SPLIT format (with different chips in different fits files), you need a format_mef.config file (with different chips in different '''extensions''' of the same file). Here's a [[Image(htdocs:/images/Format_mef.diff.txt)]] between my SDSSmosaic/format.config (the original, SPLIT-format file) and the format_mef.config that Paul kindly "invented" for me, which seems to make things work. If your camera is SPLIT format, use the diff as a guide for how to make a MEF config file. You then need to point to both the SPLIT and the MEF files in your camera's camera.config in a section like this one:
     8
     9 # File formats that we know about
     10 FORMATS         METADATA
     11        MEF     STR     sdssmosaic/format_mef.config
     12       SPLIT    STR    sdssmosaic/format.config
     13 END
     14
     15Note that the order is relevant - MEF needs to come first.
     16
     17= Initializing =
     18
     19First, make sure there's a ~/.ptolemyrc (for Ohana [?]) and ~/.ipprc (for everything outside Ohana) config file (follow the links for my versions from IfA). The following commands copy the default versions to your home directory, create an ippconfig directory where you can edit the config files and create new ones for new cameras, and set you up with the default camera config files etc. (assuming you are using ipp-2.2 on a 64-bit linux machine):
     20
     21 mkdir ~/ippconfig
     22 cp -r $PSCONFDIR/ipp-2.2.lin64/share/ippconfig/* ~/ippconfig
     23 cd ~/ippconfig
     24 cp dvo.site ~/.ptolemyrc
     25 cp ipprc.config ~/.ipprc
     26
     27Then point at this directory in the .ipprc file, with
     28
     29 PATH            STR     /home/panstarrs/jester/ippconfig
     30
     31There's a similar entry in ~/.ptolemyrc:
     32
     33 CONFDIR                 /home/panstarrs/jester/ippconfig
     34
     35
     36'''Should the config files be ipp version-dependent? What's the mechanism to point to different dvo databases, e.g. one for MDS and one for 3pi?'''
     37
     38= New camera config for the SDSS =
     39
     40Since SDSS produces one file per chip and every chip has its own filter, I start with a copy of the ISP config files since they're for a single chip, too:
     41
     42 cp -r ~/ippconfig/isp ~/ippconfig/sdss
     43
     44Then specify that the camera 'SDSS' is described in the sdss directory, and specify the dvo camera name (?) in ~/.ipprc:
     45
     46 ### Setups for each camera system
     47 CAMERAS         METADATA
     48        SDSS                    STR     sdss/camera.config
     49 END
     50 
     51 ### camera names as expected by DVO
     52 DVO.CAMERAS             METADATA
     53        SDSS                    STR     sdss
     54 END
     55
     56Then you need to edit a number of files in the sdss directory.
     57
     58== format.config ==
     59
     60This tells ipp how to recognize that a given fits file is from SDSS, e.g. by looking for certain header keywords:
     61
     62 # How to identify this type
     63 RULE    METADATA
     64         SIMPLE          BOOL    TRUE
     65 #       NAXIS           S32     2
     66         ORIGIN          STR     SDSS
     67         TELESCOP        STR     2.5m
     68 END
     69
     70In the CELLS section you can specify that only a subsection of the frame should be used, which is useful for SDSS images since they have the following image's first 64 rows tacked on at the end:
     71
     72 # Specify the cell data
     73 CELLS   METADATA
     74                  CELL.TRIMSEC            STR     [1:2048,1:1361]
     75 END
     76
     77'''Maybe this needs to run from 0:2047 etc...'''
     78
     79It also contains the detailed description of how fits header keywords are read by IPP. If something is in the header, specify the relevant header keyword in the TRANSLATION section. If some numbers are fixed, put them in the DEFAULTS section.
     80
     81'''For SDSS, the gain (e.g.) needs to be read from a different file, but with a predictable name. Could external file reference be incorporated?'''
     82
     83== camera.config ==
     84
     85Here you mostly only need to replace 'isp' by 'sdss', and modify some things which tell ipp what the header keywords for dates are, e.g.:
     86
     87  FPA.TIME        STR     TAI
     88
     89and list the allowed filters for this camera
     90
     91 # valid filter names and corresponding IDs
     92 FILTER.ID       METADATA
     93         g       STR     g
     94         r       STR     r
     95         i       STR     i
     96         z       STR     z
     97         u       STR     u
     98 END
     99
     100== ppImage.config ==
     101
     102Here you tell IPP how to construct a photcode for the filter/chip combination from the camera, filter and chip ID:
     103
     104 PHOTCODE.RULE         STR     SDSS.{FILTER.ID}.{DETECTOR}
     105
     106FILTER.ID is from the list in camera.config, and DETECTOR specifies which individual detector there is (in the SDSS camera, each chip has its own fixed filter, so there are 5 filters x 6 camera columns = 30 photcodes).
     107
     108The detector keyword is from the header keyword CCDLOC which in fact already uniquely specifies the system:
     109 CCDLOC = 25
     110means ccd 2 in camcol 5. The filters are fixed to the CCDs in the following order:
     111 1 r
     112 2 i
     113 3 u
     114 4 z
     115 5 g
     116Remember that Robert is under ze Gunn! I.e., ccd 2 implies filter i. The photcodes are more human-readable with the filter name in there, so that's the reason for the redundancy.
     117
     118== dvo.config ==
     119
     120CATDIR is the directory where dvo catalogs are kept. Point this to somewhere where you can write:
     121
     122 CATDIR                        /data/ipp001.0/jester/stripe82/coadd/catdir
     123
     124Also edit the entries for the header keywords that specify things like observing date, e.g.
     125
     126 MJD-KEYWORD           NONE
     127 DATE-KEYWORD          DATE-OBS
     128 DATE-MODE             YYYY-MM-DD
     129 UT-KEYWORD            TAIHMS