Changeset 28939
- Timestamp:
- Aug 17, 2010, 10:42:55 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/addstar/src/ReadStarsSDSS.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/src/ReadStarsSDSS.c
r28839 r28939 11 11 NAME = (TYPE *) gfits_get_bintable_column_data (table.header, &table, #NAME, type, &Nrow, &Ncol); \ 12 12 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); 13 17 14 18 # define GET_COLUMN_1(NAME,TYPE) \ … … 123 127 GET_COLUMN_5 (flags2, int); 124 128 129 #ifdef notyet 125 130 GET_COLUMN_5 (prob_psf, float); 131 #else 132 GET_COLUMN_5_NOASSERT (prob_psf, float); 133 #endif 126 134 127 135 GET_COLUMN_1 (ra, double); … … 160 168 stars[N].measure.FWx = ShortPixels(seeing[j]); // reported in arcsec? 161 169 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 } 163 175 stars[N].measure.detID = N; 164 176 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 ? 166 178 167 179 SetSDSSFlags (&stars[N], flags[N], flags2[N]);
Note:
See TracChangeset
for help on using the changeset viewer.
