Changeset 28212 for trunk/ppTranslate/src/ppMopsRead.c
- Timestamp:
- Jun 3, 2010, 9:08:48 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ppTranslate/src/ppMopsRead.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppTranslate/src/ppMopsRead.c
r28209 r28212 41 41 continue; 42 42 } 43 ppMopsDetections *det = ppMopsDetectionsAlloc( size);43 ppMopsDetections *det = ppMopsDetectionsAlloc(); 44 44 det->header = header; 45 det->num = size; 45 46 46 47 det->raBoresight = psMemIncrRefCounter(psMetadataLookupStr(NULL, header, "FPA.RA")); … … 60 61 det->naxis2 = psMetadataLookupS32(NULL, header, "IMNAXIS2"); 61 62 62 det->table = psFitsReadTableAllColumns(fits); // Table of interest63 psMetadata *table = det->table = psFitsReadTableAllColumns(fits); // Table of interest 63 64 if (!table) { 64 65 psError(psErrorCodeLast(), false, "Unable to read table %d", i); … … 66 67 } 67 68 psFitsClose(fits); 68 69 psTrace("ppMops.read", 2, "Read %ld rows from %s\n", numGood, (const char*)inNames->data[i]);70 69 71 70 det->ra = psMemIncrRefCounter(psMetadataLookupVector(NULL, table, "RA_PSF")); … … 78 77 } 79 78 79 psTrace("ppMops.read", 2, "Read %ld rows from %s\n", det->ra->n, (const char*)inNames->data[i]); 80 80 81 detections->data[i] = det; 81 82 }
Note:
See TracChangeset
for help on using the changeset viewer.
