IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 21, 2006, 1:52:54 PM (20 years ago)
Author:
Paul Price
Message:

Now works with GPC1 dummy OTA FITS file from Sidik; some other changes to organise things.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rel10_ifa/psModules/src/astrom/pmConceptsWrite.c

    r6575 r6663  
    132132    if (cell) {
    133133        pmHDU *hdu = pmHDUGetLowest(NULL, NULL, cell); // The HDU at the lowest level
     134        if (!hdu) {
     135            return false;
     136        }
    134137        psMetadata *cameraFormat = hdu->format; // The camera format
    135138        psMetadataIterator *specsIter = psMetadataIteratorAlloc(specs, PS_LIST_HEAD, NULL); // Iterator
     
    145148                // Formatted version
    146149                psMetadataItem *formatted = conceptFormat(spec, conceptItem, cameraFormat, NULL, NULL, cell);
     150                if (!formatted) {
     151                    continue;
     152                }
    147153                psString nameSource = NULL; // String with the concept name and ".SOURCE" added
    148154                psStringAppend(&nameSource, "%s.SOURCE", name);
     
    193199{
    194200    pmHDU *hdu = pmHDUGetLowest(NULL, NULL, cell); // The HDU at the lowest level
     201    if (!hdu) {
     202        return false;
     203    }
    195204    psMetadata *cameraFormat = hdu->format; // The camera format
    196205    bool mdok = true;                   // Status of MD lookup
     
    208217                psMetadataItem *conceptItem = psMetadataLookup(concepts, name); // The item from the concepts
    209218                psMetadataItem *formatted = conceptFormat(spec, conceptItem, cameraFormat, fpa, chip, cell);
     219                if (!formatted) {
     220                    continue;
     221                }
    210222                if (! compareConcepts(defaultItem, formatted)) {
    211223                    psLogMsg(__func__, PS_LOG_WARN, "Concept %s is specified by the DEFAULTS in the camera "
     
    229241{
    230242    pmHDU *hdu = pmHDUGetLowest(NULL, NULL, cell); // The HDU at the lowest level
     243    if (!hdu) {
     244        return false;
     245    }
    231246    psMetadata *cameraFormat = hdu->format; // The camera format
    232247    bool mdok = true;                   // Status of MD lookup
     
    249264                psMetadataItem *conceptItem = psMetadataLookup(concepts, name); // The item from the concepts
    250265                psMetadataItem *formatted = conceptFormat(spec, conceptItem, cameraFormat, fpa, chip, cell);
     266                if (!formatted) {
     267                    continue;
     268                }
    251269                psList *keywords = psStringSplit(headerItem->data.V, " ,;"); // List of header keywords
    252270                if (formatted->type == PS_DATA_LIST) {
     
    289307{
    290308    pmHDU *hdu = pmHDUGetLowest(NULL, NULL, cell); // The HDU at the lowest level
     309    if (!hdu) {
     310        return false;
     311    }
    291312    psMetadata *cameraFormat = hdu->format; // The camera format
    292313    bool mdok = true;                   // Status of MD lookup
     
    311332                psMetadataItem *conceptItem = psMetadataLookup(concepts, name); // The item from the concepts
    312333                psMetadataItem *formatted = conceptFormat(spec, conceptItem, cameraFormat, fpa, chip, cell);
     334                if (!formatted) {
     335                    continue;
     336                }
    313337
    314338                psMetadata *dbLookup = dbItem->data.V; // How to look up the value of interest
Note: See TracChangeset for help on using the changeset viewer.