IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 17, 2006, 8:01:05 AM (20 years ago)
Author:
magnier
Message:

updates relative to rel10_ifa_1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/config/pmConfig.h

    r6297 r6872  
    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.4 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2006-04-17 18:01:05 $
    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 *recipes;                // Recipes for processing
     23    psMetadata *arguments;              // Command-line arguments
     24    psMetadata *files;                  // pmFPAfiles used for analysis
     25    //    psMetadata *format;   // camera format for primary image
     26    psDB *database;                     // Database handle
     27}
     28pmConfig;
     29
     30pmConfig *pmConfigAlloc(void);
     31
     32// Free static variables
     33void pmConfigDone(void);
    1734
    1835/** pmConfigRead
    19  * 
     36 *
    2037 * pmConfigRead shall load the site configuration (according to the above rule
    2138 * for determining the source). The camera configuration shall also be loaded if
     
    3249 *
    3350 */
    34 bool pmConfigRead(
    35     psMetadata **site,
    36     psMetadata **camera,
    37     psMetadata **recipe,
     51pmConfig *pmConfigRead(
    3852    int *argc,
    39     char **argv,
    40     const char *recipeName
     53    char **argv);
     54
     55/** we need this elsewhere; make it public **/
     56bool readConfig(
     57    psMetadata **config,                // Config to output
     58    const char *name,                   // Name of file
     59    const char *description             // Description of file
    4160);
    4261
    43 
    44 
    4562/** pmConfigValidateCamera
    46  * 
     63 *
    4764 * This function, used by pmConfigCameraFromHeader, shall return true if the
    4865 * FITS header matches the rule contained in the camera configuration (see
    4966 * x2.2.2.3); otherwise it shall return false.
    50  * 
     67 *
    5168 */
    52 bool pmConfigValidateCamera(
    53     const psMetadata *camera,
    54     const psMetadata *header
    55 );
    56 
     69bool pmConfigValidateCameraFormat(
     70    const psMetadata *cameraFormat,
     71    const psMetadata *header);
    5772
    5873
    5974/** pmConfigCameraFromHeader
    60  * 
     75 *
    6176 * pmConfigCameraFromHeader shall load the camera configuration based on the
    6277 * contents of the FITS header, using the list of known cameras contained in the
    6378 * site configuration. If more than one camera matches the FITS header, a warning
    6479 * shall be generated and the first matching camera returned.
    65  * 
     80 *
    6681 */
    67 psMetadata *pmConfigCameraFromHeader(
    68     const psMetadata *site,
    69     const psMetadata *header
     82psMetadata *pmConfigCameraFormatFromHeader(
     83    pmConfig *config,                   // The configuration
     84    const psMetadata *header           // The FITS header
    7085);
    7186
    7287
    73 
    7488/** pmConfigRecipeFromCamera
    75  *
    76  * pmConfigRecipeFromCamera shall load the recipe configuration based on the
    77  * recipeName and the list of known recipes contained in the camera
     89 *
     90 * pmConfigRecipeFromCamera shall load the recipes from the list of known recipes contained in the camera
    7891 * configuration.
    79  * 
     92 *
    8093 */
    81 psMetadata *pmConfigRecipeFromCamera(
    82     const psMetadata *camera,
    83     const char *recipeName
     94bool pmConfigReadRecipes(
     95    pmConfig *config
    8496);
    8597
    8698/** pmConfigDB
    87  * 
     99 *
    88100 * pmConfigDB shall use the site configuration data to open a database handle.
    89101 * This is fairly straightforward at the moment, but will change when we beef up
    90102 * security. (TBD)
    91  * 
     103 *
    92104 */
    93105#ifdef DOMIT_PSDB
     
    99111);
    100112
     113/** pmConfigConformHeader
     114 *
     115 * Make the supplied header conform to the nominated camera format.
     116 */
     117bool pmConfigConformHeader(psMetadata *header, // Header to conform
     118                           const psMetadata *format // Camera format
     119                          );
     120
     121
     122psArray *pmConfigFileSets (int *argc, char **argv, char *file, char *list);
     123bool pmConfigFileSetsMD (psMetadata *metadata, int *argc, char **argv, char *name, char *file, char *list);
     124
    101125
    102126#endif
Note: See TracChangeset for help on using the changeset viewer.