ska_ost_senscalc.mid.service
The service layer is responsible for turning validated inputs into the relevant calculation inputs, calling any calculation functions and collating the results.
- class ska_ost_senscalc.mid.service.WeightingResponse[source]
WeightingResponse is a typed dictionary constrained to match the schema of the main result of a weighting endpoint query.
- ska_ost_senscalc.mid.service.get_calculate_response(params)[source]
Using the parameters of the query return the appropriate values for the calculation.
- ska_ost_senscalc.mid.service.get_subarray_response()[source]
return the appropriate subarray objects
- ska_ost_senscalc.mid.service.get_subbands(n_subbands, obs_freq, bandwidth)[source]
Function to get the centres (and common width) of the N subbands of bandwidth
- ska_ost_senscalc.mid.service.get_weighting_response(user_input: dict) WeightingResponse [source]
Using the parameters of the query return the appropriate values for weighting correction factor, synthesized-beam-sensitivity factor and beam shape.
- Raises:
- None –