- Timestamp:
- May 26, 2009, 1:59:32 PM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090301
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
psastro (modified) (1 prop)
-
psastro/src (modified) (1 prop)
-
psastro/src/psastroLoadRefstars.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090301
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090301/psastro
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090301/psastro/src
- Property svn:ignore
-
old new 17 17 psastroModelFit 18 18 psastroExtract 19 psastroVersionDefinitions.h
-
- Property svn:ignore
-
branches/cnb_branches/cnb_branch_20090301/psastro/src/psastroLoadRefstars.c
r23594 r24244 181 181 ref->sky->d = RAD_DEG*psMetadataLookupF32 (&status, row, "DEC"); 182 182 ref->Mag = 0.001*psMetadataLookupS32 (&status, row, "MAG"); // ELIXIR uses millimags 183 ref->Color = 0.0; 183 184 } else { 184 185 ref->sky->r = RAD_DEG*psMetadataLookupF64 (&status, row, "RA"); 185 186 ref->sky->d = RAD_DEG*psMetadataLookupF64 (&status, row, "DEC"); 186 187 ref->Mag = psMetadataLookupF32 (&status, row, "MAG"); // PANSTARRS uses mags 188 ref->Color = 0.0; 187 189 } 188 190 … … 219 221 ref->sky->d = RAD_DEG*psMetadataLookupF32 (&status, row, "DEC"); 220 222 ref->Mag = psMetadataLookupF32 (&status, row, "MAG"); 223 float MagC1 = psMetadataLookupF32 (&status, row, "MAG_C1"); 224 float MagC2 = psMetadataLookupF32 (&status, row, "MAG_C2"); 225 if (!isnan(MagC1) && !isnan(MagC2)) { 226 ref->Color = MagC1 - MagC2; 227 } else { 228 // XXX save the color and the slope in the table header? 229 ref->Color = 0.0; 230 } 221 231 222 232 // XXX VERY temporary hack to avoid M31 bulge
Note:
See TracChangeset
for help on using the changeset viewer.
