Changeset 41874
- Timestamp:
- Nov 3, 2021, 11:48:39 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-dev-20210817/Ohana/src/addstar/src/ReadImageHeader.c
r41341 r41874 70 70 } 71 71 72 // 2021.11.03 : consider replacing or supplementing CERROR with CERSTD 73 // if (!gfits_scan (header, "CERROR", "%lf", 1, &tmp)) tmp = 1.0; 74 72 75 /* require Nastro > 0 unless or ACCEPT_ASTROM */ 73 Nastro= 0;74 gfits_scan (header, "NASTRO", "%d", 1, &Nastro); 75 Cerror = 0;76 FWHM_X = FWHM_Y = Nastro = Cerror = 0; 77 78 gfits_scan (header, "NASTRO", "%d", 1, &Nastro); 76 79 gfits_scan (header, "CERROR", "%lf", 1, &Cerror); 77 FWHM_X = FWHM_Y = 0;78 80 gfits_scan (header, "FWHM_X", "%lf", 1, &FWHM_X); 79 81 gfits_scan (header, "FWHM_Y", "%lf", 1, &FWHM_Y); 82 80 83 if (((Nastro == 0) || (Cerror > MAX_CERROR)) && !ACCEPT_ASTROM) { 81 84 fprintf (stderr, "bad astrometric solution in header\n"); … … 111 114 } 112 115 113 /* CERROR in data file is in arcsec */ 114 if (!gfits_scan (header, "CERROR", "%lf", 1, &tmp)) tmp = 1.0; 115 image[0].cerror = tmp * 50.0; 116 /* CERROR / CERSTD in data file in arcsec; db field is units of 20 mas */ 117 image[0].cerror = 50.0 * Cerror; 116 118 117 119 /* get photcode from header */
Note:
See TracChangeset
for help on using the changeset viewer.
