Skip to content

Commit 65911c1

Browse files
authored
Merge pull request #775 from ratt-ru/wsclean_update
New wsclean upstream release and additional params
2 parents ad87f27 + 9824c50 commit 65911c1

3 files changed

Lines changed: 28 additions & 7 deletions

File tree

stimela/cargo/base/wsclean/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ RUN docker-apt-install cmake \
2525
liblog4cplus-dev \
2626
libhdf5-dev \
2727
casacore-dev
28-
RUN git clone --depth 1 -b v3.1 https://gitlab.com/aroffringa/wsclean.git wscleandir
28+
RUN git clone --depth 1 -b v3.3 https://gitlab.com/aroffringa/wsclean.git wscleandir
2929
RUN mkdir wscleandir/build
3030
RUN cd wscleandir/build && \
3131
cmake .. -DPORTABLE=Yes -DCMAKE_BUILD_TYPE=Release && \

stimela/cargo/cab/wsclean/parameters.json

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"task": "wsclean",
33
"base": "stimela/wsclean",
4-
"tag": ["1.6.0-1", "1.2.3", "1.6.3", "1.7.3", "1.7.4"],
4+
"tag": ["1.6.0-1", "1.2.3", "1.6.3", "1.7.3", "1.7.4", "1.7.7"],
55
"description": "WSClean imaging software",
6-
"version" : ["2.6", "2.8", "2.9", "3.0.1", "3.1"],
6+
"version" : ["2.6", "2.8", "2.9", "3.0.1", "3.1", "3.3"],
77
"prefix": "-",
88
"binary": "wsclean",
99
"junk" : [],
@@ -42,7 +42,8 @@
4242
"info": "Like 'mem', but this specifies a fixed amount of memory in gigabytes.",
4343
"dtype": "float",
4444
"default": null,
45-
"name": "absmem"
45+
"name": "absmem",
46+
"mapping": "abs-mem"
4647
},
4748
{
4849
"info": "Increase verbosity of output",
@@ -115,7 +116,7 @@
115116
"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').",
116117
"dtype": "bool",
117118
"name": "nomfsweighting",
118-
"mapping": "no-mfs-weighting"
119+
"mapping": "no-mf-weighting"
119120
},
120121
{
121122
"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.",
@@ -632,6 +633,26 @@
632633
"dtype": "int",
633634
"default": null,
634635
"name": "pb-grid-size"
636+
},
637+
{
638+
"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.",
639+
"dtype": "list:file",
640+
"name": "restore",
641+
"default": null,
642+
"io": "output"
643+
},
644+
{
645+
"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.",
646+
"dtype": "list:file",
647+
"name": "restore-list",
648+
"default": null,
649+
"io": "output"
650+
},
651+
{
652+
"info": "Shift the phase centre to the given location. The shift is along the tangential plane.",
653+
"dtype": "list:str",
654+
"name": "shift",
655+
"default": null
635656
}
636657
]
637658
}

stimela/cargo/cab/wsclean/src/run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@
3939
if isinstance(value, (int, float)):
4040
value = '{0}asec'.format(value)
4141

42-
elif name in 'size trim nwlayers-for-size beam-shape channel-range interval'.split():
42+
elif name in 'size trim nwlayers-for-size beam-shape channel-range interval restore restore-list shift'.split():
4343
if isinstance(value, int):
4444
value = '{0} {0}'.format(value)
4545
elif hasattr(value, '__iter__'):
4646
if len(value) == 1:
4747
value.append(value[0])
4848
value = ' '.join(map(str, value))
49-
49+
5050
elif name in 'spws multiscale-scales pol'.split():
5151
if hasattr(value, '__iter__'):
5252
value = ','.join(map(str, value))

0 commit comments

Comments
 (0)