IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 8, 2006, 3:50:18 PM (20 years ago)
Author:
eugene
Message:

substantial work to correctly handle higher order polynomial.
conversions between the internal fitting model (R = sum (Aij xi yj))
and the header representation were incorrect: they did not correctly
handle the shift to the CRPIXi value (ie, x -> (x - xo)). i fixed this
by making the fit explicitly work on the fit to the tangent-plane
coordinates, instead of fitting corrections, and calculating the correct
change of polynomial coefficients. this is not as simple as it seems at
first glance: the header version of the coefficients does not have a
zero-order term, and instead has the CRPIX value. to convert from one to
the other requires solving the equation L(Xo,Yo),M(Xo,Yo) = (0,0). I do
this using the Newton-Raphson method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/gastro2/Makefile

    r6426 r8241  
    2323$(SRC)/gregions2.$(ARCH).o
    2424
     25COORDTEST = \
     26$(SRC)/coordtest.$(ARCH).o \
     27$(SRC)/gaussj.$(ARCH).o \
     28$(SRC)/gpairs.$(ARCH).o \
     29$(SRC)/polyfit.$(ARCH).o
     30
    2531GASTRO = \
    2632$(SRC)/getptolemy.$(ARCH).o \
     
    2935$(SRC)/gheader2.$(ARCH).o \
    3036$(SRC)/gfit2.$(ARCH).o \
     37$(SRC)/gpairs.$(ARCH).o \
     38$(SRC)/polyfit.$(ARCH).o \
    3139$(SRC)/plotstuff.$(ARCH).o \
    3240$(SRC)/rotate2.$(ARCH).o \
     
    6270        $(CC) $(2MASS) -o $(BIN)/extr2mass.linux $(CCFLAGS)
    6371
     72coordtest: $(COORDTEST)
     73        $(CC) $(COORDTEST) -o $(BIN)/coordtest.linux $(CCFLAGS)
     74
    6475# dependancy rules for binary code ##########################
    6576$(PROGRAM): $(BIN)/$(PROGRAM).$(ARCH)
Note: See TracChangeset for help on using the changeset viewer.