IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 3, 2015, 4:13:55 PM (11 years ago)
Author:
eugene
Message:

add fitpm_irls, fitplx_irls

Location:
branches/eam_branches/ipp-20151113/Ohana/src/opihi/cmd.astro
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20151113/Ohana/src/opihi/cmd.astro

  • branches/eam_branches/ipp-20151113/Ohana/src/opihi/cmd.astro/Makefile

    r39194 r39223  
    3535$(SRC)/fitplx.$(ARCH).o    \
    3636$(SRC)/fitpm.$(ARCH).o     \
     37$(SRC)/fitpm_irls.$(ARCH).o  \
     38$(SRC)/fitplx_irls.$(ARCH).o  \
    3739$(SRC)/fixwrap.$(ARCH).o           \
    3840$(SRC)/fixcols.$(ARCH).o           \
  • branches/eam_branches/ipp-20151113/Ohana/src/opihi/cmd.astro/fitpm_irls.c

    r39086 r39223  
    231231  sigma_ols = 0.0;
    232232  for (i = 0; i < Npts; i++) {
    233     rx[i] = X[i] - (T[i] * B[0][0] + B[1][0]);
    234     ry[i] = Y[i] - (T[i] * B[2][0] + B[3][0]);
     233    rx[i] = X[i] - (T[i] * B[1][0] + B[0][0]);
     234    ry[i] = Y[i] - (T[i] * B[3][0] + B[2][0]);
    235235    //    u[i] = r[i] /
    236236    sigma_ols += SQ(rx[i]) + SQ(ry[i]);
     
    280280    sigma_hat = 0.0;
    281281    for (i = 0; i < Npts; i++) {
    282       rx[i] = X[i] - (T[i] * B[0][0] + B[1][0]);
    283       ry[i] = Y[i] - (T[i] * B[2][0] + B[3][0]);
     282      rx[i] = X[i] - (T[i] * B[1][0] + B[0][0]);
     283      ry[i] = Y[i] - (T[i] * B[3][0] + B[2][0]);
    284284      u[i] = sqrt(SQ(rx[i] / dX[i]) + SQ(ry[i] / dY[i]));
    285285    }
  • branches/eam_branches/ipp-20151113/Ohana/src/opihi/cmd.astro/init.c

    r39194 r39223  
    2020int fitplx                  PROTO((int, char **));
    2121int fitpm                   PROTO((int, char **));
     22int fitpm_irls              PROTO((int, char **));
     23int fitplx_irls             PROTO((int, char **));
    2224int fixwrap                 PROTO((int, char **));
    2325int fiximage                PROTO((int, char **));
     
    8789  {1, "fitplx",      fitplx,       "fit proper motion and parallax"},
    8890  {1, "fitpm",       fitpm,        "fit proper motion only"},
     91  {1, "fitpm_irls",  fitpm_irls,   "fit proper motion only using irls method"},
     92  {1, "fitplx_irls", fitplx_irls,  "fit proper motion and parallax using irls method"},
    8993  {1, "fixwrap",     fixwrap,      "fix megacam over-wrapped pixels"},
    9094  {1, "fiximage",    fiximage,     "fix pixels in an image by interpolation"},
Note: See TracChangeset for help on using the changeset viewer.