Changeset 36737
- Timestamp:
- May 10, 2014, 2:41:31 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-20140423/psastro/src
- Files:
-
- 3 edited
-
psastro.h (modified) (1 diff)
-
psastroOneChipFit.c (modified) (6 diffs)
-
psastroOneChipGrid.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140423/psastro/src/psastro.h
r35715 r36737 90 90 psArray *psastroRemoveClumpsIterate (psArray *input, int scale, int nIter); 91 91 bool psastroRemoveClumpsRawstars (pmConfig *config); 92 93 bool psastroChipFailureHeader (psMetadata *updates); 92 94 93 95 -
branches/eam_branches/ipp-20140423/psastro/src/psastroOneChipFit.c
r27639 r36737 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); -
branches/eam_branches/ipp-20140423/psastro/src/psastroOneChipGrid.c
r31161 r36737 57 57 psFree (rawGridStars); 58 58 psFree (refGridStars); 59 psastroChipFailureHeader (updates); 59 60 return false; 60 61 } … … 68 69 psFree (rawGridStars); 69 70 psFree (refGridStars); 71 psastroChipFailureHeader (updates); 70 72 return false; 71 73 }
Note:
See TracChangeset
for help on using the changeset viewer.
