Changeset 4421
- Timestamp:
- Jun 28, 2005, 2:41:45 PM (21 years ago)
- Location:
- trunk/psphot/src
- Files:
-
- 5 edited
-
apply_psf_model.c (modified) (1 diff)
-
onesource.c (modified) (1 diff)
-
psphot-utils.c (modified) (3 diffs)
-
psphot.c (modified) (4 diffs)
-
setup.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/apply_psf_model.c
r4375 r4421 76 76 } 77 77 } 78 79 // XXX this test compares dSx,dSy distribution with model. 80 // XXX it has some problems 81 // test_psf_scatter (sources); 82 78 83 psLogMsg ("psphot", 3, "fit PSF models: %f sec for %d objects (%d total iterations)\n", psTimerMark ("psphot"), Nfit, Niter); 79 84 psLogMsg ("psphot", 3, "subtracted %d PSF objects\n", Nsub); -
trunk/psphot/src/onesource.c
r4375 r4421 39 39 DumpImage (source->pixels, "resid.fits"); 40 40 DumpImage (source->mask, "mask.fits"); 41 return true; 41 42 } -
trunk/psphot/src/psphot-utils.c
r4398 r4421 57 57 { 58 58 59 FILE *f = fopen ( key, "w");59 FILE *f = fopen (filename, "w"); 60 60 61 61 for (int j = 0; j < test->sources->n; j++) { … … 72 72 } 73 73 fclose (f); 74 return true; 74 75 } 75 76 … … 154 155 { 155 156 156 int i, j; 157 FILE *f; 158 psVector *params; 159 psVector *dparams; 160 psModel *model; 157 int i; 158 FILE *f; 161 159 162 160 f = fopen (filename, "w"); -
trunk/psphot/src/psphot.c
r4398 r4421 3 3 int main (int argc, char **argv) { 4 4 5 psMetadata *config = NULL; // user-provided configuration information5 psMetadata *config = NULL; 6 6 psImageData *imdata = NULL; 7 7 psArray *sources = NULL; 8 psArray *peaks = NULL; // a list of pmPeaks8 psArray *peaks = NULL; 9 9 pmPSF *psf = NULL; 10 10 psStats *sky = NULL; … … 25 25 sources = source_moments (imdata, config, peaks); 26 26 27 // classify sources based on moments, brightness 27 28 basic_classes (sources, config); 28 29 … … 30 31 sources = psArraySort (sources, by_SN); 31 32 32 // use stellar objects SN > PSF_SN_LIM33 // use bright stellar objects to measure PSF 33 34 psf = choose_psf_model (config, sources, sky); 34 35 … … 39 40 apply_psf_model (imdata, config, sources, psf, sky); 40 41 41 // XXX this test compares dSx,dSy distribution with model. 42 // XXX it has some problems 43 // test_psf_scatter (sources); 44 42 // fit extended objects with galaxy models 45 43 // fit_galaxies (imdata, config, sources); 46 44 -
trunk/psphot/src/setup.c
r4375 r4421 43 43 psFree (file); 44 44 } else { 45 psScalar *value;46 45 47 46 noise = psImageAlloc (image->numCols, image->numRows, PS_TYPE_F32); … … 54 53 // XXX EAM it looks like psBinaryOp is broken for (image op scalar) 55 54 # if (0) 55 psScalar *value; 56 56 57 value = psScalarAlloc (1.0 / GAIN, PS_TYPE_F64); 57 58 noise = (psImage *) psBinaryOp (NULL, image, "/", value);
Note:
See TracChangeset
for help on using the changeset viewer.
