Changeset 12712
- Timestamp:
- Mar 31, 2007, 5:21:26 PM (19 years ago)
- Location:
- trunk/psastro/src
- Files:
-
- 6 edited
-
psastroChipAstrom.c (modified) (1 diff)
-
psastroLuminosityFunction.c (modified) (2 diffs)
-
psastroMosaicGradients.c (modified) (1 diff)
-
psastroOneChip.c (modified) (1 diff)
-
psastroRefstarSubset.c (modified) (1 diff)
-
psastroUtils.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroChipAstrom.c
r12492 r12712 55 55 char *chipname = psMetadataLookupStr (NULL, chip->concepts, "CHIP.NAME"); 56 56 57 psStringAppend (&filename, "rawstars.ch.%s.dat", chipname); 58 psastroDumpStars (rawstars, filename); 59 psFree (filename); 60 filename = NULL; 57 if (psTraceGetLevel("psastro.dump") > 0) { 58 psStringAppend (&filename, "rawstars.ch.%s.dat", chipname); 59 psastroDumpStars (rawstars, filename); 60 psFree (filename); 61 filename = NULL; 61 62 62 psStringAppend (&filename, "refstars.ch.%s.dat", chipname); 63 psastroDumpStars (refstars, filename); 64 psFree (filename); 65 filename = NULL; 63 psStringAppend (&filename, "refstars.ch.%s.dat", chipname); 64 psastroDumpStars (refstars, filename); 65 psFree (filename); 66 filename = NULL; 67 } 66 68 67 69 // save WCS and analysis metadata in update header -
trunk/psastro/src/psastroLuminosityFunction.c
r11702 r12712 37 37 int nBin = 1 + (mMax - mMin) / dMag; 38 38 if (nBin <= 1) { 39 ps Error(PSASTRO_ERR_DATA, true, "magnitude range of 0.0\n");39 psLogMsg ("psastro", 4, "insufficient valid stars for this readout\n"); 40 40 return NULL; 41 41 } … … 92 92 93 93 if (!psVectorClipFitPolynomial1D(line, stats, mask, 0xff, lnMag, NULL, Mag)) { 94 ps Error(PS_ERR_UNKNOWN, false, "Failed thefit the luminosity function\n");94 psLogMsg ("psastro", 4, "Failed to fit the luminosity function\n"); 95 95 return(NULL); 96 96 } -
trunk/psastro/src/psastroMosaicGradients.c
r12492 r12712 15 15 psTrace ("psastro", 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process); 16 16 if (!chip->process || !chip->file_exists) { continue; } 17 if (!chip->toFPA) { continue; } 17 18 18 19 psRegion *region = pmChipExtent (chip); -
trunk/psastro/src/psastroOneChip.c
r12492 r12712 141 141 142 142 // XXX check if we correctly applied the new transformation: 143 psastroDumpRawstars (rawstars, fpa, chip); 143 if (psTraceGetLevel("psastro.dump") > 0) { 144 psastroDumpRawstars (rawstars, fpa, chip); 145 } 144 146 145 147 if (psTraceGetLevel("psastro.plot") > 0) { -
trunk/psastro/src/psastroRefstarSubset.c
r12492 r12712 23 23 pmLumFunc *rawfunc = psastroLuminosityFunction (rawstars); 24 24 if (rawfunc == NULL) { 25 ps Error(PSASTRO_ERR_DATA, false, "error measuring rawstar luminosity function\n");26 return false;25 psLogMsg ("psastro", 4, "giving up on rawstars for this readout\n"); 26 return true; 27 27 } 28 28 psLogMsg ("psastro", 4, "measuring luminosity function for refstars\n"); 29 29 pmLumFunc *reffunc = psastroLuminosityFunction (refstars); 30 30 if (reffunc == NULL) { 31 ps Error(PSASTRO_ERR_DATA, false, "error measuring refstar luminosity function\n");32 return false;31 psLogMsg ("psastro", 4, "giving up on refstars for this readout\n"); 32 return true; 33 33 } 34 34 -
trunk/psastro/src/psastroUtils.c
r12536 r12712 38 38 pmChip *chip = fpa->chips->data[i]; 39 39 if (!chip->process || !chip->file_exists) { continue; } 40 40 if (!chip->toFPA) { continue; } 41 41 42 pixelScale1 = hypot (chip->toFPA->x->coeff[1][0], chip->toFPA->x->coeff[0][1]); 42 43 pixelScale2 = hypot (chip->toFPA->y->coeff[1][0], chip->toFPA->y->coeff[0][1]); … … 52 53 pmChip *chip = fpa->chips->data[i]; 53 54 if (!chip->process || !chip->file_exists) { continue; } 55 if (!chip->toFPA) { continue; } 54 56 55 57 psPlaneTransform *toFPA = chip->toFPA;
Note:
See TracChangeset
for help on using the changeset viewer.
