|
10 | 10 | from astroquery import log
|
11 | 11 | from astropy import units as u
|
12 | 12 | from astropy.io import fits
|
| 13 | +from astropy.utils import deprecated |
| 14 | + |
13 | 15 | from astroquery.utils.commons import ASTROPY_LT_4_1
|
14 | 16 |
|
15 | 17 | from astroquery.skyview import SkyView
|
16 | 18 | from astroquery.alma import Alma
|
17 | 19 |
|
18 | 20 |
|
| 21 | +@deprecated('0.4.6', 'this function has been deprecated and will be removed in the next release.') |
19 | 22 | def pyregion_subset(region, data, mywcs):
|
20 | 23 | """
|
21 | 24 | Return a subset of an image (``data``) given a region.
|
@@ -153,6 +156,7 @@ def footprint_to_reg(footprint):
|
153 | 156 | return reglist
|
154 | 157 |
|
155 | 158 |
|
| 159 | +@deprecated('0.4.6', 'this function has been deprecated and will be removed in the next release.') |
156 | 160 | def add_meta_to_reg(reg, meta):
|
157 | 161 | reg.meta = meta
|
158 | 162 | return reg
|
@@ -181,6 +185,7 @@ def approximate_primary_beam_sizes(frequency_support_str,
|
181 | 185 | return u.Quantity(beam_sizes)
|
182 | 186 |
|
183 | 187 |
|
| 188 | +@deprecated('0.4.6', 'this function has been deprecated and will be removed in the next release.') |
184 | 189 | def make_finder_chart(target, radius, save_prefix, service=SkyView.get_images,
|
185 | 190 | service_kwargs={'survey': ['2MASS-K'], 'pixels': 500},
|
186 | 191 | alma_kwargs={'public': False, 'science': False},
|
@@ -229,6 +234,7 @@ def make_finder_chart(target, radius, save_prefix, service=SkyView.get_images,
|
229 | 234 | **kwargs)
|
230 | 235 |
|
231 | 236 |
|
| 237 | +@deprecated('0.4.6', 'this function has been deprecated and will be removed in the next release.') |
232 | 238 | def make_finder_chart_from_image(image, target, radius, save_prefix,
|
233 | 239 | alma_kwargs={'public': False,
|
234 | 240 | 'science': False,
|
@@ -273,6 +279,7 @@ def make_finder_chart_from_image(image, target, radius, save_prefix,
|
273 | 279 | **kwargs)
|
274 | 280 |
|
275 | 281 |
|
| 282 | +@deprecated('0.4.6', 'this function has been deprecated and will be removed in the next release.') |
276 | 283 | def make_finder_chart_from_image_and_catalog(image, catalog, save_prefix,
|
277 | 284 | alma_kwargs={'public': False,
|
278 | 285 | 'science': False},
|
|
0 commit comments