Skip to content

Commit 1079cfc

Browse files
committed
Added filters to UKIDSS - again, required for uwish2 data
1 parent 951add8 commit 1079cfc

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

astroquery/ukidss/ukidss.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def get_links(self):
5353

5454
class UKIDSSQuery():
5555
"""
56-
The Query class. Must instantiate this class in order to make any
56+
The UKIDSSQuery class. Must instantiate this class in order to make any
5757
queries. Allows registered users to login, but defaults to using the
5858
public UKIDSS data sets.
5959
"""
@@ -62,7 +62,8 @@ def __init__(self):
6262
self.opener = urllib2.build_opener()
6363
self.database = 'UKIDSSDR7PLUS'
6464
self.programmeID = 102 # GPS
65-
self.filters = {'all': 'all', 'J': '3', 'H': '4', 'K': '5'}
65+
self.filters = {'all': 'all', 'J': '3', 'H': '4', 'K': '5', 'Y': 2,
66+
'Z': 1, 'H2': 6, 'Br': 7}
6667
self.directory = './'
6768
self.cj = None
6869

@@ -107,7 +108,7 @@ def get_image_gal(self, glon, glat, filter='all', frametype='stack',
107108
glon : float
108109
glat : float
109110
Galactic latitude and longitude at the center
110-
filter : ['all','J','H','K']
111+
filter : ['all','J','H','K','H2','Z','Y','Br']
111112
The color filter to download.
112113
frametype : ['stack','normal','interleave','deep%stack','confidence','difference','leavstack','all']
113114
The type of image
@@ -129,7 +130,7 @@ def get_image_gal(self, glon, glat, filter='all', frametype='stack',
129130
130131
Examples
131132
--------
132-
>>> R = Query()
133+
>>> R = UKIDSSQuery()
133134
>>> fitsfile = R.get_image_gal(10.5,0.0)
134135
"""
135136

@@ -256,7 +257,7 @@ def get_images_radius(self, ra, dec, radius, filter='all',
256257
257258
Examples
258259
--------
259-
>>> R = Query()
260+
>>> R = UKIDSSQuery()
260261
>>> fitsfile = R.get_image_gal(10.5,0.0)
261262
"""
262263

@@ -369,7 +370,7 @@ def get_catalog_gal(self, glon, glat, directory=None, radius=1, save=False,
369370
370371
Example
371372
-------
372-
>>> R = Query()
373+
>>> R = UKIDSSQuery()
373374
>>> data = R.get_catalog_gal(10.625,-0.38,radius=0.1)
374375
>>> bintable = data[0][1]
375376
"""

0 commit comments

Comments
 (0)