Changeset 36837 for trunk/psastro/src/psastroOneChipFit.c
- Timestamp:
- Jun 8, 2014, 9:27:56 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroOneChipFit.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroOneChipFit.c
r27639 r36837 62 62 if (match == NULL) { 63 63 psLogMsg ("psastro", 3, "failed to find radius-matched sources\n"); 64 psastroChipFailureHeader (updates); 64 65 return false; 65 66 } … … 69 70 if (!unique) { 70 71 psLogMsg ("psastro", 3, "failed to generate a uniq set of matched sources\n"); 72 psastroChipFailureHeader (updates); 71 73 return false; 72 74 } … … 99 101 psLogMsg ("psastro", 3, "insufficient stars or invalid order: %ld stars", match->n); 100 102 psFree (match); 103 psastroChipFailureHeader (updates); 101 104 return false; 102 105 } … … 126 129 psFree (match); 127 130 psFree (fitStats); 131 psastroChipFailureHeader (updates); 128 132 return false; 129 133 } … … 185 189 psMetadataAddS32 (updates, PS_LIST_TAIL, "NASTRO", PS_META_REPLACE, "number of astrometry stars", astNstar); 186 190 } else { 187 psMetadataAddF32 (updates, PS_LIST_TAIL, "CPRECISE", PS_META_REPLACE, "astrometry precision (arcsec)", 0.0); 188 psMetadataAddS32 (updates, PS_LIST_TAIL, "NASTRO", PS_META_REPLACE, "number of astrometry stars", 0); 191 psastroChipFailureHeader (updates); 189 192 } 190 193 psMetadataAddF32 (updates, PS_LIST_TAIL, "EQUINOX", PS_META_REPLACE, "equinox of ref catalog", 2000.0); // XXX this is bogus: should be defined based on equinox of refstars … … 222 225 } 223 226 227 bool psastroChipFailureHeader (psMetadata *updates) { 228 psMetadataAddF32 (updates, PS_LIST_TAIL, "CPRECISE", PS_META_REPLACE, "astrometry precision (arcsec)", 0.0); 229 psMetadataAddS32 (updates, PS_LIST_TAIL, "NASTRO", PS_META_REPLACE, "number of astrometry stars", 0); 230 return true; 231 } 232 233 234 224 235 // psastroWriteStars ("raw.1.dat", rawstars); 225 236 // psastroWriteStars ("ref.1.dat", refstars);
Note:
See TracChangeset
for help on using the changeset viewer.
