CSP Validation module (ska_oso_services.validation.csp)

ska_oso_services.validation.csp.validate_csp(csp_context: ValidationContext[ska_oso_pdm.sb_definition.CSPConfiguration]) list[ValidationIssue][source]
Parameters:

csp_context – a ValidationContext containing a CSP Configuration to be validated

Returns:

the collated ValidationIssues resulting from applying each of CSP Validators to the CSP Configuration

ska_oso_services.validation.csp.validate_low_spws(csp_context: ValidationContext[ska_oso_pdm.sb_definition.CSPConfiguration]) list[ValidationIssue][source]
Parameters:

csp_context – a ValidationContext containing a CSP Configuration to be validated

Returns:

the collated ValidationIssues resulting from applying each of SKA Low spectral window validators to the spectral windows in the CSP Configuration

ska_oso_services.validation.csp.validate_mid_spws(csp_context: ValidationContext[ska_oso_pdm.sb_definition.CSPConfiguration]) list[ValidationIssue][source]
Parameters:

csp_context – a ValidationContext containing a CSP Configuration to be validated

Returns:

the collated ValidationIssues resulting from applying each of SKA Mid spectral window validators to the spectral windows in the CSP Configuration

ska_oso_services.validation.csp.validate_low_spw(spw_context: ValidationContext[ska_oso_pdm.sb_definition.csp.lowcbf.Correlation]) list[ValidationIssue][source]
Parameters:

spw_context – a ValidationContext containing an SKA Low Correlation to be validated

Returns:

the collated ValidationIssues resulting from applying each of the SKA Low spectral window validators to a single Low spectral window

ska_oso_services.validation.csp.validate_mid_spw(spw_context: ValidationContext[ska_oso_pdm.sb_definition.csp.midcbf.CorrelationSPWConfiguration]) list[ValidationIssue][source]
Parameters:

spw_context – a ValidationContext containing an SKA Mid CorrelationSPWConfiguration to be validated

Returns:

the collated ValidationIssues resulting from applying each of the SKA Mid spectral window validators to a single Mid spectral window

ska_oso_services.validation.csp.validate_low_spw_centre_frequency(spw_context: ValidationContext[ska_oso_pdm.sb_definition.csp.lowcbf.Correlation]) list[ValidationIssue][source]
Parameters:

spw_context – a ValidationContext containing an SKA Low Correlation to be validated

Returns:

a validation error if the central frequency of the window is outside the frequency range of SKA Low

ska_oso_services.validation.csp.validate_mid_spw_centre_frequency(spw_context: ValidationContext[ska_oso_pdm.sb_definition.csp.midcbf.CorrelationSPWConfiguration]) list[ValidationIssue][source]
Parameters:

spw_context – a ValidationContext containing an SKA Mid CorrelationSPWConfiguration to be validated

Returns:

a validation error if the central frequency of the window is outside the frequency range of the SKA Mid frequency band

ska_oso_services.validation.csp.validate_continuum_spw_bandwidth(spw_context: ValidationContext[ska_oso_pdm.sb_definition.csp.midcbf.CorrelationSPWConfiguration] | ValidationContext[ska_oso_pdm.sb_definition.csp.lowcbf.Correlation]) list[ValidationIssue][source]
Parameters:

spw_context – a ValidationContext containing an SKA Mid CorrelationSPWConfiguration or SKA Low Correlation to be validated

Returns:

a validation error if the bandwidth of the window is outside the frequency range of the telescope or frequency band

ska_oso_services.validation.csp.validate_low_spw_window(spw_context: ValidationContext[ska_oso_pdm.sb_definition.csp.lowcbf.Correlation]) list[ValidationIssue][source]
Parameters:

spw_context – a ValidationContext containing an SKA Low Correlation to be validated

Returns:

a validation error if the combination of the central frequency and bandwidth of the window is outside the frequency range of SKA Low

ska_oso_services.validation.csp.validate_mid_spw_window(spw_context: ValidationContext[ska_oso_pdm.sb_definition.csp.midcbf.CorrelationSPWConfiguration]) list[ValidationIssue][source]
Parameters:

spw_context – a ValidationContext containing an SKA Mid CorrelationSPWConfiguration to be validated

Returns:

a validation error if the combination of the central frequency and bandwidth of the window is outside the frequency range of the SKA Mid frequency band

ska_oso_services.validation.csp.validate_mid_fsps(csp_context: ValidationContext[ska_oso_pdm.sb_definition.CSPConfiguration]) list[ValidationIssue][source]
Parameters:

csp_context – a ValidationContext containing an SKA Mid CSP Configuration to be validated

Returns:

a validation error if the number of FSPs required exceeds the number available for the array assembly being validated against

ska_oso_services.validation.csp.calculate_continuum_spw_bandwidth(spw_context: ValidationContext[ska_oso_pdm.sb_definition.csp.midcbf.CorrelationSPWConfiguration] | ValidationContext[ska_oso_pdm.sb_definition.csp.lowcbf.Correlation]) astropy.units.Quantity[source]

function to calculate the bandwidth of spectral windows