IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28514


Ignore:
Timestamp:
Jun 25, 2010, 3:27:16 PM (16 years ago)
Author:
Paul Price
Message:

Need to write a blank header instead of a table, because we haven't got anything that would define a table (without going to the trouble of reading the header and parsing it ourselves).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/magic/remove/src/streaksremove.c

    r28512 r28514  
    979979                streaksExit("", PS_EXIT_DATA_ERROR);
    980980            }
     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            }
    981989        } else {
    982990            printf("Censored ALL %d sources\n", numCensored);
Note: See TracChangeset for help on using the changeset viewer.