Changeset 39457 for trunk/Ohana/src/opihi/cmd.astro/flux.c
- Timestamp:
- Mar 11, 2016, 10:23:42 PM (10 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/opihi/cmd.astro/flux.c (modified) (3 diffs)
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);
Note:
See TracChangeset
for help on using the changeset viewer.
