Flux conversion
cutana.flux_conversion
¶
Preprocessing function for fits data
apply_flux_conversion(config, img, header)
¶
Applies flux conversion function for fits data
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
DotMap
|
Configuration object with flux conversion settings |
required |
img
|
ndarray
|
Image data |
required |
header
|
Header
|
FITS header |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
numpy.ndarray: Flux-converted image data |
Raises:
| Type | Description |
|---|---|
ValueError
|
If zeropoint keyword is not found in header |
convert_mosaic_to_flux(img, AB_zeropoint)
¶
Convert mosaic pixel values to flux using the given zeropoint. For a definition to get the conversion see https://en.wikipedia.org/wiki/AB_magnitude
Parameters:¶
img : numpy.ndarray Image data AB_zeropoint : float Zeropoint value to convert to AB magnitudes
Returns:¶
numpy.ndarray Flux values in Jansky