IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41666


Ignore:
Timestamp:
Jun 23, 2021, 12:34:19 PM (5 years ago)
Author:
eugene
Message:

add forced photometry function and trail fitting function

Location:
trunk/Ohana/src/opihi/cmd.astro
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.astro/Makefile

    r40376 r41666  
    4242$(SRC)/fixcols.$(ARCH).o           \
    4343$(SRC)/fiximage.$(ARCH).o          \
     44$(SRC)/forcedphot.$(ARCH).o        \
    4445$(SRC)/gauss.$(ARCH).o             \
    4546$(SRC)/getvel.$(ARCH).o            \
     
    9091$(SRC)/imfit-qgauss-psf.$(ARCH).o          \
    9192$(SRC)/imfit-sgauss.$(ARCH).o      \
    92 $(SRC)/imfit-sgauss-psf.$(ARCH).o          \
     93$(SRC)/imfit-sgauss-psf.$(ARCH).o  \
    9394$(SRC)/imfit-qfgauss.$(ARCH).o     \
    94 $(SRC)/imfit-qrgauss.$(ARCH).o     
     95$(SRC)/imfit-qrgauss.$(ARCH).o     \
     96$(SRC)/imfit-trail.$(ARCH).o
    9597
    9698# dependancy rules for include files ########################
  • trunk/Ohana/src/opihi/cmd.astro/imfit.c

    r39233 r41666  
    6565    qfgauss_setup (argv[N]);
    6666    qrgauss_setup (argv[N]);
     67    trail_setup (argv[N]);
    6768    if (fitfunc == NULL) {
    6869      gprint (GP_ERR, "unknown function %s\n", argv[N]);
     
    124125  dchisq = ochisq;
    125126  chisq  = ochisq;
    126   for (i = 0; (i < 25) && ((dchisq <= 0.0) || (dchisq > 0.01*(Npts - Npar))); i++) {
     127
     128//for (i = 0; (i < 25) && ((dchisq <= 0.0) || (dchisq > 0.01*(Npts - Npar))); i++) {
     129
     130  for (i = 0; (i < 25); i++) {
    127131    chisq = mrq2dmin (x, y, z, dz, Npts, par, Npar, fitfunc, VERBOSE);
    128132    dchisq = ochisq - chisq;
    129133    ochisq = chisq;
     134    fprintf (stderr, "%f -> %f : %f\n", ochisq, chisq, dchisq);
    130135  } 
    131136  set_int_variable ("Niter",  i);
  • trunk/Ohana/src/opihi/cmd.astro/init.c

    r41379 r41666  
    2727int fixcols                 PROTO((int, char **));
    2828int fixrows                 PROTO((int, char **));
     29int forcedphot              PROTO((int, char **));
    2930int gauss                   PROTO((int, char **));
    3031int gaussfit                PROTO((int, char **));
     
    100101  {1, "fixcols",     fixcols,      "fix bad columns by comparing with others"},
    101102  {1, "fixrows",     fixrows,      "fix bad rows by comparing with others"},
     103  {1, "forcedphot",  forcedphot,   "forced photometry on a star or set of stars, assuming gaussian profile"},
    102104  {1, "gauss",       gauss,        "get statistics on a star, assuming gaussian profile"},
    103105  {1, "getvel",      getvel,       "rotcurve to velocities"},
Note: See TracChangeset for help on using the changeset viewer.