Changeset 39228 for trunk/Ohana/src/opihi/cmd.astro/fitpm.c
- Timestamp:
- Dec 3, 2015, 5:34:47 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.astro/fitpm.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.astro/fitpm.c
r37807 r39228 1 1 # include "astro.h" 2 # define J2000 51544.5 /* Modified Julian date at standard epoch J2000 */3 4 # define ESCAPE(MSG,...) { \5 gprint (GP_ERR, MSG, __VA_ARGS__); \6 return FALSE; }7 8 typedef struct {9 double Ro, dRo;10 double Do, dDo;11 12 double uR, duR;13 double uD, duD;14 15 double chisq;16 int Nfit;17 } PMFit;18 19 int FitPMonly (PMFit *fit, double *X, double *dX, double *Y, double *dY, double *T, int Npts, int VERBOSE);20 2 21 3 int fitpm (int argc, char **argv) { … … 122 104 } 123 105 124 P MFit fit;106 PlxFit fit; 125 107 if (!FitPMonly (&fit, X, dX, Y, dY, t, n, VERBOSE)) { 126 108 return FALSE; … … 158 140 159 141 /* do we want an init function which does the alloc and a clear function to free? */ 160 int FitPMonly (P MFit *fit, double *X, double *dX, double *Y, double *dY, double *T, int Npts, int VERBOSE) {142 int FitPMonly (PlxFit *fit, double *X, double *dX, double *Y, double *dY, double *T, int Npts, int VERBOSE) { 161 143 162 144 int i; … … 241 223 fit[0].duD = sqrt(A[3][3]); 242 224 225 fit[0].p = 0.0; 226 fit[0].dp = NAN; 227 243 228 // add up the chi square for the fit 244 229 chisq = 0.0;
Note:
See TracChangeset
for help on using the changeset viewer.
