Changeset 28534 for branches/pap/magic/remove/src/streaksremove.c
- Timestamp:
- Jun 28, 2010, 8:11:04 PM (16 years ago)
- Location:
- branches/pap
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
magic/remove/src/streaksremove.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap
- Property svn:mergeinfo changed
/trunk (added) merged: 28500,28502,28507,28509-28512,28514,28516-28518,28520,28522,28524-28532
- Property svn:mergeinfo changed
-
branches/pap/magic/remove/src/streaksremove.c
r28275 r28534 577 577 } 578 578 579 static void 579 static void 580 580 setStreakBits(psImage *maskImage, psU32 maskStreak) 581 581 { … … 644 644 if (exciseAll) { 645 645 strkGetMaskValues(sf); 646 646 647 647 // add the STREAK bit to the mask image pixels 648 648 setStreakBits(sf->inMask->image, sf->maskStreak); … … 941 941 psArray *inTable = psFitsReadTable(in->fits); 942 942 if (!inTable) { 943 psErrorStackPrint(stderr, "failed to read tablle in %s", in->resolved_name); 944 streaksExit("", PS_EXIT_DATA_ERROR); 945 } 946 if (!inTable->n) { 947 psErrorStackPrint(stderr, "table in %s is empty", in->resolved_name); 943 psErrorStackPrint(stderr, "failed to read table in %s", in->resolved_name); 948 944 streaksExit("", PS_EXIT_DATA_ERROR); 949 945 } … … 983 979 streaksExit("", PS_EXIT_DATA_ERROR); 984 980 } 981 } else if (psArrayLength(inTable) == 0) { 982 printf("No input sources\n"); 983 // We'd like to write a blank table, but this is as good as it gets without more work to parse the 984 // header and create dummy columns. 985 if (!psFitsWriteBlank(out->fits, header, extname)) { 986 psErrorStackPrint(stderr, "failed to write empty header to %s", out->resolved_name); 987 streaksExit("", PS_EXIT_DATA_ERROR); 988 } 985 989 } else { 986 990 printf("Censored ALL %d sources\n", numCensored);
Note:
See TracChangeset
for help on using the changeset viewer.
