Changeset 21064 for trunk/Ohana/src/opihi/cmd.data
- Timestamp:
- Dec 30, 2008, 10:17:54 AM (18 years ago)
- Location:
- trunk/Ohana/src/opihi/cmd.data
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.data/init.c
r17579 r21064 7 7 int book_command PROTO((int, char **)); 8 8 int center PROTO((int, char **)); 9 int parity PROTO((int, char **)); 9 10 int circstats PROTO((int, char **)); 10 11 int clear PROTO((int, char **)); … … 128 129 {1, "book", book_command, "commands to manipulate book/page/word data"}, 129 130 {1, "center", center, "center image on coords"}, 131 {1, "parity", parity, "set image parity"}, 130 132 {1, "circstats", circstats, "circular statistics"}, 131 133 {1, "clear", clear, "erase plot"}, -
trunk/Ohana/src/opihi/cmd.data/rebin.c
r7917 r21064 128 128 for (i = 0; i < nx; i++, Vout++) { 129 129 for (x = 0; x < n; x++, Vin++) { 130 if (isnan(*Vin)) continue; 131 if (isinf(*Vin)) continue; 130 132 if (Ignore && (*Vin == IgnoreValue)) continue; 131 133 *Vout += *Vin; … … 144 146 if (Normalize) { Vn = Npix + j*nx; } 145 147 for (i = 0; i < in[0].header.Naxis[0]; i++, Vin++) { 146 if ( Ignore && (*Vin == IgnoreValue)) {148 if (isnan(*Vin) || isinf(*Vin) || (Ignore && (*Vin == IgnoreValue))) { 147 149 Vout += n; 148 150 if (Normalize) Vn += n;
Note:
See TracChangeset
for help on using the changeset viewer.
