IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4421


Ignore:
Timestamp:
Jun 28, 2005, 2:41:45 PM (21 years ago)
Author:
eugene
Message:

work on the galaxy models

Location:
trunk/psphot/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/apply_psf_model.c

    r4375 r4421  
    7676        }
    7777    }
     78
     79    // XXX this test compares dSx,dSy distribution with model.
     80    // XXX it has some problems
     81    // test_psf_scatter (sources);
     82
    7883    psLogMsg ("psphot", 3, "fit PSF models: %f sec for %d objects (%d total iterations)\n", psTimerMark ("psphot"), Nfit, Niter);
    7984    psLogMsg ("psphot", 3, "subtracted %d PSF objects\n", Nsub);
  • trunk/psphot/src/onesource.c

    r4375 r4421  
    3939    DumpImage (source->pixels, "resid.fits");
    4040    DumpImage (source->mask, "mask.fits");
     41    return true;
    4142}
  • trunk/psphot/src/psphot-utils.c

    r4398 r4421  
    5757{
    5858
    59   FILE *f = fopen (key, "w");
     59  FILE *f = fopen (filename, "w");
    6060
    6161  for (int j = 0; j < test->sources->n; j++) {
     
    7272  }
    7373  fclose (f);
     74  return true;
    7475}
    7576
     
    154155{
    155156
    156     int i, j;
    157     FILE *f;
    158     psVector *params;
    159     psVector *dparams;
    160     psModel  *model;
     157    int i;
     158    FILE *f;
    161159
    162160    f = fopen (filename, "w");
  • trunk/psphot/src/psphot.c

    r4398 r4421  
    33int main (int argc, char **argv) {
    44
    5     psMetadata  *config  = NULL;                // user-provided configuration information
     5    psMetadata  *config  = NULL;
    66    psImageData *imdata  = NULL;
    77    psArray     *sources = NULL;
    8     psArray     *peaks   = NULL;                // a list of pmPeaks
     8    psArray     *peaks   = NULL;
    99    pmPSF       *psf     = NULL;
    1010    psStats     *sky     = NULL;
     
    2525    sources = source_moments (imdata, config, peaks);
    2626
     27    // classify sources based on moments, brightness
    2728    basic_classes (sources, config);
    2829
     
    3031    sources = psArraySort (sources, by_SN);
    3132
    32     // use stellar objects SN > PSF_SN_LIM
     33    // use bright stellar objects to measure PSF
    3334    psf = choose_psf_model (config, sources, sky);
    3435
     
    3940    apply_psf_model (imdata, config, sources, psf, sky);
    4041
    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
    4543    // fit_galaxies (imdata, config, sources);
    4644
  • trunk/psphot/src/setup.c

    r4375 r4421  
    4343      psFree (file);
    4444    } else {
    45       psScalar *value;
    4645
    4746      noise = psImageAlloc (image->numCols, image->numRows, PS_TYPE_F32);
     
    5453      // XXX EAM it looks like psBinaryOp is broken for (image op scalar)
    5554      # if (0)
     55      psScalar *value;
     56
    5657      value = psScalarAlloc (1.0 / GAIN, PS_TYPE_F64);
    5758      noise = (psImage *) psBinaryOp (NULL, image, "/", value);
Note: See TracChangeset for help on using the changeset viewer.