Changeset 29001 for trunk/Ohana/src/addstar
- Timestamp:
- Aug 20, 2010, 12:05:07 PM (16 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 6 edited
-
. (modified) (1 prop)
-
src/addstar/src/FilterStars.c (modified) (1 diff)
-
src/addstar/src/LoadData.c (modified) (1 diff)
-
src/addstar/src/ReadStarsFITS.c (modified) (7 diffs)
-
src/addstar/src/find_matches_refstars.c (modified) (2 diffs)
-
src/addstar/test/dvomerge.dvo (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
- Property svn:mergeinfo deleted
-
trunk/Ohana/src/addstar/src/FilterStars.c
r28965 r29001 1 1 # include "addstar.h" 2 #include "pslib/psMetadata.h"3 #include "psmodules/pmSourceMasks.h"4 2 # define EXTERNAL_ID TRUE 5 3 -
trunk/Ohana/src/addstar/src/LoadData.c
r28966 r29001 80 80 81 81 inStars = ReadStarsFITS (f, headers[Nhead], headers[Ndata], &images[0][Nvalid].nstar); 82 if (!inStars) { 83 // XXX need to free the data here or in ReadStarsFITS on error 84 continue; 85 } 82 86 inStars = FilterStars (inStars, &images[0][Nvalid], Nvalid, options); 83 87 *stars = MergeStars (*stars, Nstars, inStars, images[0][Nvalid].nstar); -
trunk/Ohana/src/addstar/src/ReadStarsFITS.c
r27435 r29001 49 49 if (stars == NULL) { 50 50 fprintf (stderr, "ERROR: invalid table type %s\n", type); 51 exit (1);51 return (NULL); 52 52 } 53 53 // Nstars is not necessarily == *nstars (The former is the number of detections, the … … 69 69 swapped = FALSE; 70 70 smpdata = gfits_table_get_SMPData (table, &Nstars, &swapped); 71 if (!smpdata) { 72 fprintf (stderr, "skipping inconsistent entry\n"); 73 return (NULL); 74 } 71 75 ZeroPt = GetZeroPoint(); 72 76 … … 108 112 109 113 ps1data = gfits_table_get_PS1_DEV_0 (table, &Nstars, NULL); 114 if (!ps1data) { 115 fprintf (stderr, "skipping inconsistent entry\n"); 116 return (NULL); 117 } 110 118 ZeroPt = GetZeroPoint(); 111 119 … … 153 161 154 162 ps1data = gfits_table_get_PS1_DEV_1 (table, &Nstars, NULL); 163 if (!ps1data) { 164 fprintf (stderr, "skipping inconsistent entry\n"); 165 return (NULL); 166 } 155 167 ZeroPt = GetZeroPoint(); 156 168 … … 212 224 213 225 ps1data = gfits_table_get_CMF_PS1_V1 (table, &Nstars, NULL); 226 if (!ps1data) { 227 fprintf (stderr, "skipping inconsistent entry\n"); 228 return (NULL); 229 } 214 230 ZeroPt = GetZeroPoint(); 215 231 … … 284 300 285 301 ps1data = gfits_table_get_CMF_PS1_V1_Alt (table, &Nstars, NULL); 302 if (!ps1data) { 303 fprintf (stderr, "skipping inconsistent entry\n"); 304 return (NULL); 305 } 286 306 ZeroPt = GetZeroPoint(); 287 307 … … 348 368 349 369 ps1data = gfits_table_get_CMF_PS1_V2 (table, &Nstars, NULL); 370 if (!ps1data) { 371 fprintf (stderr, "skipping inconsistent entry\n"); 372 return (NULL); 373 } 350 374 ZeroPt = GetZeroPoint(); 351 375 -
trunk/Ohana/src/addstar/src/find_matches_refstars.c
r28241 r29001 218 218 } 219 219 220 N = N1[i];220 N = i; 221 221 if (stars[N][0].found > -1) continue; 222 222 if (!IN_REGION (stars[N][0].average.R, stars[N][0].average.D)) continue; … … 286 286 287 287 for (j = 0; j < NREFSTAR_GROUP; j++) { 288 N = N1[i + j];288 N = i + j; 289 289 290 290 catalog[0].measure[Nmeas] = stars[N][0].measure; -
trunk/Ohana/src/addstar/test/dvomerge.dvo
r28368 r29001 95 95 subset T = t if (id == imageID[$i]) 96 96 set dT = T - time[$i] 97 vstat -qdT97 vstat dT 98 98 tapOK {abs($MEAN) < 0.00001} "time for measure ID $i (MEAN)" 99 99 tapOK {abs($SIGMA) < 0.00001} "time for measure ID $i (SIGMA)"
Note:
See TracChangeset
for help on using the changeset viewer.
