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.astro/cplot.c

    r20839 r20857  
    2323  if ((yvec = SelectVector (argv[2], OLDVECTOR, TRUE)) == NULL) return (FALSE);
    2424
     25  REQUIRE_VECTOR_FLT (xvec, FALSE);
     26  REQUIRE_VECTOR_FLT (yvec, FALSE);
     27
    2528  if (xvec[0].Nelements != yvec[0].Nelements) {
    2629    gprint (GP_ERR, "vectors are not the same length\n");
     
    4144  Npts = 0;
    4245  for (i = 0; i < Xvec.Nelements; i++, r++, d++) {
    43       *r = ohana_normalize_angle (*r);
     46    *r = ohana_normalize_angle (*r);
    4447    while (*r < Rmin) *r += 360.0;
    4548    while (*r > Rmax) *r -= 360.0;
     
    7780
    7881  graphmode.etype = 0;
    79   PlotVectorPair (kapa, Npts, Xvec.elements.Flt, Yvec.elements.Flt, &graphmode);
     82  PlotVectorPair (kapa, Xvec, Yvec, &graphmode);
    8083 
    8184  free (Xvec.elements.Flt);
Note: See TracChangeset for help on using the changeset viewer.