IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 25, 2008, 4:51:39 PM (18 years ago)
Author:
eugene
Message:

convert opihi vectors to double type, add option for int type as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20081124/Ohana/src/opihi/cmd.astro/spec.c

    r7917 r20839  
    5555
    5656  N = y2 - y1;
    57   REALLOCATE (xvec[0].elements, float, N);
    58   REALLOCATE (yvec[0].elements, float, N);
     57  REALLOCATE (xvec[0].elements.Flt, opihi_flt, N);
     58  REALLOCATE (yvec[0].elements.Flt, opihi_flt, N);
    5959  xvec[0].Nelements = N;
    6060  yvec[0].Nelements = N;
     
    103103      R += 1.0 / sky2;
    104104    }
    105     xvec[0].elements[j] = j + y1;
    106     yvec[0].elements[j] = F / R;
     105    xvec[0].elements.Flt[j] = j + y1;
     106    yvec[0].elements.Flt[j] = F / R;
    107107    gprint (GP_ERR, " %5.1f %7.1f  %6.2f\n", sky, sky2, (F/R));
    108108  }   
Note: See TracChangeset for help on using the changeset viewer.