Commit a76048fd authored by Gonzalez, Miguel's avatar Gonzalez, Miguel
Browse files

Corrected error in binning routine in order to take into account correctly the selected time range

parent 3389756d
......@@ -1008,29 +1008,34 @@ pro do_bin
1: begin
delta_t = EV_struct.tcycle * EV_struct.clock / EV_struct.NSLICE
ticks = long64(indgen(EV_struct.NSLICE)*delta_t)
ticks = tmin + long64(indgen(EV_struct.NSLICE)*delta_t)
ticks_end = ticks + long64(EV_struct.tslice * EV_struct.clock)
end
2: begin
delta_t = alog10(EV_struct.tcycle) / EV_struct.NSLICE
ticks = 10^(findgen(EV_struct.NSLICE)*delta_t)
ticks = long64(ticks * EV_struct.clock)
ticks = tmin + long64(ticks * EV_struct.clock)
ticks_end = lon64arr(n_elements(ticks))
ticks_end[0:-2] = ticks[1:-1]
ticks[0] = 0
ticks[0] = tmin
ticks_end[-1] = tmax
stop
end
3: begin
delta_t = alog10(EV_struct.tcycle) / EV_struct.NSLICE
ticks_end = 10^(findgen(EV_struct.NSLICE)*delta_t)
ticks_end = long64(ticks_end * EV_struct.clock)
ticks = lon64arr(n_elements(ticks))
ticks[0:-2] = ticks_end[1:-1]
ticks[-1] = tmax
ticks = tmax - reverse(ticks)
ticks_end = tmax - reverse(ticks_end)
ticks = 10^(findgen(EV_struct.NSLICE)*delta_t)
ticks = tmin + long64(ticks * EV_struct.clock)
ticks_end = lon64arr(n_elements(ticks))
ticks_end[0:-2] = ticks[1:-1]
ticks[0] = tmin
ticks_end[-1] = tmax
lapses = ticks_end - ticks
ticks[0] = tmin
for i = 1, n_elements(ticks)-1 do ticks[i] = ticks[i-1] + lapses[n_elements(lapses)-i]
ticks_end[0:-2] = ticks[1:-1]
ticks_end[-1] = tmax
end
4: begin
......
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