IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 30, 2010, 9:31:50 AM (16 years ago)
Author:
eugene
Message:

updates from trunk

Location:
branches/eam_branches/ipp-20100621/magic
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100621/magic

    • Property svn:ignore
      •  

        old new  
        22ssa-core-cpp
        33Makefile.bak
         4qt-everywhere-opensource-src-4.6.1
         5
  • branches/eam_branches/ipp-20100621/magic/remove/src/streaksremove.c

    r28275 r28794  
    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.