- Timestamp:
- Mar 1, 2016, 11:34:48 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20160226/src/opihi/cmd.astro/flux.c
r27611 r39419 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.
