Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ievgen Vovk
ctapipe_io_magic
Commits
89ba99dc
Commit
89ba99dc
authored
Feb 17, 2020
by
Moritz Huetten
Browse files
Merge branch 'dev-yusuke-truealtaz' into 'master'
Modifications in storing both true_alt and true_az See merge request
!5
parents
ae46ac54
ac7e3293
Pipeline
#76759
passed with stage
in 9 minutes and 11 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
ctapipe_io_magic/__init__.py
View file @
89ba99dc
...
...
@@ -302,8 +302,8 @@ class MAGICEventSource(EventSource):
data
.
trig
.
gps_time
=
Time
(
time_tmp
,
format
=
'unix'
,
scale
=
'utc'
,
precision
=
9
)
else
:
data
.
mc
.
energy
=
event_data
[
'true_energy'
]
*
u
.
GeV
data
.
mc
.
alt
=
(
90
-
event_data
[
'true_zd'
])
*
u
.
deg
data
.
mc
.
az
=
event_data
[
'true_az'
]
*
u
.
deg
data
.
mc
.
alt
=
(
np
.
pi
/
2
-
event_data
[
'true_zd'
])
*
u
.
rad
data
.
mc
.
az
=
-
1
*
(
event_data
[
'true_az'
]
-
np
.
deg2rad
(
180
-
7
))
*
u
.
rad
# check meaning of 7deg transformation (I.Vovk)
data
.
mc
.
shower_primary_id
=
1
-
event_data
[
'true_shower_primary_id'
]
data
.
mc
.
h_first_int
=
event_data
[
'true_h_first_int'
]
*
u
.
cm
data
.
mc
.
core_x
=
event_data
[
'true_core_x'
]
*
u
.
cm
...
...
@@ -420,8 +420,8 @@ class MAGICEventSource(EventSource):
data
.
trig
.
gps_time
=
Time
(
time_tmp
,
format
=
'unix'
,
scale
=
'utc'
,
precision
=
9
)
else
:
data
.
mc
.
energy
=
event_data
[
'true_energy'
]
*
u
.
GeV
data
.
mc
.
alt
=
(
90
-
event_data
[
'true_zd'
])
*
u
.
deg
data
.
mc
.
az
=
event_data
[
'true_az'
]
*
u
.
deg
data
.
mc
.
alt
=
(
np
.
pi
/
2
-
event_data
[
'true_zd'
])
*
u
.
rad
data
.
mc
.
az
=
-
1
*
(
event_data
[
'true_az'
]
-
np
.
deg2rad
(
180
-
7
))
*
u
.
rad
# check meaning of 7deg transformation (I.Vovk)
data
.
mc
.
shower_primary_id
=
1
-
event_data
[
'true_shower_primary_id'
]
data
.
mc
.
h_first_int
=
event_data
[
'true_h_first_int'
]
*
u
.
cm
data
.
mc
.
core_x
=
event_data
[
'true_core_x'
]
*
u
.
cm
...
...
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