Skip to content

Commit

Permalink
Merge branch 'master' into bre_update
Browse files Browse the repository at this point in the history
  • Loading branch information
SpheMakh authored Apr 26, 2023
2 parents 7546893 + 65911c1 commit e3f557f
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 7 deletions.
2 changes: 1 addition & 1 deletion stimela/cargo/base/wsclean/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RUN docker-apt-install cmake \
liblog4cplus-dev \
libhdf5-dev \
casacore-dev
RUN git clone --depth 1 -b v3.1 https://gitlab.com/aroffringa/wsclean.git wscleandir
RUN git clone --depth 1 -b v3.3 https://gitlab.com/aroffringa/wsclean.git wscleandir
RUN mkdir wscleandir/build
RUN cd wscleandir/build && \
cmake .. -DPORTABLE=Yes -DCMAKE_BUILD_TYPE=Release && \
Expand Down
29 changes: 25 additions & 4 deletions stimela/cargo/cab/wsclean/parameters.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"task": "wsclean",
"base": "stimela/wsclean",
"tag": ["1.6.0-1", "1.2.3", "1.6.3", "1.7.3", "1.7.4"],
"tag": ["1.6.0-1", "1.2.3", "1.6.3", "1.7.3", "1.7.4", "1.7.7"],
"description": "WSClean imaging software",
"version" : ["2.6", "2.8", "2.9", "3.0.1", "3.1"],
"version" : ["2.6", "2.8", "2.9", "3.0.1", "3.1", "3.3"],
"prefix": "-",
"binary": "wsclean",
"junk" : [],
Expand Down Expand Up @@ -42,7 +42,8 @@
"info": "Like 'mem', but this specifies a fixed amount of memory in gigabytes.",
"dtype": "float",
"default": null,
"name": "absmem"
"name": "absmem",
"mapping": "abs-mem"
},
{
"info": "Increase verbosity of output",
Expand Down Expand Up @@ -115,7 +116,7 @@
"info": "In spectral mode, calculate the weights as if the image was made using MFS. This makes sure that the sum of channel images equals the MFS weights. Otherwise, the channel image will become a bit more naturally weighted. This is only relevant for weighting modes that require gridding (i.e., Uniform, Briggs').",
"dtype": "bool",
"name": "nomfsweighting",
"mapping": "no-mfs-weighting"
"mapping": "no-mf-weighting"
},
{
"info": "Filter the weights and set high weights to the local mean. The level parameter specifies the filter level; any value larger than level*localmean will be set to level*localmean.",
Expand Down Expand Up @@ -632,6 +633,26 @@
"dtype": "int",
"default": null,
"name": "pb-grid-size"
},
{
"info": "Restore the model image onto the residual image and save it in output image. By default, the beam parameters are read from the residual image. If this parameter is given, wsclean will do the restoring and then exit: no cleaning is performed.",
"dtype": "list:file",
"name": "restore",
"default": null,
"io": "output"
},
{
"info": "Restore a source list onto the residual image and save it in output image. Except for the model input format, this parameter behaves equal to -restore.",
"dtype": "list:file",
"name": "restore-list",
"default": null,
"io": "output"
},
{
"info": "Shift the phase centre to the given location. The shift is along the tangential plane.",
"dtype": "list:str",
"name": "shift",
"default": null
}
]
}
4 changes: 2 additions & 2 deletions stimela/cargo/cab/wsclean/src/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@
if isinstance(value, (int, float)):
value = '{0}asec'.format(value)

elif name in 'size trim nwlayers-for-size beam-shape channel-range interval'.split():
elif name in 'size trim nwlayers-for-size beam-shape channel-range interval restore restore-list shift'.split():
if isinstance(value, int):
value = '{0} {0}'.format(value)
elif hasattr(value, '__iter__'):
if len(value) == 1:
value.append(value[0])
value = ' '.join(map(str, value))

elif name in 'spws multiscale-scales pol'.split():
if hasattr(value, '__iter__'):
value = ','.join(map(str, value))
Expand Down

0 comments on commit e3f557f

Please sign in to comment.