Changeset 20936 for trunk/Ohana/src/opihi/cmd.astro/biassub.c
- Timestamp:
- Dec 7, 2008, 3:31:01 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.astro/biassub.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.astro/biassub.c
r7917 r20936 5 5 int i, j, k, N, dir, nlong, nwide, start; 6 6 int sx, sy, nx, ny, NX, NY, NoVector, Nval; 7 float *V, *DV, dV, *vect, *segment, val; 7 float *V, dV, *segment, val; 8 opihi_flt *DV, *vect; 8 9 Vector *xvec, *yvec; 9 10 Buffer *buf; … … 54 55 } 55 56 56 ALLOCATE (vect, float, nlong);57 ALLOCATE (vect, opihi_flt, nlong); 57 58 ALLOCATE (segment, float, nwide); 58 59 … … 90 91 91 92 if (!NoVector) { 92 xvec[0].Nelements = yvec[0].Nelements = nlong; 93 REALLOCATE (xvec[0].elements, float, nlong); 94 REALLOCATE (yvec[0].elements, float, nlong); 93 ResetVector (xvec, OPIHI_FLT, nlong); 94 ResetVector (yvec, OPIHI_FLT, nlong); 95 95 for (i = 0; i < nlong; i++) { 96 xvec[0].elements [i] = i + start;97 yvec[0].elements [i] = vect[i];96 xvec[0].elements.Flt[i] = i + start; 97 yvec[0].elements.Flt[i] = vect[i]; 98 98 } 99 99 }
Note:
See TracChangeset
for help on using the changeset viewer.
