IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39194


Ignore:
Timestamp:
Nov 29, 2015, 9:35:02 AM (11 years ago)
Author:
eugene
Message:

add vector needle diagrams

Location:
branches/eam_branches/ipp-20151113/Ohana/src/opihi
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20151113/Ohana/src/opihi/cmd.astro/Makefile

    r39183 r39194  
    2323$(SRC)/cdot.$(ARCH).o              \
    2424$(SRC)/cline.$(ARCH).o             \
     25$(SRC)/cneedles.$(ARCH).o                  \
    2526$(SRC)/cplot.$(ARCH).o             \
    2627$(SRC)/csystem.$(ARCH).o           \
  • branches/eam_branches/ipp-20151113/Ohana/src/opihi/cmd.astro/init.c

    r39183 r39194  
    77int cdot                    PROTO((int, char **));
    88int cline                   PROTO((int, char **));
     9int cneedles                PROTO((int, char **));
    910int cplot                   PROTO((int, char **));
    1011int csystem                 PROTO((int, char **));
     
    7374  {1, "cdot",        cdot,         "plot point in sky coordinates"},
    7475  {1, "cline",       cline,        "plot line connecting two sky coordinates"},
     76  {1, "cneedles",    cneedles,     "plot vectors in sky coordinates"},
    7577  {1, "cplot",       cplot,        "plot vectors in sky coordinates"},
    7678  {1, "csystem",     csystem,      "convert between coordinate systems"},
  • branches/eam_branches/ipp-20151113/Ohana/src/opihi/cmd.data/Makefile

    r38463 r39194  
    9797$(SRC)/medimage_commands.$(ARCH).o \
    9898$(SRC)/mset.$(ARCH).o           \
     99$(SRC)/needles.$(ARCH).o                \
    99100$(SRC)/peak.$(ARCH).o           \
    100101$(SRC)/periodogram.$(ARCH).o    \
  • branches/eam_branches/ipp-20151113/Ohana/src/opihi/cmd.data/init.c

    r38463 r39194  
    8686int medimage_command PROTO((int, char **));
    8787int mset             PROTO((int, char **));
     88int needles          PROTO((int, char **));
    8889int peak             PROTO((int, char **));
    8990int periodogram      PROTO((int, char **));
     
    261262  {1, "mset",         mset,             "insert a vector in an image"},
    262263  {1, "imset",        mset,             "insert a vector in an image"},
     264  {1, "needles",      needles,          "plot vectors needles"},
    263265  {1, "parity",       parity,           "set image parity"},
    264266  {1, "peak",         peak,             "find vector peak in range"},
  • branches/eam_branches/ipp-20151113/Ohana/src/opihi/include/dvomath.h

    r38441 r39194  
    147147Vector       *InitVector            PROTO((void));
    148148void          FreeVectorArray       PROTO((Vector **vec, int Nvec));
     149void          FreeVector            PROTO((Vector *vec));
    149150int           CopyVector            PROTO((Vector *out, Vector *in));
    150151int           ResetVector           PROTO((Vector *vec, char type, int Nelements));
  • branches/eam_branches/ipp-20151113/Ohana/src/opihi/lib.shell/VectorOps.c

    r33662 r39194  
    1515
    1616// this function is NOT thread protected : it is only used in startup and/or shutdown
     17void FreeVector (Vector *vec) {
     18
     19  if (!vec) return;
     20  if (vec->elements.Int) {
     21    free (vec->elements.Int);
     22  }
     23  free (vec);
     24}
     25
     26// this function is NOT thread protected : it is only used in startup and/or shutdown
    1727void FreeVectorArray (Vector **vec, int Nvec) {
    1828
     
    2131  if (!vec) return;
    2232  for (i = 0; i < Nvec; i++) {
    23     if (!vec[i]) continue;
    24     if (vec[i]->elements.Int) {
    25       free (vec[i]->elements.Int);
    26     }
    27     free (vec[i]);
     33    FreeVector (vec[i]);
    2834  }
    2935  free (vec);
Note: See TracChangeset for help on using the changeset viewer.