- Timestamp:
- Mar 21, 2006, 1:52:54 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/rel10_ifa/psModules/src/astrom/pmConceptsWrite.c
r6575 r6663 132 132 if (cell) { 133 133 pmHDU *hdu = pmHDUGetLowest(NULL, NULL, cell); // The HDU at the lowest level 134 if (!hdu) { 135 return false; 136 } 134 137 psMetadata *cameraFormat = hdu->format; // The camera format 135 138 psMetadataIterator *specsIter = psMetadataIteratorAlloc(specs, PS_LIST_HEAD, NULL); // Iterator … … 145 148 // Formatted version 146 149 psMetadataItem *formatted = conceptFormat(spec, conceptItem, cameraFormat, NULL, NULL, cell); 150 if (!formatted) { 151 continue; 152 } 147 153 psString nameSource = NULL; // String with the concept name and ".SOURCE" added 148 154 psStringAppend(&nameSource, "%s.SOURCE", name); … … 193 199 { 194 200 pmHDU *hdu = pmHDUGetLowest(NULL, NULL, cell); // The HDU at the lowest level 201 if (!hdu) { 202 return false; 203 } 195 204 psMetadata *cameraFormat = hdu->format; // The camera format 196 205 bool mdok = true; // Status of MD lookup … … 208 217 psMetadataItem *conceptItem = psMetadataLookup(concepts, name); // The item from the concepts 209 218 psMetadataItem *formatted = conceptFormat(spec, conceptItem, cameraFormat, fpa, chip, cell); 219 if (!formatted) { 220 continue; 221 } 210 222 if (! compareConcepts(defaultItem, formatted)) { 211 223 psLogMsg(__func__, PS_LOG_WARN, "Concept %s is specified by the DEFAULTS in the camera " … … 229 241 { 230 242 pmHDU *hdu = pmHDUGetLowest(NULL, NULL, cell); // The HDU at the lowest level 243 if (!hdu) { 244 return false; 245 } 231 246 psMetadata *cameraFormat = hdu->format; // The camera format 232 247 bool mdok = true; // Status of MD lookup … … 249 264 psMetadataItem *conceptItem = psMetadataLookup(concepts, name); // The item from the concepts 250 265 psMetadataItem *formatted = conceptFormat(spec, conceptItem, cameraFormat, fpa, chip, cell); 266 if (!formatted) { 267 continue; 268 } 251 269 psList *keywords = psStringSplit(headerItem->data.V, " ,;"); // List of header keywords 252 270 if (formatted->type == PS_DATA_LIST) { … … 289 307 { 290 308 pmHDU *hdu = pmHDUGetLowest(NULL, NULL, cell); // The HDU at the lowest level 309 if (!hdu) { 310 return false; 311 } 291 312 psMetadata *cameraFormat = hdu->format; // The camera format 292 313 bool mdok = true; // Status of MD lookup … … 311 332 psMetadataItem *conceptItem = psMetadataLookup(concepts, name); // The item from the concepts 312 333 psMetadataItem *formatted = conceptFormat(spec, conceptItem, cameraFormat, fpa, chip, cell); 334 if (!formatted) { 335 continue; 336 } 313 337 314 338 psMetadata *dbLookup = dbItem->data.V; // How to look up the value of interest
Note:
See TracChangeset
for help on using the changeset viewer.
