Changeset 26891 for trunk/Ohana/src/opihi/cmd.astro
- Timestamp:
- Feb 10, 2010, 7:24:46 PM (16 years ago)
- Location:
- trunk/Ohana/src/opihi/cmd.astro
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.astro/mkgauss.c
r7917 r26891 11 11 Buffer *buf; 12 12 13 Xo = Yo = 0; 13 // this should be Nx/2, Ny/2 if not set 14 Xo = Yo = NAN; 14 15 if ((N = get_argument (argc, argv, "-c"))) { 15 16 remove_argument (N, &argc, argv); … … 30 31 Ny = buf[0].header.Naxis[1]; 31 32 33 if (isnan(Xo)) Xo = Nx / 2; 34 if (isnan(Yo)) Yo = Ny / 2; 35 32 36 /* gaussian parameters */ 33 37 Sig_x = atof (argv[2]); -
trunk/Ohana/src/opihi/cmd.astro/profile.c
r20936 r26891 31 31 ResetVector (yvec, OPIHI_FLT, (int)SQ(2*N+1)); 32 32 33 bzero (yvec[0].elements.Flt, (int)SQ(2*N+1)*sizeof(opihi_flt) +1);33 bzero (yvec[0].elements.Flt, (int)SQ(2*N+1)*sizeof(opihi_flt)); 34 34 V = (float *)(buf[0].matrix.buffer); 35 35 Npt = 0; 36 36 Nx = buf[0].matrix.Naxis[0]; 37 for (i = sx - N; i < sx + N; i++) {38 for (j = sy - N; j < sy + N; j++, Npt++) {37 for (i = sx - N; i <= sx + N; i++) { 38 for (j = sy - N; j <= sy + N; j++, Npt++) { 39 39 yvec[0].elements.Flt[Npt] = V[i + j*Nx]; 40 xvec[0].elements.Flt[Npt] = hypot (i - sx, j- sy);40 xvec[0].elements.Flt[Npt] = hypot (i + 0.5 - sx, j + 0.5 - sy); 41 41 } 42 42 } -
trunk/Ohana/src/opihi/cmd.astro/star.c
r7917 r26891 24 24 if ((argc != 4) && (argc != 5)) { 25 25 gprint (GP_ERR, "USAGE: star (buffer) x y [dx] [-border N] [-sat cnts]\n"); 26 gprint (GP_ERR, " dx is the aperture diameter, but is adjusted up to the next odd number\n"); 26 27 return (FALSE); 27 28 }
Note:
See TracChangeset
for help on using the changeset viewer.
