- Timestamp:
- Nov 10, 2020, 1:25:05 PM (6 years ago)
- Location:
- trunk/Ohana/src/opihi
- Files:
-
- 1 added
- 4 edited
-
cmd.data/Makefile (modified) (1 diff)
-
cmd.data/imconvolve.c (added)
-
cmd.data/init.c (modified) (2 diffs)
-
cmd.data/read_vectors.c (modified) (1 diff)
-
lib.data/starfuncs.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.data/Makefile
r41421 r41432 75 75 $(SRC)/imsmooth.generic.$(ARCH).o \ 76 76 $(SRC)/imsmooth.2d.$(ARCH).o \ 77 $(SRC)/imconvolve.$(ARCH).o \ 77 78 $(SRC)/integrate.$(ARCH).o \ 78 79 $(SRC)/interpolate.$(ARCH).o \ -
trunk/Ohana/src/opihi/cmd.data/init.c
r41421 r41432 64 64 int imsmooth_generic PROTO((int, char **)); 65 65 int imsmooth_2d PROTO((int, char **)); 66 int imconvolve PROTO((int, char **)); 66 67 int integrate PROTO((int, char **)); 67 68 int interpolate PROTO((int, char **)); … … 264 265 {1, "imsmooth.generic", imsmooth_generic, "circular non-gaussian smoothing"}, 265 266 {1, "imsmooth.2d", imsmooth_2d, "circular non-gaussian smoothing"}, 267 {1, "imconvolve", imconvolve, "full 2D real-space convolution"}, 266 268 {1, "imstats", imstats, "statistics on a portion of an image"}, 267 269 {1, "integrate", integrate, "integrate a vector"}, -
trunk/Ohana/src/opihi/cmd.data/read_vectors.c
r41363 r41432 711 711 if (!gfits_get_bintable_column_raw (outheader, outtable, argv[i], &data, IsCompressed)) ESCAPE ("error reading data from specified field\n"); 712 712 } 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"); 714 714 if (!gfits_get_table_column (outheader, outtable, argv[i], &data)) ESCAPE ("error reading data from specified field\n"); 715 715 } -
trunk/Ohana/src/opihi/lib.data/starfuncs.c
r41341 r41432 73 73 x = x / I; 74 74 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)); 77 79 78 80 // fprintf (stderr, "Mxx, Myy: %f, %f\n", x2/I - x*x, y2/I - y*y); … … 87 89 set_variable ("SXg", FWHMx); 88 90 set_variable ("SYg", FWHMy); 91 set_variable ("MXXg", Mxx); 92 set_variable ("MYYg", Myy); 89 93 set_variable ("SXYg", Sxy); 90 94 set_variable ("Sg", sky);
Note:
See TracChangeset
for help on using the changeset viewer.
