Skip to content
Snippets Groups Projects
Commit 1428a3d4 authored by Wouter Klijn's avatar Wouter Klijn
Browse files

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
...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment