IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3459


Ignore:
Timestamp:
Mar 18, 2005, 4:37:10 PM (21 years ago)
Author:
eugene
Message:

added char type to fits tables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.data/read_vectors.c

    r2843 r3459  
    204204  for (i = 1; i < argc; i++) {
    205205    void   *data;
     206    char   *Pc;
    206207    short  *Ps;
    207208    int    *Pi;
     
    214215    if (Binary) {
    215216      if (!fits_get_bintable_column_type (&header, argv[i], type, &Nval)) return (FALSE);
    216       if (!strcmp (type, "char")) return (FALSE);
    217217      if (!fits_get_bintable_column (&header, &table, argv[i], &data)) return (FALSE);
    218218    } else {
    219219      if (!fits_get_table_column_type (&header, argv[i], type)) return (FALSE);
    220       if (!strcmp (type, "char")) return (FALSE);
    221220      if (!fits_get_table_column (&header, &table, argv[i], &data)) return (FALSE);
    222221    }
     
    266265      }
    267266    }
     267    if (!strcmp (type, "char")) {
     268      Pc = (char *) data;
     269      for (j = 0; j < Ny; j++) {
     270        for (k = 0; k < Nval; k++, Pc++) {
     271          vec[k][0].elements[j] = *Pc;
     272        }
     273      }
     274    }
    268275    free (data);
    269276    free (vec);
Note: See TracChangeset for help on using the changeset viewer.