Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
LAMP
Commits
a76048fd
Commit
a76048fd
authored
Dec 03, 2018
by
Gonzalez, Miguel
Browse files
Corrected error in binning routine in order to take into account correctly the selected time range
parent
3389756d
Changes
1
Hide whitespace changes
Inline
Side-by-side
lamp_mac/readers/event_file.pro
View file @
a76048fd
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment