Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
jurjen93 committed Nov 18, 2024
1 parent be80846 commit b3e9933
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 0 additions & 4 deletions catalogue_helpers/crossmatch.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
"""
Code to crossmatch catalogues
Note that this code is in some parts of the main function hardcoded as it was used for crossmatching
4 catalogues obtained after reducing data from ELAIS-N1 with LOFAR.
So, feel free to adapt and use it for your own purposes.
"""

from astropy.coordinates import SkyCoord
Expand Down
9 changes: 6 additions & 3 deletions subtract/subtract_with_wsclean.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ def box_to_localnorth(self, region: str = None):
def flat_model_image(fitsfile: str = None):
"""
Flatten a fits file so that it becomes a 2D image. Return new header and data
(taken from sub-sources-outside-region.py)
(taken from sub_sources_outside_region.py)
"""
hdu = fits.open(fitsfile)
naxis = hdu[0].header['NAXIS']
Expand Down Expand Up @@ -459,7 +459,8 @@ def subtract_col(self, out_column: str = None):

if out_column not in colnames:
# Creating the column with DP3 ensures we can directly compress the data
os.system(f"DP3 msin={ms} msout=. msout.datacolumn={out_column} steps=[] msout.storagemanager=dysco")
os.system(f"DP3 msin={ms} msout=. msout.datacolumn={out_column} steps=[] msout.storagemanager=dysco"
f"msout.storagemanager.databitrate=6 msout.storagemanager.weightbitrate=6")
else:
print(out_column, ' already exists')

Expand Down Expand Up @@ -569,7 +570,9 @@ def run_DP3(self, phaseshift: str = None, freqavg: str = None,
'msin.missingdata=True',
'msin.datacolumn=SUBTRACT_DATA' if not self.inverse else 'msin.datacolumn=DATA',
'msin.orderms=False',
'msout.storagemanager=dysco']
'msout.storagemanager=dysco',
'msout.storagemanager.databitrate=6',
'msout.storagemanager.weightbitrate=6']

# 1) PHASESHIFT
if phaseshift is not None:
Expand Down

0 comments on commit b3e9933

Please sign in to comment.