IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 7, 2008, 3:31:01 PM (18 years ago)
Author:
eugene
Message:

big update from eam_branch_20081124 with updates to Opihi math

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.data/dimenup.c

    r9275 r20936  
    44 
    55  int i, Nx, Ny, Npix;
    6   float *in, *out;
     6  float *out;
    77  Vector *vec;
    88  Buffer *buf;
     
    2929
    3030  out = (float *) buf[0].matrix.buffer;
    31   in = vec[0].elements;
    3231
    33   for (i = 0; i < Npix; i++, in++, out++) {
    34     *out = *in;
     32  if (vec[0].type == OPIHI_FLT) {
     33    opihi_flt *in = vec[0].elements.Flt;
     34    for (i = 0; i < Npix; i++, in++, out++) {
     35      *out = *in;
     36    }
     37  } else {
     38    opihi_int *in = vec[0].elements.Int;
     39    for (i = 0; i < Npix; i++, in++, out++) {
     40      *out = *in;
     41    }
    3542  }
    3643
Note: See TracChangeset for help on using the changeset viewer.