Changeset 20271 for trunk/psastro/src/psastroFixChipsTest.c
- Timestamp:
- Oct 19, 2008, 1:54:21 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroFixChipsTest.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroFixChipsTest.c
r16078 r20271 201 201 202 202 // 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 } 204 210 205 211 // select the raw objects for this readout … … 228 234 readout->data_exists = false; 229 235 psLogMsg ("psastro", 3, "failed to find a solution\n"); 230 psFree (updates);231 236 continue; 232 237 } 233 238 234 239 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 238 240 } 239 241
Note:
See TracChangeset
for help on using the changeset viewer.
