Changeset 36675 for branches/eam_branches/ipp-20140402/Ohana
- Timestamp:
- Apr 17, 2014, 3:05:08 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-20140402/Ohana/src/opihi
- Files:
-
- 5 added
- 8 edited
-
cmd.astro/gauss.c (modified) (3 diffs)
-
cmd.astro/star.c (modified) (2 diffs)
-
cmd.data/Makefile (modified) (2 diffs)
-
cmd.data/impeaks.c (added)
-
cmd.data/init.c (modified) (4 diffs)
-
cmd.data/medimage.c (added)
-
cmd.data/medimage_commands.c (added)
-
cmd.data/test/medimage.sh (added)
-
include/data.h (modified) (4 diffs)
-
lib.data/Makefile (modified) (1 diff)
-
lib.data/MedImageOps.c (added)
-
lib.data/starfuncs.c (modified) (2 diffs)
-
lib.shell/convert_to_RPN.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140402/Ohana/src/opihi/cmd.astro/gauss.c
r34088 r36675 10 10 Buffer *buf; 11 11 KapaImageData data; 12 int VERBOSE; 13 14 VERBOSE = TRUE; 15 if ((N = get_argument (argc, argv, "-q"))) { 16 VERBOSE = FALSE; 17 remove_argument (N, &argc, argv); 18 } 19 if ((N = get_argument (argc, argv, "-quiet"))) { 20 VERBOSE = FALSE; 21 remove_argument (N, &argc, argv); 22 } 12 23 13 24 name = NULL; … … 58 69 KiiCursorRead (kapa, &X, &Y, &ZP, &RA, &DEC, key); 59 70 if (!strcasecmp (key, "Q")) break; 60 get_aperture_stats (&buf[0].matrix, (int)(X+0.5), (int)(Y+0.5), Npix, Nborder, max );71 get_aperture_stats (&buf[0].matrix, (int)(X+0.5), (int)(Y+0.5), Npix, Nborder, max, VERBOSE); 61 72 } 62 73 KiiCursorOff (kapa); … … 64 75 } 65 76 77 -
branches/eam_branches/ipp-20140402/Ohana/src/opihi/cmd.astro/star.c
r34088 r36675 6 6 double max; 7 7 Buffer *buf; 8 int VERBOSE; 9 10 VERBOSE = TRUE; 11 if ((N = get_argument (argc, argv, "-q"))) { 12 VERBOSE = FALSE; 13 remove_argument (N, &argc, argv); 14 } 15 if ((N = get_argument (argc, argv, "-quiet"))) { 16 VERBOSE = FALSE; 17 remove_argument (N, &argc, argv); 18 } 8 19 9 20 Nborder = 3; … … 36 47 } 37 48 38 get_aperture_stats (&buf[0].matrix, x, y, dx, Nborder, max );49 get_aperture_stats (&buf[0].matrix, x, y, dx, Nborder, max, VERBOSE); 39 50 40 51 return (TRUE); -
branches/eam_branches/ipp-20140402/Ohana/src/opihi/cmd.data/Makefile
r36489 r36675 64 64 $(SRC)/imcut.$(ARCH).o \ 65 65 $(SRC)/imhist.$(ARCH).o \ 66 $(SRC)/impeaks.$(ARCH).o \ 66 67 $(SRC)/imsmooth.$(ARCH).o \ 67 68 $(SRC)/imsmooth.generic.$(ARCH).o \ … … 88 89 $(SRC)/mget.$(ARCH).o \ 89 90 $(SRC)/minterpolate.$(ARCH).o \ 91 $(SRC)/medimage.$(ARCH).o \ 92 $(SRC)/medimage_commands.$(ARCH).o \ 90 93 $(SRC)/mset.$(ARCH).o \ 91 94 $(SRC)/peak.$(ARCH).o \ -
branches/eam_branches/ipp-20140402/Ohana/src/opihi/cmd.data/init.c
r36489 r36675 53 53 int imcut PROTO((int, char **)); 54 54 int imhist PROTO((int, char **)); 55 int impeaks PROTO((int, char **)); 55 56 int imsmooth PROTO((int, char **)); 56 57 int imsmooth_generic PROTO((int, char **)); … … 78 79 int mget PROTO((int, char **)); 79 80 int minterp PROTO((int, char **)); 81 int medimage_command PROTO((int, char **)); 80 82 int mset PROTO((int, char **)); 81 83 int peak PROTO((int, char **)); … … 211 213 {1, "imcut", imcut, "linear image cut between arbitrary coords"}, 212 214 {1, "imhistogram", imhist, "histogram of an image region"}, 215 {1, "impeaks", impeaks, "find peaks in an image (return vectors)"}, 213 216 {1, "imsmooth", imsmooth, "circular gaussian smoothing"}, 214 217 {1, "imsmooth.generic", imsmooth_generic, "circular non-gaussian smoothing"}, … … 233 236 {1, "minterp", minterp, "interpolate image pixels"}, 234 237 {1, "iminterp", minterp, "interpolate image pixels"}, 238 {1, "medimage", medimage_command, "median image manipulation"}, 235 239 {1, "matrix", matrix, "matrix math operations"}, 236 240 {1, "match2d", match2d, "match 2 pairs of X,Y vectors and return matched indexes"}, -
branches/eam_branches/ipp-20140402/Ohana/src/opihi/include/data.h
r34584 r36675 33 33 char **pageIDs; 34 34 } Book; 35 36 // the interpolating spline has valu 37 typedef struct { 38 int Nknots; 39 opihi_flt *xk; 40 opihi_flt *yk; 41 opihi_flt *y2; 42 char *name; 43 } Spline; 44 45 typedef struct { 46 char *name; 47 int Ninput; 48 int Nx; 49 int Ny; 50 float **buffers; 51 } MedImageType; 35 52 36 53 void InitData (void); … … 144 161 145 162 /* starfuncs.c */ 146 double get_aperture_stats (Matrix *matrix, int X, int Y, int Npix, int Nborder, double max );163 double get_aperture_stats (Matrix *matrix, int X, int Y, int Npix, int Nborder, double max, int VERBOSE); 147 164 int set_rough_radii (double Ra, double Ri, double Ro); 148 165 int get_rough_star (float *data, int Nx, int Ny, int x, int y, opihi_flt *xc, opihi_flt *yc, opihi_flt *sx, opihi_flt *sy, opihi_flt *sxy, opihi_flt *zs, opihi_flt *zp, opihi_flt *sk); … … 170 187 void FreeQueues (void); 171 188 void FreeBooks (void); 172 173 // the interpolating spline has valu174 typedef struct {175 int Nknots;176 opihi_flt *xk;177 opihi_flt *yk;178 opihi_flt *y2;179 char *name;180 } Spline;181 189 182 190 /* in SplineOps.c */ … … 207 215 double hermitian_10(double x); 208 216 217 /* in MedImageOps.c */ 218 void InitMedImages (); 219 void FreeMedImages (); 220 void FreeMedImage (MedImageType *medimage); 221 MedImageType *FindMedImage (char *name); 222 MedImageType *CreateMedImage (char *name, int Nx, int Ny); 223 int DeleteMedImage (MedImageType *medimage); 224 void ListMedImages (); 225 209 226 # endif -
branches/eam_branches/ipp-20140402/Ohana/src/opihi/lib.data/Makefile
r34584 r36675 24 24 $(SDIR)/spline.$(ARCH).o \ 25 25 $(SDIR)/SplineOps.$(ARCH).o \ 26 $(SDIR)/MedImageOps.$(ARCH).o \ 26 27 $(SDIR)/mrqmin.$(ARCH).o \ 27 28 $(SDIR)/mrq2dmin.$(ARCH).o \ -
branches/eam_branches/ipp-20140402/Ohana/src/opihi/lib.data/starfuncs.c
r34088 r36675 1 1 # include "data.h" 2 2 3 double get_aperture_stats (Matrix *matrix, int X, int Y, int Npix, int Nborder, double max ) {3 double get_aperture_stats (Matrix *matrix, int X, int Y, int Npix, int Nborder, double max, int VERBOSE) { 4 4 5 5 double *ring; … … 95 95 set_int_variable ("Npts", Npts); 96 96 97 gprint (GP_LOG, "%f %f %f %f %f %f %f %f\n", x, y, FWHMx, FWHMy, sky, I, mag, dmag);97 if (VERBOSE) gprint (GP_LOG, "%f %f %f %f %f %f %f %f\n", x, y, FWHMx, FWHMy, sky, I, mag, dmag); 98 98 99 99 return (mag); -
branches/eam_branches/ipp-20140402/Ohana/src/opihi/lib.shell/convert_to_RPN.c
r36489 r36675 70 70 if (!strcmp (argv[i], "^")) { type = ST_POWER; goto gotit; } 71 71 72 if (!strcmp (argv[i], "max")) { type = ST_BINARY; strcpy (argv[i], "U"); goto gotit; } 73 if (!strcmp (argv[i], "min")) { type = ST_BINARY; strcpy (argv[i], "D"); goto gotit; } 72 74 if (!strcmp (argv[i], "atan2")) { type = ST_BINARY; goto gotit; } 73 75 if (!strcmp (argv[i], ",")) { type = ST_COMMA; goto gotit; }
Note:
See TracChangeset
for help on using the changeset viewer.
