Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review 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
RadioObservatory
LOFAR
Commits
1428a3d4
Commit
1428a3d4
authored
11 years ago
by
Wouter Klijn
Browse files
Options
Downloads
Patches
Plain Diff
Task #4902: Merge with trunk failed: not all changes were ported.
parent
05e1fbf3
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
CEP/Pipeline/recipes/sip/nodes/imager_awimager.py
+10
-10
10 additions, 10 deletions
CEP/Pipeline/recipes/sip/nodes/imager_awimager.py
with
10 additions
and
10 deletions
CEP/Pipeline/recipes/sip/nodes/imager_awimager.py
+
10
−
10
View file @
1428a3d4
...
@@ -250,22 +250,22 @@ class imager_awimager(LOFARnodeTCP):
...
@@ -250,22 +250,22 @@ class imager_awimager(LOFARnodeTCP):
# calculate a sizeconverter value (to be applied to the cellsize)
# calculate a sizeconverter value (to be applied to the cellsize)
if
npix
<
256
:
if
npix
<
256
:
self
.
logger
.
warn
(
"
Using a image size smaller then 256x256:
"
self
.
logger
.
warn
(
"
Using a image size smaller then 256x256:
"
"
This leads to problematic imaging in some instances!!
"
)
"
This leads to problematic imaging in some instances!!
"
)
cell_size_formatted
=
str
(
int
(
round
(
cell_size
)))
+
'
arcsec
'
self
.
logger
.
info
(
"
Using the following dynamic generated awimager parameters:
"
"
cell_size: {0}, npix: {1},
"
.
format
(
cell_size_formatted
,
npix
)
+
"
w_max: {0}, w_proj_planes: {1}
"
.
format
(
w_max
,
w_proj_planes
))
# If we are not autocalculating based on ms or fov, use the npix
# If we are not autocalculating based on ms or fov, use the npix
# and cell_size specified in the parset
# and cell_size specified in the parset
# keep the wmax and w_proj_planes
# keep the wmax and w_proj_planes
if
(
not
autogenerate_parameters
and
not
specify_fov
):
if
(
not
autogenerate_parameters
and
not
specify_fov
):
npix
=
parset_object
.
getString
(
'
npix
'
)
npix
=
parset_object
.
getString
(
'
npix
'
)
cell_size
=
parset_object
.
getString
(
'
cellsize
'
)
cell_size_formatted
=
parset_object
.
getString
(
'
cellsize
'
)
else
:
cell_size_formatted
=
str
(
int
(
round
(
cell_size
)))
+
'
arcsec
'
self
.
logger
.
info
(
"
Using the following awimager parameters:
"
"
cell_size: {0}, npix: {1},
"
.
format
(
cell_size_formatted
,
npix
)
+
"
w_max: {0}, w_proj_planes: {1}
"
.
format
(
w_max
,
w_proj_planes
))
return
cell_size_formatted
,
str
(
npix
),
str
(
w_max
),
str
(
w_proj_planes
)
return
cell_size_formatted
,
str
(
npix
),
str
(
w_max
),
str
(
w_proj_planes
)
...
...
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