IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28939


Ignore:
Timestamp:
Aug 17, 2010, 10:42:55 AM (16 years ago)
Author:
bills
Message:

minor fixes to addstar for sdss files

File:
1 edited

Legend:

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

    r28839 r28939  
    1111  NAME = (TYPE *) gfits_get_bintable_column_data (table.header, &table, #NAME, type, &Nrow, &Ncol); \
    1212  assert (NAME); assert (!strcmp (type, #TYPE)); assert (Nrow == Nstars); assert (Ncol == NFILTER);
     13
     14# define GET_COLUMN_5_NOASSERT(NAME,TYPE) \
     15  TYPE *NAME; \
     16  NAME = (TYPE *) gfits_get_bintable_column_data (table.header, &table, #NAME, type, &Nrow, &Ncol);
    1317
    1418# define GET_COLUMN_1(NAME,TYPE) \
     
    123127  GET_COLUMN_5 (flags2, int);
    124128
     129#ifdef notyet
    125130  GET_COLUMN_5 (prob_psf, float);
     131#else
     132  GET_COLUMN_5_NOASSERT (prob_psf, float);
     133#endif
    126134
    127135  GET_COLUMN_1 (ra, double);
     
    160168      stars[N].measure.FWx       = ShortPixels(seeing[j]); // reported in arcsec?
    161169      stars[N].measure.FWy       = ShortPixels(seeing[j]);
    162       stars[N].measure.psfChisq  = prob_psf[N]; // XXX not really the correct value...
     170      if (prob_psf) {
     171          stars[N].measure.psfChisq  = prob_psf[N]; // XXX not really the correct value...
     172      } else {
     173          stars[N].measure.psfChisq  = NAN;
     174      }
    163175      stars[N].measure.detID     = N;
    164176      stars[N].measure.t         = tzero[j] + clockRate*rowc[N]; // time since row 0
    165       stars[N].measure.dt        = 53.907456; // is this 2048*clockRate ?
     177      stars[N].measure.dt        = 4.32912209; // 2.5 * log(53.907456) the sdss exposure time // old comment is 53907456 is this 2048*clockRate ?
    166178
    167179      SetSDSSFlags (&stars[N], flags[N], flags2[N]);
Note: See TracChangeset for help on using the changeset viewer.