Changeset 38062 for trunk/Ohana/src/opihi/lib.shell/BufferOps.c
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
-
trunk/Ohana
- Property svn:mergeinfo deleted
-
trunk/Ohana/src/opihi/lib.shell/BufferOps.c
r37807 r38062 120 120 } 121 121 122 // buffer is 1D array referenced in the order: 123 // buffer[x + Nx*y + Nx*Ny*z + ...] 124 int CreateBuffer3D (Buffer *buf, int Nx, int Ny, int Nz, int bitpix, float bzero, float bscale) { 125 126 /* store the default output values */ 127 gfits_init_header (&buf[0].header); 128 129 /* assign the necessary internal values */ 130 buf[0].header.bitpix = -32; 131 buf[0].header.Naxes = 3; 132 buf[0].header.Naxis[0] = Nx; 133 buf[0].header.Naxis[1] = Ny; 134 buf[0].header.Naxis[2] = Nz; 135 136 buf[0].bitpix = bitpix; 137 buf[0].bzero = bzero; 138 buf[0].bscale = bscale; 139 140 /* make some test of the validity of the values */ 141 142 /* create the appropriate header and matrix */ 143 gfits_create_header (&buf[0].header); 144 gfits_create_matrix (&buf[0].header, &buf[0].matrix); 145 146 return (TRUE); 147 } 148 122 149 /* copy data from in to out - new memory space */ 123 150 int CopyNamedBuffer (char *out, char *in) {
Note:
See TracChangeset
for help on using the changeset viewer.
