fixed variable assignment error
This commit is contained in:
parent
ebf8e11866
commit
85a96b5fb2
18
views.py
18
views.py
@ -167,6 +167,15 @@ class UpperLimitView(APIView):
|
||||
|
||||
map_radius_value = request.query_params.get("mr")
|
||||
|
||||
# DEFINE APERTURE AND ANNULUS RADII
|
||||
# **************************************************************
|
||||
|
||||
aperture_radius = 71 # radius of the aperture in arc seconds
|
||||
# HPD ~48 arcseconds
|
||||
# 90% ~100 arcseconds
|
||||
annulus_inner = 142 # 2 * aperture_radius
|
||||
annulus_outer = 284 # 4 * aperture_radius
|
||||
|
||||
# default value if not specified in the query
|
||||
# get hpids within a circle of radius sqrt(2) * outer annulus radius
|
||||
if map_radius_value is None:
|
||||
@ -182,15 +191,6 @@ class UpperLimitView(APIView):
|
||||
gal = src_coord.galactic
|
||||
src_vec = hp.ang2vec(gal.l.deg, gal.b.deg, lonlat=True)
|
||||
|
||||
# DEFINE APERTURE AND ANNULUS RADII
|
||||
# **************************************************************
|
||||
|
||||
aperture_radius = 71 # radius of the aperture in arc seconds
|
||||
# HPD ~48 arcseconds
|
||||
# 90% ~100 arcseconds
|
||||
annulus_inner = 142 # 2 * aperture_radius
|
||||
annulus_outer = 284 # 4 * aperture_radius
|
||||
|
||||
# FETCH PIXEL DATA DEFINED VIA HP.QUERY_DISC (INCLUSIVE=FALSE)
|
||||
# **************************************************************
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user