Changeset 39457 for trunk/Ohana/src/opihi/cmd.astro
- Timestamp:
- Mar 11, 2016, 10:23:42 PM (10 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 17 edited
-
. (modified) (1 prop)
-
src/opihi/cmd.astro/flux.c (modified) (3 diffs)
-
src/opihi/cmd.astro/imfit-fgauss.c (modified) (1 diff)
-
src/opihi/cmd.astro/imfit-pgauss-psf.c (modified) (1 diff)
-
src/opihi/cmd.astro/imfit-pgauss.c (modified) (1 diff)
-
src/opihi/cmd.astro/imfit-qfgauss.c (modified) (1 diff)
-
src/opihi/cmd.astro/imfit-qgauss-psf.c (modified) (1 diff)
-
src/opihi/cmd.astro/imfit-qgauss.c (modified) (1 diff)
-
src/opihi/cmd.astro/imfit-qrgauss.c (modified) (1 diff)
-
src/opihi/cmd.astro/imfit-rgauss.c (modified) (1 diff)
-
src/opihi/cmd.astro/imfit-serbulge.c (modified) (1 diff)
-
src/opihi/cmd.astro/imfit-sersic.c (modified) (1 diff)
-
src/opihi/cmd.astro/imfit-sgauss-psf.c (modified) (1 diff)
-
src/opihi/cmd.astro/imfit-sgauss.c (modified) (1 diff)
-
src/opihi/cmd.astro/imfit-tgauss.c (modified) (1 diff)
-
src/opihi/cmd.astro/imfit-vgauss.c (modified) (1 diff)
-
src/opihi/cmd.astro/spexseq.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
-
Property svn:mergeinfo
set to
/branches/eam_branches/ohana.20160226 merged eligible
-
Property svn:mergeinfo
set to
-
trunk/Ohana/src/opihi/cmd.astro/flux.c
r27611 r39457 1 1 # include "astro.h" 2 # include <signal.h> 2 3 3 4 int flux (int argc, char **argv) { 4 5 5 6 int i, j, k, xmin, ymin, xmax, ymax; 6 void *oldsignal;7 7 double ax, ay, s, S, flux; 8 8 double bx[5], by[5], x[5], y[5], bb[5]; … … 55 55 we have to add up the angles for concave contours */ 56 56 flux = 0; 57 oldsignal = signal (SIGINT, handle_interrupt); 58 interrupt = FALSE;57 58 struct sigaction *old_sigaction = SetInterrupt(); 59 59 for (j = ymin; (j < ymax) && !interrupt; j++) { 60 60 V = (float *)(buf[0].matrix.buffer) + j*buf[0].matrix.Naxis[0] + xmin; … … 72 72 } 73 73 } 74 signal (SIGINT, oldsignal);74 ClearInterrupt (old_sigaction); 75 75 76 76 gprint (GP_LOG, "flux: %f\n", flux); -
trunk/Ohana/src/opihi/cmd.astro/imfit-fgauss.c
r20936 r39457 41 41 /* real 2D gaussian -- x, y, sx, sy, sxy, I, sky */ 42 42 opihi_flt fgaussTD (opihi_flt x, opihi_flt y, opihi_flt *par, int Npar, opihi_flt *dpar) { 43 OHANA_UNUSED_PARAM(Npar); 43 44 44 45 opihi_flt X, Y, px, py; -
trunk/Ohana/src/opihi/cmd.astro/imfit-pgauss-psf.c
r20936 r39457 39 39 /* pseudo 2D gaussian -- x, y, (sx), (sy), (sxy), I, sky */ 40 40 opihi_flt pgauss_psfTD (opihi_flt x, opihi_flt y, opihi_flt *par, int Npar, opihi_flt *dpar) { 41 OHANA_UNUSED_PARAM(Npar); 41 42 42 43 opihi_flt X, Y, px, py; -
trunk/Ohana/src/opihi/cmd.astro/imfit-pgauss.c
r20936 r39457 41 41 /* pseudo 2D gaussian -- x, y, sx, sy, sxy, I, sky */ 42 42 opihi_flt pgaussTD (opihi_flt x, opihi_flt y, opihi_flt *par, int Npar, opihi_flt *dpar) { 43 OHANA_UNUSED_PARAM(Npar); 43 44 44 45 opihi_flt X, Y, px, py; -
trunk/Ohana/src/opihi/cmd.astro/imfit-qfgauss.c
r20936 r39457 45 45 /* one component, two slopes: (1 + z^M + z^N)^(-1) -- x, y, sx, sy, sxy, I, sky */ 46 46 opihi_flt qfgaussTD (opihi_flt x, opihi_flt y, opihi_flt *par, int Npar, opihi_flt *dpar) { 47 OHANA_UNUSED_PARAM(Npar); 47 48 48 49 opihi_flt X, Y, px, py; -
trunk/Ohana/src/opihi/cmd.astro/imfit-qgauss-psf.c
r20936 r39457 42 42 /* one component, two slopes: (1 + z^M + z^N)^(-1) -- x, y, sx, sy, sxy, I, sky, sr */ 43 43 opihi_flt qgauss_psfTD (opihi_flt x, opihi_flt y, opihi_flt *par, int Npar, opihi_flt *dpar) { 44 OHANA_UNUSED_PARAM(Npar); 44 45 45 46 opihi_flt X, Y, px, py; -
trunk/Ohana/src/opihi/cmd.astro/imfit-qgauss.c
r20936 r39457 45 45 /* one component, two slopes: (1 + z^M + z^N)^(-1) -- x, y, sx, sy, sxy, I, sky, sr */ 46 46 opihi_flt qgaussTD (opihi_flt x, opihi_flt y, opihi_flt *par, int Npar, opihi_flt *dpar) { 47 OHANA_UNUSED_PARAM(Npar); 47 48 48 49 opihi_flt X, Y, px, py; -
trunk/Ohana/src/opihi/cmd.astro/imfit-qrgauss.c
r20936 r39457 45 45 46 46 opihi_flt qrgaussTD (opihi_flt x, opihi_flt y, opihi_flt *par, int Npar, opihi_flt *dpar) { 47 OHANA_UNUSED_PARAM(Npar); 47 48 48 49 opihi_flt X, Y, px, py; -
trunk/Ohana/src/opihi/cmd.astro/imfit-rgauss.c
r20936 r39457 37 37 /* two components: (1 + z_1 + 0.5*z_1^2 + z_2^N)^(-1) -- x, y, sx1, sy1, sxy1, I, sky, sx2, sy2, sxy2 */ 38 38 opihi_flt rgaussTD (opihi_flt x, opihi_flt y, opihi_flt *par, int Npar, opihi_flt *dpar) { 39 OHANA_UNUSED_PARAM(Npar); 39 40 40 41 opihi_flt X, Y, px1, py1, px2, py2; -
trunk/Ohana/src/opihi/cmd.astro/imfit-serbulge.c
r20936 r39457 42 42 /* exp (-b (r/r_e)^(1/n)) + pgauss (r) */ 43 43 opihi_flt serbulgeTD (opihi_flt x, opihi_flt y, opihi_flt *par, int Npar, opihi_flt *dpar) { 44 OHANA_UNUSED_PARAM(Npar); 44 45 45 46 opihi_flt X, Y, px1, px2, py1, py2; -
trunk/Ohana/src/opihi/cmd.astro/imfit-sersic.c
r20936 r39457 34 34 /* exp (-b (r/r_e)^(1/n)) */ 35 35 opihi_flt sersicTD (opihi_flt x, opihi_flt y, opihi_flt *par, int Npar, opihi_flt *dpar) { 36 OHANA_UNUSED_PARAM(Npar); 36 37 37 38 opihi_flt X, Y, px, py; -
trunk/Ohana/src/opihi/cmd.astro/imfit-sgauss-psf.c
r20936 r39457 44 44 /* two components: (1 + z_1 + z_2^N)^(-1) -- x, y, sx1, sy1, sxy1, I, sky, sx2, sy2, sxy2 */ 45 45 opihi_flt sgauss_psfTD (opihi_flt x, opihi_flt y, opihi_flt *par, int Npar, opihi_flt *dpar) { 46 OHANA_UNUSED_PARAM(Npar); 46 47 47 48 opihi_flt X, Y, px1, py1, px2, py2; -
trunk/Ohana/src/opihi/cmd.astro/imfit-sgauss.c
r20936 r39457 53 53 /* two components: (1 + z_1 + z_2^N)^(-1) -- x, y, sx1, sy1, sxy1, I, sky, sx2, sy2, sxy2 */ 54 54 opihi_flt sgaussTD (opihi_flt x, opihi_flt y, opihi_flt *par, int Npar, opihi_flt *dpar) { 55 OHANA_UNUSED_PARAM(Npar); 55 56 56 57 opihi_flt X, Y, px1, py1, px2, py2; -
trunk/Ohana/src/opihi/cmd.astro/imfit-tgauss.c
r20936 r39457 32 32 /* two components: (1 + z_1^M + z_2^N)^(-1) -- x, y, sx1, sy1, sxy1, I, sky, sx2, sy2, sxy2 */ 33 33 opihi_flt tgaussTD (opihi_flt x, opihi_flt y, opihi_flt *par, int Npar, opihi_flt *dpar) { 34 OHANA_UNUSED_PARAM(Npar); 34 35 35 36 opihi_flt X, Y, px1, py1, px2, py2; -
trunk/Ohana/src/opihi/cmd.astro/imfit-vgauss.c
r20936 r39457 27 27 /* pseudo 2D gaussian with opihi_flting 2nd and 3rd order terms -- x, y, sx, sy, sxy, I, sky, f1, f2 */ 28 28 opihi_flt vgaussTD (opihi_flt x, opihi_flt y, opihi_flt *par, int Npar, opihi_flt *dpar) { 29 OHANA_UNUSED_PARAM(Npar); 29 30 30 31 opihi_flt X, Y, px, py; -
trunk/Ohana/src/opihi/cmd.astro/spexseq.c
r33662 r39457 43 43 44 44 void get_sequence (Object *object, int Nobject, int idx1, float Dmax, float f1, float f2, int pin1, int pin2) { 45 OHANA_UNUSED_PARAM(pin1); 46 OHANA_UNUSED_PARAM(pin2); 45 47 46 48 int i, j, N;
Note:
See TracChangeset
for help on using the changeset viewer.
