To generate accurate error maps for your continuum-subtracted image under the given constraints, you'll need to carefully reconstruct the calibration pipeline to propagate the uncertainties from your raw data through each processing step. Here's a detailed plan to guide you through this process:
-
Estimate Initial Uncertainties in Raw Images:
- Poissonian Noise: Since your uncalibrated emission-line and continuum images are in counts and assume Poissonian noise, the variance at each pixel is equal to the count value (assuming gain is 1 e⁻/ADU and read noise is negligible).
[
\sigma_{\text{counts}}^2 = N_{\text{counts}}
]
- Create initial variance (error) maps for both the emission-line and continuum images using the square root of the counts:
[
\sigma_{\text{counts}} = \sqrt{N_{\text{counts}}}
]
-
Image Alignment (Skip Flat-Field Correction - Step 1, Perform Alignment - Step 2):
- Alignment: Use
astroalign or a similar tool to align the emission-line and continuum images.
- Error Propagation During Alignment:
- Apply the same transformation to the error maps as you do to the images.
- Be cautious with interpolation: Use interpolation methods that appropriately handle variance maps (e.g., propagate errors considering interpolation weights).
-
Point Spread Function (PSF) Matching and Seeing Correction (Step 3):
- PSF Estimation: Estimate the Gaussian PSF for both images.
- Smoothing: Apply convolution to match the PSFs between the images.
- Error Propagation During Smoothing:
- When smoothing (convolving) an image, the noise characteristics change.
- The variance after convolution is given by:
[
\sigma_{\text{conv}}^2 = \sigma_{\text{original}}^2 \ast h^2
]
where ( h ) is the convolution kernel.
- Convolve the variance maps accordingly, squaring the kernel before convolution.
-
Background Subtraction (Simplify Step 5):
- Estimate Background: Since you plan to estimate the background as a constant, determine the background level in each image.
- Subtract Background: Subtract the background from both the emission-line and continuum images.
- Error Propagation in Background Subtraction:
- If the background level has an associated uncertainty ( \sigma_{\text{bg}} ), include this in the variance:
[
\sigma_{\text{new}}^2 = \sigma_{\text{original}}^2 + \sigma_{\text{bg}}^2
]
- If ( \sigma_{\text{bg}} ) is negligible, this step may not significantly affect the variance.
-
Continuum Subtraction (Step 6):
- Determine Continuum Scaling Factor: If the continuum subtraction coefficient is close to 1, you might approximate it as 1 or determine it more precisely by comparing integrated fluxes in regions without emission lines.
- Subtract Continuum:
[
I_{\text{sub}} = I_{\text{emission}} - k \times I_{\text{continuum}}
]
where ( k ) is the scaling coefficient.
- Error Propagation in Continuum Subtraction:
- The variance of the subtracted image is:
[
\sigma_{\text{sub}}^2 = \sigma_{\text{emission}}^2 + k^2 \sigma_{\text{continuum}}^2
]
- If there is uncertainty in ( k ), include it:
[
\sigma_{\text{sub}}^2 = \sigma_{\text{emission}}^2 + k^2 \sigma_{\text{continuum}}^2 + I_{\text{continuum}}^2 \sigma_{k}^2
]
-
Flux Calibration (Step 7):
- Estimate Calibration Factor:
- Compare your continuum-subtracted counts image ( I_{\text{sub}} ) with the provided calibrated continuum-subtracted image ( I_{\text{calib}} ).
- Compute the calibration factor ( C ) by taking the ratio:
[
C = \frac{I_{\text{calib}}}{I_{\text{sub}}}
]
- To reduce noise, compute ( C ) over regions where the signal is high and avoid areas affected by emission lines or artifacts.
- If ( C ) varies spatially, consider modeling its variation or using a median value.
- Apply Calibration Factor:
- Multiply your continuum-subtracted image by ( C ) to convert it to flux units:
[
I_{\text{flux}} = C \times I_{\text{sub}}
]
- Error Propagation in Calibration:
- The variance scales by ( C^2 ):
[
\sigma_{\text{flux}}^2 = C^2 \sigma_{\text{sub}}^2 + I_{\text{sub}}^2 \sigma_{C}^2
]
- If ( \sigma_{C} ) (uncertainty in ( C )) is significant, include it in the variance.
-
Final Error Map:
- Compile the Error Map:
- Use the variance ( \sigma_{\text{flux}}^2 ) calculated above to create the final error map.
- The error (standard deviation) at each pixel is:
[
\sigma_{\text{flux}} = \sqrt{\sigma_{\text{flux}}^2}
]
- Consider Correlated Noise:
- Be aware that operations like smoothing and interpolation can introduce pixel-to-pixel correlations.
- While this might not be fully correctable without more information, acknowledge this limitation in your analysis.
-
Address Skipped Processing Steps:
- Flat-Field Correction (Skipped Step 1):
- Understand that skipping flat-field correction might introduce additional uncertainties due to pixel-to-pixel sensitivity variations.
- If possible, estimate the flat-field noise from calibration data or consider it as an additional systematic uncertainty.
- Extinction Correction (Partial Step 3):
- Skipping extinction correction assumes that atmospheric conditions were stable.
- If there were variations, this could affect the calibration factor ( C ) and introduce errors.
- Include a note on this potential source of error.
-
Documentation and Validation:
- Record All Assumptions: Document all assumptions made during the reconstruction (e.g., gain, negligible read noise, constant background).
- Validation:
- Compare your error estimates with known values or expectations.
- For example, check if the signal-to-noise ratio (SNR) in high-SNR regions makes sense.
- Uncertainty Analysis:
- Acknowledge the limitations due to skipped steps and approximations.
- If possible, perform a sensitivity analysis to understand how these assumptions affect your final uncertainties.
-
Additional Considerations:
- Spatial Variations: Be cautious of spatial variations in gain, background, or calibration factors.
- Temporal Variations: If your exposures were taken at different times, consider potential variations in atmospheric conditions.
- References:
- Consult astrophotometry and error propagation references for detailed methodologies.
- Recommended readings include "Data Reduction and Error Analysis for the Physical Sciences" by Bevington & Robinson, and "Statistical Methods in Experimental Physics" by James.
By carefully reconstructing the calibration steps and systematically propagating uncertainties at each stage, you'll generate an accurate error map for your continuum-subtracted image. This approach will provide a solid foundation for any subsequent analysis and ensure that the uncertainties in your final image reflect the true uncertainties from the raw data.
Note: While this method is robust, always be open to refining your process as more information becomes available or if certain assumptions no longer hold.