IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 5, 2011, 10:43:45 AM (15 years ago)
Author:
eugene
Message:

various improvements to relphot, related support

Location:
trunk/Ohana/src/opihi/cmd.data
Files:
3 edited
1 copied

Legend:

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

    r29938 r31450  
    141141$(SRC)/vpop.$(ARCH).o              \
    142142$(SRC)/vroll.$(ARCH).o             \
     143$(SRC)/vshift.$(ARCH).o            \
    143144$(SRC)/vsmooth.$(ARCH).o           \
    144145$(SRC)/vstats.$(ARCH).o            \
  • trunk/Ohana/src/opihi/cmd.data/gridify.c

    r20936 r31450  
    44
    55  int i, Nx, Ny, Xb, Yb, Normalize, N;
    6   float Xmin, Xmax, dX, Ymin, Ymax, dY;
     6  float Xmin, Xmax, dX, Ymin, Ymax, dY, initValue;
    77  float *buf, *val;
    88  int *Nval;
     
    1515    remove_argument (N, &argc, argv);
    1616    Normalize = FALSE;
     17  }
     18
     19  initValue = 0.0;
     20  if ((N = get_argument (argc, argv, "-init-value"))) {
     21    remove_argument (N, &argc, argv);
     22    initValue = atof(argv[N]);
     23    remove_argument (N, &argc, argv);
    1724  }
    1825
     
    6976  buf = (float *) bf[0].matrix.buffer;
    7077  for (i = 0; i < Nx*Ny; i++) {
     78    buf[i] = initValue;
    7179    if (Normalize) {
    7280      if (Nval[i] == 0) {
    73         buf[i] = 0;
    7481        continue;
    7582      }
  • trunk/Ohana/src/opihi/cmd.data/init.c

    r29938 r31450  
    130130int vstats           PROTO((int, char **));
    131131int vroll            PROTO((int, char **));
     132int vshift           PROTO((int, char **));
    132133int vpop             PROTO((int, char **));
    133134int vsmooth          PROTO((int, char **));
     
    274275  {1, "vmaxwell",     vmaxwell,         "fit a Maxwellian to a vector"},
    275276  {1, "vpop",         vpop,             "remove first element of a vector"},
    276   {1, "vroll",        vroll,            "roll vector elements"},
     277  {1, "vroll",        vroll,            "roll vector elements by 1 entry"},
     278  {1, "vshift",       vshift,           "shift vector elements by arbitrary amount"},
    277279  {1, "vsmooth",      vsmooth,          "Gaussian smooth of a vector"},
    278280  {1, "vstats",       vstats,           "statistics on a vector"},
Note: See TracChangeset for help on using the changeset viewer.