Skip to content
Snippets Groups Projects
Commit 8321eaa0 authored by AK's avatar AK
Browse files

wsclean v=3.0

parent 662c9a49
No related branches found
No related tags found
No related merge requests found
Pipeline #28645 failed
...@@ -117,6 +117,9 @@ RUN git clone --depth 1 --branch ${DP3_VERSION} \ ...@@ -117,6 +117,9 @@ RUN git clone --depth 1 --branch ${DP3_VERSION} \
ARG WSCLEAN_VERSION=master ARG WSCLEAN_VERSION=master
RUN git clone --depth 1 --branch ${WSCLEAN_VERSION} \ RUN git clone --depth 1 --branch ${WSCLEAN_VERSION} \
https://gitlab.com/aroffringa/wsclean.git && \ https://gitlab.com/aroffringa/wsclean.git && \
cd wsclean && \
git reset --hard v3.0 && \
cd .. && \
mkdir wsclean/build && \ mkdir wsclean/build && \
cd wsclean/build && \ cd wsclean/build && \
cmake .. -DPORTABLE=${PORTABLE} && \ cmake .. -DPORTABLE=${PORTABLE} && \
......
...@@ -217,15 +217,15 @@ def makeCombMask(ima1='noiseMap.fits', ima2='noiseMapLow.fits', ...@@ -217,15 +217,15 @@ def makeCombMask(ima1='noiseMap.fits', ima2='noiseMapLow.fits',
return return
def get_image_ra_dec_min_max(msin, ): def get_image_ra_dec_min_max(msin):
""" """
Determine image center coords, min and max values for msin Determine image center coords, min and max values for msin
""" """
cmd = f'wsclean -niter 0 -size 3072 3072 -scale 3arcsec -use-wgridder {msin}' cmd = f'wsclean -niter 0 -size 3072 3072 -scale 3arcsec -use-wgridder {msin}'
logging.debug('Running command: %s', cmd)
subprocess.call(cmd, shell=True) subprocess.call(cmd, shell=True)
data = fits.getdata('wsclean-image.fits') data = fits.getdata('wsclean-image.fits')
header = fits.getheader('wsclean-image.fits') header = fits.getheader('wsclean-image.fits')
return header['CRVAL1'], header['CRVAL2'], np.nanmin(data), np.nanmax(data) return header['CRVAL1'], header['CRVAL2'], np.nanmin(data), np.nanmax(data)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment