Changeset 5903
- Timestamp:
- Jan 5, 2006, 1:03:06 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/addstar/src/get2mass_as.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/src/get2mass_as.c
r5451 r5903 36 36 if (photcode == TM_J) { 37 37 FilterSkip = 6; 38 TimeSkip = 23; 38 // TimeSkip = 23; 39 TimeSkip = 28; 39 40 Qentry = 0; 40 41 } 41 42 if (photcode == TM_H) { 42 43 FilterSkip = 10; 43 TimeSkip = 19; 44 // TimeSkip = 19; 45 TimeSkip = 24; 44 46 Qentry = 1; 45 47 } 46 48 if (photcode == TM_K) { 47 49 FilterSkip = 14; 48 TimeSkip = 15; 50 // looks like this should be 20, not 15... 51 // TimeSkip = 15; 52 TimeSkip = 20; 49 53 Qentry = 2; 50 54 } … … 163 167 } 164 168 165 e_time get2mass_time (char *ptr, char *buffer, int Nbound, int Nbyte) { 169 // this function retrieves the time from the DATE field 170 e_time get2mass_date (char *ptr, char *buffer, int Nbound, int Nbyte) { 166 171 167 172 e_time time; … … 174 179 *end = 0; 175 180 time = date_to_sec (ptr); 181 *end = '|'; 182 183 return (time); 184 } 185 186 // this function retrieves the time from the JDATE field (%12.4f) 187 e_time get2mass_time (char *ptr, char *buffer, int Nbound, int Nbyte) { 188 189 e_time time; 190 double jd; 191 char *p, *end; 192 193 p = skipNbounds (ptr, '|', Nbound, Nbyte - (ptr - buffer)); 194 if (p == NULL) Shutdown ("format error in 2mass"); 195 end = memchr (p, '|', Nbyte - (p - buffer)); 196 if (end == NULL) Shutdown ("format error in 2mass"); 197 *end = 0; 198 jd = strtod (p, NULL); 199 time = jd_to_sec (jd); 176 200 *end = '|'; 177 201
Note:
See TracChangeset
for help on using the changeset viewer.
