IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8003


Ignore:
Timestamp:
Jul 27, 2006, 4:52:42 PM (20 years ago)
Author:
eugene
Message:

changed method to recognize FITS vs TEXT

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/addstar/src/gstars.c

    r7080 r8003  
    44
    55  FILE *f;
    6   int j, N, Nbytes, extend;
     6  int j, N, Nbytes, extend, naxis;
    77  int itmp, hour, min;
    88  char *name, *c, photname[64], line[80];
     
    177177  } else {
    178178    /* read from FITS table or from text table */
    179     extend = FALSE;
    180     gfits_scan (&header, "EXTEND",  "%t", 1, &extend);
    181     if (extend && !TEXTMODE) {
     179    naxis = 2;
     180    gfits_scan (&header, "NAXIS",  "%d", 1, &naxis);
     181    if ((naxis == 0) && !TEXTMODE) {
    182182      Nbytes = gfits_matrix_size (&header);
    183183      fseek (f, Nbytes, SEEK_CUR);
Note: See TracChangeset for help on using the changeset viewer.