This commit is contained in:
Никита Тырин 2025-05-08 15:00:16 +03:00
parent e28236aca5
commit 04b881b5b6
2 changed files with 9 additions and 18 deletions

View File

@ -6,7 +6,7 @@ ART-XC upper limits django application
- load_survey
Allows to populate the database with data for a survey in healpix format. Takes about 1h40m for an nside=4096 map to load using sqlite.
Allows to populate the database with data for a survey in healpix format. Takes about 100 minutes for an nside=4096 map to load using sqlite. Supports resuming after interruption.
Syntax: python manage.py load_survey --counts='*path_to_counts_map*' --exposure='*path_to_exposure_map*' --survey=*integer survey number*

View File

@ -124,16 +124,7 @@ class PixelAggregateView(APIView):
class UpperLimitView(APIView):
"""
Calclassic_count_ulate and return upper limits (UL, CRUL, FLUL) based on provided RA, DEC, and CL parameters.
Args:
request: HTTP GET request containing 'ra', 'dec', and 'cl' query parameters.
Returns:
Response object with JSON data containing calclassic_count_ulated UL, CRUL, and FLUL values.
Raises:
ValueError if provided parameters are invalid.
Calculate confidence bounds based on aperture photometry using classic and bayesian methods
"""
def get(self, request):
@ -329,12 +320,12 @@ class UpperLimitView(APIView):
'FluxEstimate' : Flux,
'N' : N,
'Nnpix' : Nnpix,
'Bcounts' : Bcounts,
'Bnpix' : Bnpix,
'B' : B,
'tsum' : tsum,
't' : t
# 'N' : N,
# 'Nnpix' : Nnpix,
# 'Bcounts' : Bcounts,
# 'Bnpix' : Bnpix,
# 'B' : B,
# 'tsum' : tsum,
# 't' : t
}, status=status.HTTP_200_OK)