Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CCS
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marko Mecina
CCS
Commits
e3a44295
Commit
e3a44295
authored
1 year ago
by
Marko Mecina
Browse files
Options
Downloads
Patches
Plain Diff
adapt SXI FITS product generation to updated node order
parent
ebba0561
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Ccs/tools/dataprocessing/smile_raw_ce_converter.py
+14
-11
14 additions, 11 deletions
Ccs/tools/dataprocessing/smile_raw_ce_converter.py
with
14 additions
and
11 deletions
Ccs/tools/dataprocessing/smile_raw_ce_converter.py
+
14
−
11
View file @
e3a44295
...
@@ -121,25 +121,28 @@ def _mk_bin_entry(data, timestamp):
...
@@ -121,25 +121,28 @@ def _mk_bin_entry(data, timestamp):
def
_assemble_ft_frames_to_fp_view
(
arrnd
):
def
_assemble_ft_frames_to_fp_view
(
arrnd
):
# interpreting TVAC results, CCD0/2 is at the "top" and CCD1/4 at the "bottom" in the detector plane layout
# FT
# FT
# according to MSSL-IF-122 the nodes arrive in the following order: E2, F2, E4, F4
if
arrnd
.
ndim
==
3
:
if
arrnd
.
ndim
==
3
:
n00
=
arrnd
[
0
,
:
,
:
]
# CCD2 F-side (
lower lef
t in FP view)
n00
=
arrnd
[
1
,
:
:
-
1
,
::
-
1
]
# CCD2 F-side (
upper righ
t in FP view)
n01
=
arrnd
[
1
,
:
,
::
-
1
]
# CCD2 E-side (
lower righ
t in FP view)
n01
=
arrnd
[
0
,
::
-
1
,
:
]
# CCD2 E-side (
upper lef
t in FP view)
n10
=
arrnd
[
2
,
:
:
-
1
,
::
-
1
]
# CCD4 F-side (
upper righ
t in FP view)
n10
=
arrnd
[
3
,
:
,
:
]
# CCD4 F-side (
lower lef
t in FP view)
n11
=
arrnd
[
3
,
::
-
1
,
:
]
# CCD4 E-side (
upper lef
t in FP view)
n11
=
arrnd
[
2
,
:
,
::
-
1
]
# CCD4 E-side (
lower righ
t in FP view)
# ED
# ED
elif
arrnd
.
ndim
==
4
:
elif
arrnd
.
ndim
==
4
:
n00
=
arrnd
[
0
,
0
,
:,
:]
# CCD2 F-side
n00
=
arrnd
[
0
,
0
,
:,
:]
[::
-
1
,
::
-
1
]
# CCD2 F-side
n01
=
arrnd
[
0
,
1
,
:,
:][:
,
:
:
-
1
]
# CCD2 E-side
n01
=
arrnd
[
0
,
1
,
:,
:][::
-
1
,
:
]
# CCD2 E-side
n10
=
arrnd
[
1
,
0
,
:,
:]
[::
-
1
,
::
-
1
]
# CCD4 F-side
n10
=
arrnd
[
1
,
0
,
:,
:]
# CCD4 F-side
n11
=
arrnd
[
1
,
1
,
:,
:][:
:
-
1
,
:]
# CCD4 E-side
n11
=
arrnd
[
1
,
1
,
:,
:][:,
:
:
-
1
]
# CCD4 E-side
else
:
else
:
return
return
n0
=
np
.
concatenate
((
n0
0
,
n0
1
),
axis
=
1
)
# CCD2
n0
=
np
.
concatenate
((
n0
1
,
n0
0
),
axis
=
1
)
# CCD2
n1
=
np
.
concatenate
((
n1
1
,
n1
0
),
axis
=
1
)
# CCD4
n1
=
np
.
concatenate
((
n1
0
,
n1
1
),
axis
=
1
)
# CCD4
return
np
.
concatenate
((
n
0
,
n
1
),
axis
=
0
)
return
np
.
concatenate
((
n
1
,
n
0
),
axis
=
0
)
def
_mk_hdl
(
dmode
):
def
_mk_hdl
(
dmode
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment