IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 28, 2010, 8:11:04 PM (16 years ago)
Author:
Paul Price
Message:

Merging trunk in preparation for merging branch to trunk.

Location:
branches/pap
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/pap

  • branches/pap/magic/remove/src/streaksremove.c

    r28275 r28534  
    577577}
    578578
    579 static void 
     579static void
    580580setStreakBits(psImage *maskImage, psU32 maskStreak)
    581581{
     
    644644            if (exciseAll) {
    645645                strkGetMaskValues(sf);
    646                
     646
    647647                // add the STREAK bit to the mask image pixels
    648648                setStreakBits(sf->inMask->image, sf->maskStreak);
     
    941941        psArray *inTable = psFitsReadTable(in->fits);
    942942        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);
    948944            streaksExit("", PS_EXIT_DATA_ERROR);
    949945        }
     
    983979                streaksExit("", PS_EXIT_DATA_ERROR);
    984980            }
     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            }
    985989        } else {
    986990            printf("Censored ALL %d sources\n", numCensored);
Note: See TracChangeset for help on using the changeset viewer.