IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 26, 2006, 10:46:32 AM (20 years ago)
Author:
eugene
Message:

adding proper motion and parallax to addstar, dropping _PS from RA and DEC in average

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/gastro/src/gptolemy.c

    r5320 r6683  
    1616  catalog.filename = filename;
    1717  switch (lock_catalog (&catalog, LCK_SOFT)) {
    18   case 0:
    19   case 2:
    20     fprintf (stderr, "can't load catalog data\n");
    21     return (FALSE);
    22   case 1:
    23     break;
     18    case 0:
     19    case 2:
     20      fprintf (stderr, "can't load catalog data\n");
     21      return (FALSE);
     22    case 1:
     23      break;
    2424  }
    2525
     
    4444  /* select all entries, ignore magnitudes */
    4545  for (i = 0; i < catalog.Naverage; i++, nstar++) {
    46     stars[0][nstar].X = catalog.average[i].R_PS;
    47     stars[0][nstar].Y = catalog.average[i].D_PS;
     46    stars[0][nstar].X = catalog.average[i].R;
     47    stars[0][nstar].Y = catalog.average[i].D;
    4848    stars[0][nstar].mag = catalog.measure[catalog.average[i].offset].M_PS;
    4949  }
     
    5252# if (0) 
    5353  for (i = 0; i < catalog.Naverage; i++, nstar++) {
    54     stars[0][nstar].X = catalog.average[i].R_PS;
    55     stars[0][nstar].Y = catalog.average[i].D_PS;
     54    stars[0][nstar].X = catalog.average[i].R;
     55    stars[0][nstar].Y = catalog.average[i].D;
    5656    GotIt = FALSE;
    57     if (catalog.average[i].M_PS != NO_MAG) {
    58       stars[0][nstar].mag = catalog.average[i].M_PS;
     57    if (catalog.average[i].M != NO_MAG) {
     58      stars[0][nstar].mag = catalog.average[i].M;
    5959      GotIt = TRUE;
    6060    }
Note: See TracChangeset for help on using the changeset viewer.