IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41432 for trunk


Ignore:
Timestamp:
Nov 10, 2020, 1:25:05 PM (6 years ago)
Author:
eugene
Message:

adding 2d gaussian moment stats

Location:
trunk/Ohana/src/opihi
Files:
1 added
4 edited

Legend:

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

    r41421 r41432  
    7575$(SRC)/imsmooth.generic.$(ARCH).o       \
    7676$(SRC)/imsmooth.2d.$(ARCH).o    \
     77$(SRC)/imconvolve.$(ARCH).o     \
    7778$(SRC)/integrate.$(ARCH).o      \
    7879$(SRC)/interpolate.$(ARCH).o    \
  • trunk/Ohana/src/opihi/cmd.data/init.c

    r41421 r41432  
    6464int imsmooth_generic PROTO((int, char **));
    6565int imsmooth_2d      PROTO((int, char **));
     66int imconvolve       PROTO((int, char **));
    6667int integrate        PROTO((int, char **));
    6768int interpolate      PROTO((int, char **));
     
    264265  {1, "imsmooth.generic", imsmooth_generic, "circular non-gaussian smoothing"},
    265266  {1, "imsmooth.2d",  imsmooth_2d,      "circular non-gaussian smoothing"},
     267  {1, "imconvolve",   imconvolve,       "full 2D real-space convolution"},
    266268  {1, "imstats",      imstats,          "statistics on a portion of an image"},
    267269  {1, "integrate",    integrate,        "integrate a vector"},
  • trunk/Ohana/src/opihi/cmd.data/read_vectors.c

    r41363 r41432  
    711711      if (!gfits_get_bintable_column_raw (outheader, outtable, argv[i], &data, IsCompressed)) ESCAPE ("error reading data from specified field\n");
    712712    } else {
    713       if (!gfits_get_table_column_type (outheader, argv[i], type)) ESCAPE ("requested field not found\n");
     713      if (!gfits_get_table_column_type (outheader, argv[i], type, &Nval)) ESCAPE ("requested field not found\n");
    714714      if (!gfits_get_table_column (outheader, outtable, argv[i], &data)) ESCAPE ("error reading data from specified field\n");
    715715    }
  • trunk/Ohana/src/opihi/lib.data/starfuncs.c

    r41341 r41432  
    7373  x = x / I;
    7474  y = y / I;
    75   FWHMx = 2.355*sqrt (fabs(x2 / I - x*x));
    76   FWHMy = 2.355*sqrt (fabs(y2 / I - y*y));
     75  double Mxx = x2 / I - x*x;
     76  double Myy = y2 / I - y*y;
     77  FWHMx = 2.355*sqrt (fabs(Mxx));
     78  FWHMy = 2.355*sqrt (fabs(Myy));
    7779
    7880  // fprintf (stderr, "Mxx, Myy: %f, %f\n", x2/I - x*x, y2/I - y*y);
     
    8789  set_variable ("SXg", FWHMx);
    8890  set_variable ("SYg", FWHMy);
     91  set_variable ("MXXg", Mxx);
     92  set_variable ("MYYg", Myy);
    8993  set_variable ("SXYg", Sxy);
    9094  set_variable ("Sg", sky);
Note: See TracChangeset for help on using the changeset viewer.