Commit f4bf9be1 authored by Gonzalez, Miguel's avatar Gonzalez, Miguel

Repair silly error due to an extra sort that is not needed and was mixing...

Repair silly error due to an extra sort that is not needed and was mixing wrongly the information when the scanning variable was not in increasng order
parent 5d64d110
......@@ -69,11 +69,7 @@ function salsa_combine_ws, wks_list
; check Z values and sum together equivalent points
zval = pstruct.z
if typename(zval) eq 'FLOAT' then begin
zval = long64(zval*1000)
zval = zval[uniq(zval, sort(zval))]
endif
if typename(zval) eq 'FLOAT' then zval = long64(zval*1000)
for j = 0, n_elements(zval)-1 do begin
idx = where(zcomp eq zval[j])
w_out[*,*,idx] += wtmp[*,*,j]
......@@ -89,6 +85,7 @@ function salsa_combine_ws, wks_list
; 1: monitor1
; 2: Total cts
; 19: monitor 2
additive_params = [0, 1, 2, 19]
for i = 0, n_elements(pv_out[*,0]) - 1 do begin
test = where(additive_params eq i, count)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment