added default value of nearby source search if mr=0
This commit is contained in:
parent
e2d0afa4c5
commit
ebf8e11866
4
views.py
4
views.py
@ -369,7 +369,11 @@ class UpperLimitView(APIView):
|
|||||||
# NEARBY SOURCES CHECK
|
# NEARBY SOURCES CHECK
|
||||||
# ****************************************************************
|
# ****************************************************************
|
||||||
|
|
||||||
|
if map_radius == 0:
|
||||||
|
radius_as = 5 * aperture_radius
|
||||||
|
else:
|
||||||
radius_as = map_radius * 2
|
radius_as = map_radius * 2
|
||||||
|
|
||||||
radius_deg = radius_as / 3600
|
radius_deg = radius_as / 3600
|
||||||
|
|
||||||
dec_min = max(dec - radius_deg, -90)
|
dec_min = max(dec - radius_deg, -90)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user