IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 4, 2006, 4:29:10 PM (20 years ago)
Author:
eugene
Message:

cleanup the CreateBuffer function and use, fix buffer init

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.astro/imfit.c

    r7917 r9275  
    138138    free (out[0].header.buffer);
    139139    free (out[0].matrix.buffer);
     140
    140141    strcpy (out[0].file, "(empty)");
    141     out[0].header.bitpix = -32;
    142     out[0].header.bscale = 1.0;
    143     out[0].header.bzero  = 0.0;
    144     out[0].header.unsign = FALSE;
    145     out[0].header.Naxes = 2;
    146     out[0].header.Naxis[0] = 2*nx;
    147     out[0].header.Naxis[1] = 2*ny;
    148     CreateBuffer (out);
     142    CreateBuffer (out, 2*nx, 2*ny, -32, 0.0, 1.0);
    149143
    150144    /* four panels: 1) raw image. 2) fit  3) raw - fit   4) ?? */
Note: See TracChangeset for help on using the changeset viewer.