IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38308


Ignore:
Timestamp:
May 22, 2015, 8:08:59 PM (11 years ago)
Author:
eugene
Message:

add flags for addstar -refs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/grefstars.c

    r38268 r38308  
    2424    InitStar (&stars[N]);
    2525
    26     dparse (&stars[N].average.R,  1, line);
    27     dparse (&stars[N].average.D,  2, line);
     26    int status = sscanf (line, "%lf %lf %f %f %x",
     27                     &stars[N].average.R,  &stars[N].average.D, 
     28                     &stars[N].measure.M, &stars[N].measure.dM,
     29                     &stars[N].measure.photFlags);
     30    if ((status != 4) && (status != 5)) {
     31      fprintf (stderr, "error reading line: %s\n", line);
     32      N --;
     33      continue;
     34    }
    2835    stars[N].average.R = ohana_normalize_angle (stars[N].average.R);
    29 
    30     fparse (&stars[N].measure.M,  3, line);
    31     fparse (&stars[N].measure.dM, 4, line);
    3236
    3337    stars[N].measure.R = stars[N].average.R;
Note: See TracChangeset for help on using the changeset viewer.