Changeset 41285 for trunk/psastro/src/psastroOneChipFit.c
- Timestamp:
- Feb 24, 2020, 4:01:13 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroOneChipFit.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroOneChipFit.c
r39926 r41285 36 36 37 37 // select the desired chip order 38 REQUIRED_RECIPE_VALUE (int order, "PSASTRO.CHIP.ORDER", S32);38 REQUIRED_RECIPE_VALUE (int defaultOrder, "PSASTRO.CHIP.ORDER", S32); 39 39 40 40 // allowed limits for valid solutions … … 57 57 } 58 58 59 sprintf (name, "PSASTRO.ONE.CHIP.ORDER.N%d", iter); 60 int order = psMetadataLookupS32 (&status, recipe, name); 61 if (!status) { 62 order = defaultOrder; 63 } 59 64 60 65 // use small radius to match stars … … 76 81 match = unique; 77 82 } 83 84 // XXX check if we correctly applied the new transformation: 85 if (psTraceGetLevel("psastro.dump") > 0) { 86 char *filename = NULL; 87 char *chipname = psMetadataLookupStr (&status, chip->concepts, "CHIP.NAME"); 88 psStringAppend (&filename, "match.pref.%s.%d.dat", chipname, iter); 89 psastroDumpMatchedStars (filename, rawstars, refstars, match); 90 psFree (filename); 91 filename = NULL; 92 } 93 78 94 79 95 // modify the order to correspond to the actual number of matched stars: … … 137 153 psastroUpdateChipToFPA (fpa, chip); // updates PSASTRO.RAWSTARS and PSASTRO.REFSTARS 138 154 155 // XXX check if we correctly applied the new transformation: 156 if (psTraceGetLevel("psastro.dump") > 0) { 157 char *filename = NULL; 158 char *chipname = psMetadataLookupStr (&status, chip->concepts, "CHIP.NAME"); 159 psStringAppend (&filename, "match.post.%s.%d.dat", chipname, iter); 160 psastroDumpMatchedStars (filename, rawstars, refstars, match); 161 psFree (filename); 162 filename = NULL; 163 } 164 139 165 // toSky converts from FPA & TPA units (microns) to sky units (radians) 140 166 float plateScale = 0.5*(fpa->toSky->Xs + fpa->toSky->Ys)*3600.0*PM_DEG_RAD;
Note:
See TracChangeset
for help on using the changeset viewer.
