IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 6, 2008, 11:57:29 AM (18 years ago)
Author:
Paul Price
Message:

pmConfigCameraSkycellVersion went AWOL when I was editing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/config/pmConfigCamera.c

    r18939 r18944  
    9595
    9696    return root;
     97}
     98
     99// Generate the skycell version of a named camera configuration
     100bool pmConfigCameraSkycellVersion(psMetadata *system, // The system configuration
     101                                  const char *name // Name of the un-mosaicked camera
     102                                  )
     103{
     104    PS_ASSERT_METADATA_NON_NULL(system, false);
     105    PS_ASSERT_STRING_NON_EMPTY(name, false);
     106
     107    bool mdok;                          // Status of MD lookup
     108    psMetadata *cameras = psMetadataLookupMetadata(&mdok, system, "CAMERAS"); // List of cameras
     109    if (!mdok || !cameras) {
     110        psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to find CAMERAS in the system configuration.\n");
     111        return false;
     112    }
     113    if (!pmConfigGenerateSkycellVersion(cameras, cameras, name, system)) {
     114        psError(PS_ERR_UNKNOWN, true, "Failed to build skycell camera description for %s\n", name);
     115        return false;
     116    }
     117    return true;
    97118}
    98119
Note: See TracChangeset for help on using the changeset viewer.