IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 19, 2008, 1:54:21 PM (18 years ago)
Author:
eugene
Message:

save chip-offset values to header

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroFixChipsTest.c

    r16078 r20271  
    201201
    202202        // save WCS and analysis metadata in update header
    203         psMetadata *updates = psMetadataAlloc();
     203        // (pull or create local view to entry on readout->analysis)
     204        psMetadata *updates = psMetadataLookupMetadata (&status, readout->analysis, "PSASTRO.HEADER");
     205        if (!updates) {
     206            updates = psMetadataAlloc ();
     207            psMetadataAddMetadata (readout->analysis, PS_LIST_TAIL, "PSASTRO.HEADER",  PS_META_REPLACE, "psastro header stats", updates);
     208            psFree (updates);
     209        }
    204210
    205211        // select the raw objects for this readout
     
    228234            readout->data_exists = false;
    229235            psLogMsg ("psastro", 3, "failed to find a solution\n");
    230             psFree (updates);
    231236            continue;
    232237        }
    233238
    234239        pmAstromWriteWCS (updates, fpa, chip, NONLIN_TOL);
    235         psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSASTRO.HEADER",  PS_DATA_METADATA, "psastro header stats", updates);
    236         psFree (updates);
    237 
    238240    }
    239241
Note: See TracChangeset for help on using the changeset viewer.