IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 19, 2007, 2:02:52 PM (19 years ago)
Author:
eugene
Message:

adding the PANSTARRS-DEV-1 format

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/dvo/mextract.c

    r13479 r13884  
    77  char *RegionName, *RegionList, *p;
    88  double *M1;
    9   char **cstack;
     9  char **cstack, name[1024];
    1010  float *values;
    1111
     
    6363  ALLOCATE (vec, Vector *, Nreturn);
    6464  for (i = 0; i < Nreturn; i++) {
    65     if ((vec[i] = SelectVector (fields[i].name, ANYVECTOR, TRUE)) == NULL) goto escape;
     65    if (ISNUM(fields[i].name[0])) {
     66      sprintf (name, "v_%s", fields[i].name);
     67    } else {
     68      sprintf (name, "%s", fields[i].name);
     69    }
     70    if ((vec[i] = SelectVector (name, ANYVECTOR, TRUE)) == NULL) goto escape;
    6671  }
    6772
Note: See TracChangeset for help on using the changeset viewer.