Changeset 21064 for trunk/Ohana/src/opihi/cmd.data/rebin.c
- Timestamp:
- Dec 30, 2008, 10:17:54 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.data/rebin.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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.
