Skip to content

Commit f29fcbc

Browse files
Fixed error in hubble.rst
1 parent e09fbeb commit f29fcbc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

astroquery/esa/hubble/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ def cone_search_criteria(self, radius, target=None,
475475
radius_in_grades = Angle(radius, units.arcmin).deg
476476
else:
477477
radius_in_grades = radius.to(units.deg).value
478-
cone_query = "1=CONTAINS(POINT('ICRS', pos.ra, pos.dec)," \
478+
cone_query = "1=CONTAINS(POINT('ICRS', ra, dec)," \
479479
"CIRCLE('ICRS', {0}, {1}, {2}))". \
480480
format(str(ra), str(dec), str(radius_in_grades))
481481
query = "{}{})".format(crit_query, cone_query)

docs/esa/hubble/hubble.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ This last example will provide the ADQL query based on the criteria defined by t
307307
... filters = ['F555W', 'F606W'],
308308
... get_query = True)
309309
>>> print(result)
310-
select o.*, p.calibration_level, p.data_product_type, pos.ra, pos.dec from ehst.observation AS o JOIN ehst.plane as p on o.observation_uuid=p.observation_uuid JOIN ehst.position as pos on p.plane_id = pos.plane_id where(p.calibration_level LIKE '%PRODUCT%' AND p.data_product_type LIKE '%image%' AND o.intent LIKE '%SCIENCE%' AND (o.collection LIKE '%HLA%') AND (o.instrument_name LIKE '%WFC3%') AND (o.instrument_configuration LIKE '%F555W%' OR o.instrument_configuration LIKE '%F606W%'))
310+
select * from ehst.archive where(calibration_level=3 AND data_product_type LIKE '%image%' AND intent LIKE '%science%' AND (collection LIKE '%HLA%') AND (instrument_name LIKE '%WFC3%') AND (instrument_configuration LIKE '%F555W%' OR instrument_configuration LIKE '%F606W%'))
311311

312312
--------------------------------------
313313
6. Cone searches in the Hubble archive

0 commit comments

Comments
 (0)