Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
EveryBeam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ResearchAndDevelopment
EveryBeam
Commits
f01f3fcf
Commit
f01f3fcf
authored
4 years ago
by
Bas van der Tol
Browse files
Options
Downloads
Patches
Plain Diff
Minor fixes in add_beaminfo script for oskar-comparison
parent
19628f8e
No related branches found
No related tags found
1 merge request
!59
Resolve "Add stationresponse comparison for oskar"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/misc/add_beaminfo.py
+3
-4
3 additions, 4 deletions
scripts/misc/add_beaminfo.py
with
3 additions
and
4 deletions
scripts/misc/add_beaminfo.py
+
3
−
4
View file @
f01f3fcf
...
...
@@ -31,10 +31,9 @@ def fix_antenna(oskar_ms_name: str, telescope_center_itrf: np.array):
"""
Make POSITION in ::ANTENNA subtable absolute
"""
anttable
=
pt
.
table
(
f
"
{
oskar_ms_name
}
::ANTENNA
"
,
readonly
=
False
,
ack
=
False
)
if
np
.
isclose
(
norm
(
anttable
[
0
][
"
POSITION
"
]),
0
,
atol
=
1e-3
):
logging
.
info
(
"
Positions are already absolute
"
)
return
else
:
anttable
.
putcol
(
"
POSITION
"
,
anttable
.
getcol
(
"
POSITION
"
)
+
telescope_center_itrf
)
else
:
logging
.
info
(
"
Positions are already absolute
"
)
anttable
.
close
()
...
...
@@ -69,7 +68,7 @@ def add_phased_array_table(oskar_ms_name: str):
position_coldesc
[
'
name
'
]
=
'
POSITION
'
phasedarraytable
.
addcols
(
position_coldesc
)
coordinate_system_coldesc
=
pt
.
makearrcoldesc
(
"
COORDINATE_
SYSTEM
"
,
0.
,
coordinate_system_coldesc
=
pt
.
makearrcoldesc
(
"
COORDINATE_
AXES
"
,
0.
,
shape
=
[
3
,
3
],
comment
=
"
Local coordinate system
"
,
valuetype
=
'
double
'
)
phasedarraytable
.
addcols
(
coordinate_system_coldesc
)
...
...
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