IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 8, 2006, 5:09:28 PM (20 years ago)
Author:
Paul Price
Message:

Modified the camera configuration to use camera config (components of the camera) and format descriptions (FITS file layout).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rel10_ifa/psModules/src/config/pmConfig.h

    r6297 r6553  
    33 *  @author PAP, IfA
    44 *
    5  *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2006-02-02 04:51:14 $
     5 *  @version $Revision: 1.3.4.1 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2006-03-09 03:09:28 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    1515
    1616
     17// Configuration information
     18typedef struct
     19{
     20    psMetadata *site;                   // Site configuration
     21    psMetadata *camera;                 // Camera specification
     22    psMetadata *recipe;                 // Recipe for processing
     23    psMetadata *arguments;              // Command-line arguments
     24    psDB *database;                     // Database handle
     25}
     26pmConfig;
     27
     28pmConfig *pmConfigAlloc(void);
    1729
    1830/** pmConfigRead
    19  * 
     31 *
    2032 * pmConfigRead shall load the site configuration (according to the above rule
    2133 * for determining the source). The camera configuration shall also be loaded if
     
    3244 *
    3345 */
    34 bool pmConfigRead(
    35     psMetadata **site,
    36     psMetadata **camera,
    37     psMetadata **recipe,
     46pmConfig *pmConfigRead(
    3847    int *argc,
    3948    char **argv,
    40     const char *recipeName
    41 );
    42 
     49    const char *recipeName);
    4350
    4451
    4552/** pmConfigValidateCamera
    46  * 
     53 *
    4754 * This function, used by pmConfigCameraFromHeader, shall return true if the
    4855 * FITS header matches the rule contained in the camera configuration (see
    4956 * x2.2.2.3); otherwise it shall return false.
    50  * 
     57 *
    5158 */
    52 bool pmConfigValidateCamera(
    53     const psMetadata *camera,
    54     const psMetadata *header
    55 );
    56 
     59bool pmConfigValidateCameraFormat(
     60    const psMetadata *cameraFormat,
     61    const psMetadata *header);
    5762
    5863
    5964/** pmConfigCameraFromHeader
    60  * 
     65 *
    6166 * pmConfigCameraFromHeader shall load the camera configuration based on the
    6267 * contents of the FITS header, using the list of known cameras contained in the
    6368 * site configuration. If more than one camera matches the FITS header, a warning
    6469 * shall be generated and the first matching camera returned.
    65  * 
     70 *
    6671 */
    67 psMetadata *pmConfigCameraFromHeader(
    68     const psMetadata *site,
    69     const psMetadata *header
     72psMetadata *pmConfigCameraFormatFromHeader(
     73    pmConfig *config,                   // The configuration
     74    const psMetadata *header           // The FITS header
    7075);
    7176
    7277
    73 
    7478/** pmConfigRecipeFromCamera
    75  * 
     79 *
    7680 * pmConfigRecipeFromCamera shall load the recipe configuration based on the
    77  * recipeName and the list of known recipes contained in the camera 
     81 * recipeName and the list of known recipes contained in the camera
    7882 * configuration.
    79  * 
     83 *
    8084 */
    81 psMetadata *pmConfigRecipeFromCamera(
    82     const psMetadata *camera,
     85bool pmConfigRecipeFromCamera(
     86    pmConfig *config,
    8387    const char *recipeName
    8488);
    8589
    8690/** pmConfigDB
    87  * 
     91 *
    8892 * pmConfigDB shall use the site configuration data to open a database handle.
    8993 * This is fairly straightforward at the moment, but will change when we beef up
    9094 * security. (TBD)
    91  * 
     95 *
    9296 */
    9397#ifdef DOMIT_PSDB
Note: See TracChangeset for help on using the changeset viewer.