Skip to content

Commit 1449a2c

Browse files
authored
Merge pull request #29 from AlecThomson/getnoisefix
Fix getnoise
2 parents f89efbc + 7114d98 commit 1449a2c

File tree

4 files changed

+96
-80
lines changed

4 files changed

+96
-80
lines changed

racs_tools/beamcon_2D.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
""" Convolve ASKAP images to common resolution """
33
__author__ = "Alec Thomson"
44

5-
import logging as logger
5+
import logging
66
import os
77
import sys
88
from functools import partial
@@ -23,6 +23,10 @@
2323
from racs_tools import au2
2424
from racs_tools.convolve_uv import smooth
2525

26+
logger = logging.getLogger(__name__)
27+
logging.basicConfig(level=logging.INFO)
28+
29+
2630
#############################################
2731
#### ADAPTED FROM SCRIPT BY T. VERNSTROM ####
2832
#############################################
@@ -134,7 +138,6 @@ def getimdata(cubenm: str) -> dict:
134138
"""
135139
logger.info(f"Getting image data from {cubenm}")
136140
with fits.open(cubenm, memmap=True, mode="denywrite") as hdu:
137-
138141
w = astropy.wcs.WCS(hdu[0])
139142
pixelscales = astropy.wcs.utils.proj_plane_pixel_scales(w)
140143

0 commit comments

Comments
 (0)