Skip to content

Commit

Permalink
Merge pull request #46 from Joshiwavm/fix_notebooks_20_12
Browse files Browse the repository at this point in the history
Fix notebooks 20 12
  • Loading branch information
Joshiwavm authored Dec 24, 2023
2 parents 49d889e + 1678717 commit 13bdc25
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 61 deletions.

Large diffs are not rendered by default.

102 changes: 52 additions & 50 deletions docs/source/tutorials/Synthetic_MUSTANG2_observations.ipynb

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions maria/map/mappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def __init__(
filter_tods: bool = True,
smoothing: float = 8,
degrees: bool = True,
ffilter: float = 0.08,
**kwargs,
):
self.res = np.radians(res) if degrees else res
Expand All @@ -51,6 +52,7 @@ def __init__(
self.frame = frame
self.filter_tods = filter_tods
self.smoothing = smoothing
self.ffilter = ffilter

self.n_x = int(np.maximum(1, self.width / self.res))
self.n_y = int(np.maximum(1, self.height / self.res))
Expand Down Expand Up @@ -132,7 +134,6 @@ def save_maps(self, filepath):
self.header["CRVAL3"] = self.band_data[key]["nom_freq"] * 1e9
self.header["CDELT3"] = self.band_data[key]["nom_freqwidth"] * 1e9

# save_maps[i] = self.maps[list(self.maps.keys())[i]]
sigma_smooth = self.smoothing / 3600 / np.rad2deg(self.res) / 2.355
save_maps[i] = self.smoothed_maps(sigma_smooth)[
list(self.band_data.keys())[i]
Expand All @@ -158,7 +159,7 @@ def __init__(self, **kwargs):
self._nmtr = kwargs.get("n_modes_to_remove", 0)

def _fourier_filter(self, tod_dat, tod_time):
ffilt = [0.08, 51.0] # high-pass and low-pass filters, in Hz
ffilt = [self.ffilter, 51.0] # high-pass and low-pass filters, in Hz
width = 0.05

n = len(tod_time)
Expand Down

0 comments on commit 13bdc25

Please sign in to comment.