IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 9, 2016, 12:01:06 PM (10 years ago)
Author:
eugene
Message:

finished setobjflags

File:
1 edited

Legend:

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

    r39496 r39525  
    2929  gfits_define_bintable_column (&theader, "D", "DEC",      "", "degree", 1.0, 0.0);
    3030  gfits_define_bintable_column (&theader, "J", "MYBIT",    "", "", 1.0, FT_BZERO_INT32);
    31 //gfits_define_bintable_column (&theader, "J", "averef",   "", "", 1.0, FT_BZERO_INT32);
    32 //gfits_define_bintable_column (&theader, "J", "objID",    "", "", 1.0, FT_BZERO_INT32);
    33 //gfits_define_bintable_column (&theader, "J", "catID",    "", "", 1.0, FT_BZERO_INT32);
    3431
    3532  int i;
     
    3734  double       *dec      = NULL; ALLOCATE (dec     , double      , Nstars); for (i = 0; i < Nstars; i++) dec     [i] = stars[i].D      ;
    3835  unsigned int *myBit    = NULL; ALLOCATE (myBit   , unsigned int, Nstars); for (i = 0; i < Nstars; i++) myBit   [i] = stars[i].myBit  ;
    39 //unsigned int *averef   = NULL; ALLOCATE (averef  , unsigned int, Nstars); for (i = 0; i < Nstars; i++) averef  [i] = stars[i].starpar.averef  ;
    40 //unsigned int *objID    = NULL; ALLOCATE (objID   , unsigned int, Nstars); for (i = 0; i < Nstars; i++) objID   [i] = stars[i].starpar.objID   ;
    41 //unsigned int *catID    = NULL; ALLOCATE (catID   , unsigned int, Nstars); for (i = 0; i < Nstars; i++) catID   [i] = stars[i].starpar.catID   ;
    4236
    4337  // generate the output array that carries the data
     
    113107  GET_COLUMN(dec     , "DEC"       ,   double      ,   double      );
    114108  GET_COLUMN(myBit   , "MYBIT"     ,   unsigned int,   int         );
    115 //GET_COLUMN(averef  , "averef"    ,   unsigned int,   int         );
    116 //GET_COLUMN(objID   , "objID"     ,   unsigned int,   int         );
    117 //GET_COLUMN(catID   , "catID"     ,   unsigned int,   int         );
    118109
    119110  gfits_free_header (&theader);
     
    128119    stars[i].D                = dec    [i];
    129120    stars[i].myBit            = myBit  [i];
     121    stars[i].flag             = FALSE;
     122    stars[i].found            = FALSE;
    130123  }
    131124
Note: See TracChangeset for help on using the changeset viewer.