IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28277


Ignore:
Timestamp:
Jun 9, 2010, 4:27:22 PM (16 years ago)
Author:
eugene
Message:

check for inconsistent data in file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libautocode/def/autocode.c

    r28247 r28277  
    6060$STRUCT *gfits_table_get_$STRUCT (FTable *ftable, off_t *Ndata, char *swapped) {
    6161
     62  int Ncols;
    6263  $STRUCT *data, *output;
     64
     65  Ncols = ftable[0].header[0].Naxis[0];
     66  if (Ncols != $SIZE) {
     67    fprintf (stderr, "ERROR: mis-match in table size: width is %d but should be %d bytes\n", Ncols, $SIZE);
     68    exit (1);
     69  }
    6370
    6471  *Ndata = ftable[0].header[0].Naxis[1];
Note: See TracChangeset for help on using the changeset viewer.