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 - 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* 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): class UpperLimitView(APIView):
""" """
Calclassic_count_ulate and return upper limits (UL, CRUL, FLUL) based on provided RA, DEC, and CL parameters. Calculate confidence bounds based on aperture photometry using classic and bayesian methods
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.
""" """
def get(self, request): def get(self, request):
@ -329,12 +320,12 @@ class UpperLimitView(APIView):
'FluxEstimate' : Flux, 'FluxEstimate' : Flux,
'N' : N, # 'N' : N,
'Nnpix' : Nnpix, # 'Nnpix' : Nnpix,
'Bcounts' : Bcounts, # 'Bcounts' : Bcounts,
'Bnpix' : Bnpix, # 'Bnpix' : Bnpix,
'B' : B, # 'B' : B,
'tsum' : tsum, # 'tsum' : tsum,
't' : t # 't' : t
}, status=status.HTTP_200_OK) }, status=status.HTTP_200_OK)