IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 30, 2008, 7:45:21 AM (18 years ago)
Author:
eugene
Message:

modify functions to use both int and flt vectors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20081124/Ohana/src/opihi/cmd.data/mget.c

    r20839 r20857  
    3333
    3434  if (xdir) {
    35     vec[0].Nelements = Npix = Nx;
    36     REALLOCATE (vec[0].elements.Flt, opihi_flt, Npix);
     35    Npix = Nx;
     36    ResetVector (vec, OPIHI_FLT, Nx);
    3737    if (Nset >= Ny) {
    3838      gprint (GP_ERR, "row out of range\n");
     
    4545    }
    4646  } else {
    47     vec[0].Nelements = Npix = Ny;
    48     REALLOCATE (vec[0].elements.Flt, opihi_flt, Npix);
     47    Npix = Ny;
     48    ResetVector (vec, OPIHI_FLT, Ny);
    4949    if (Nset >= Nx) {
    5050      gprint (GP_ERR, "column out of range\n");
Note: See TracChangeset for help on using the changeset viewer.