Skip to content

Commit

Permalink
0.0.5.6 smoothened first contour putting gaussian_filter to blur by s…
Browse files Browse the repository at this point in the history
…igma=1
  • Loading branch information
avialxee committed Jan 12, 2025
1 parent 2f62df6 commit eeb1d1e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = rgbmaker
version = 0.0.5.5
version = 0.0.5.6
author = Avinash Kumar
author_email = [email protected]
description = A python package which communicates to different astronomical services and fetches fits and numerical data.
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name = 'rgbmaker',
version = '0.0.5.5',
version = '0.0.5.6',
url='https://github.com/avialxee/rgbmaker',
author='Avinash Kumar',
author_email='[email protected]',
Expand All @@ -23,7 +23,8 @@
long_description=desc,
long_description_content_type = "text/markdown",
install_requires=["astropy>=4.2.1", "matplotlib>= 3.4.2, <=3.5.3",
"regions", "numpy>= 1.20.3", "astroquery","requests"
"regions", "numpy>= 1.20.3", "astroquery","requests",
"scipy",
],
extras_require = {
"dev" : ["pytest>=3.7",
Expand Down
5 changes: 4 additions & 1 deletion src/rgbmaker/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
import matplotlib.patches as mpatches
import numpy as np

from scipy.ndimage import gaussian_filter

import urllib

from time import perf_counter
Expand Down Expand Up @@ -284,7 +286,8 @@ def query(name="", position="", radius=float(0.12), archives=1,

ax2.contour(nvss, lvlcn, colors='cyan')
ax2.contour(tgss, lvlct, colors='magenta')
ax2.contour(first, lvlcf, colors='yellow')
smooth_first = gaussian_filter(first, sigma=1)
ax2.contour(smooth_first, lvlcf, colors='yellow')

leg1 = mpatches.Patch(color='cyan', label='NVSS')
leg2 = mpatches.Patch(color='magenta', label='TGSS')
Expand Down

0 comments on commit eeb1d1e

Please sign in to comment.