add analysis of MRK231
11
data/MRK231_x4qr010/README.md
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
Observation data
|
||||||
|
Instrument : FOC
|
||||||
|
Proposal ID : 6444
|
||||||
|
Target name : MRK 231
|
||||||
|
Dataset : X4QR010
|
||||||
|
|
||||||
|
Gallagher et al. 1998 Flux (3475A) ?? ?? PD: 15.3% PA: 97.8° Aperture: 0.47"
|
||||||
|
"Circular apertures with radii from 3 (0.043") to 33 pixels (0.469") all yield polarizations of P ~ 15:5% at PA ~ 99°"
|
||||||
|
|
||||||
|
bin 0.05" Flux (3475A): 11.87±0.01e-16ergs/cm²/s/A PD: 10.6±0.2% PA: 83.2±0.6° Aperture: 0.5"
|
||||||
|
bin 0.10" Flux (3475A): 7.053±0.01e-16ergs/cm²/s/A PD: 15.8±0.2% PA: 79.8±0.3° Aperture: 0.5"
|
||||||
BIN
plots/MRK231_x4qr010/MRK231_FOC_POL120_crop_region.png
Normal file
|
After Width: | Height: | Size: 57 KiB |
BIN
plots/MRK231_x4qr010/MRK231_FOC_center_image.png
Normal file
|
After Width: | Height: | Size: 200 KiB |
BIN
plots/MRK231_x4qr010/MRK231_FOC_combine_FWHM010.png
Normal file
|
After Width: | Height: | Size: 130 KiB |
BIN
plots/MRK231_x4qr010/MRK231_FOC_combine_FWHM010_I.png
Normal file
|
After Width: | Height: | Size: 387 KiB |
BIN
plots/MRK231_x4qr010/MRK231_FOC_combine_FWHM010_IQU.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
plots/MRK231_x4qr010/MRK231_FOC_combine_FWHM010_I_err.png
Normal file
|
After Width: | Height: | Size: 263 KiB |
BIN
plots/MRK231_x4qr010/MRK231_FOC_combine_FWHM010_P.png
Normal file
|
After Width: | Height: | Size: 245 KiB |
BIN
plots/MRK231_x4qr010/MRK231_FOC_combine_FWHM010_PA.png
Normal file
|
After Width: | Height: | Size: 251 KiB |
BIN
plots/MRK231_x4qr010/MRK231_FOC_combine_FWHM010_P_err.png
Normal file
|
After Width: | Height: | Size: 249 KiB |
BIN
plots/MRK231_x4qr010/MRK231_FOC_combine_FWHM010_P_flux.png
Normal file
|
After Width: | Height: | Size: 276 KiB |
BIN
plots/MRK231_x4qr010/MRK231_FOC_combine_FWHM010_SNRi.png
Normal file
|
After Width: | Height: | Size: 478 KiB |
BIN
plots/MRK231_x4qr010/MRK231_FOC_combine_FWHM010_SNRp.png
Normal file
|
After Width: | Height: | Size: 675 KiB |
BIN
plots/MRK231_x4qr010/MRK231_FOC_combine_FWHM020.png
Normal file
|
After Width: | Height: | Size: 126 KiB |
BIN
plots/MRK231_x4qr010/MRK231_FOC_combine_FWHM020_I.png
Normal file
|
After Width: | Height: | Size: 455 KiB |
BIN
plots/MRK231_x4qr010/MRK231_FOC_combine_FWHM020_IQU.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
plots/MRK231_x4qr010/MRK231_FOC_combine_FWHM020_I_err.png
Normal file
|
After Width: | Height: | Size: 255 KiB |
BIN
plots/MRK231_x4qr010/MRK231_FOC_combine_FWHM020_P.png
Normal file
|
After Width: | Height: | Size: 240 KiB |
BIN
plots/MRK231_x4qr010/MRK231_FOC_combine_FWHM020_PA.png
Normal file
|
After Width: | Height: | Size: 245 KiB |
BIN
plots/MRK231_x4qr010/MRK231_FOC_combine_FWHM020_P_err.png
Normal file
|
After Width: | Height: | Size: 240 KiB |
BIN
plots/MRK231_x4qr010/MRK231_FOC_combine_FWHM020_P_flux.png
Normal file
|
After Width: | Height: | Size: 260 KiB |
BIN
plots/MRK231_x4qr010/MRK231_FOC_combine_FWHM020_SNRi.png
Normal file
|
After Width: | Height: | Size: 542 KiB |
BIN
plots/MRK231_x4qr010/MRK231_FOC_combine_FWHM020_SNRp.png
Normal file
|
After Width: | Height: | Size: 613 KiB |
BIN
plots/MRK231_x4qr010/MRK231_FOC_crop_region.png
Normal file
|
After Width: | Height: | Size: 845 KiB |
|
After Width: | Height: | Size: 62 KiB |
BIN
plots/MRK231_x4qr010/MRK231_FOC_errors_background_flux.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
plots/MRK231_x4qr010/MRK231_FOC_errors_histograms.png
Normal file
|
After Width: | Height: | Size: 114 KiB |
|
Before Width: | Height: | Size: 121 KiB After Width: | Height: | Size: 126 KiB |
@@ -18,12 +18,12 @@ from astropy.wcs import WCS
|
|||||||
|
|
||||||
##### User inputs
|
##### User inputs
|
||||||
## Input and output locations
|
## Input and output locations
|
||||||
globals()['data_folder'] = "../data/NGC1068_x274020/"
|
#globals()['data_folder'] = "../data/NGC1068_x274020/"
|
||||||
globals()['infiles'] = ['x274020at_c0f.fits','x274020bt_c0f.fits','x274020ct_c0f.fits',
|
#globals()['infiles'] = ['x274020at_c0f.fits','x274020bt_c0f.fits','x274020ct_c0f.fits',
|
||||||
'x274020dt_c0f.fits','x274020et_c0f.fits','x274020ft_c0f.fits',
|
# 'x274020dt_c0f.fits','x274020et_c0f.fits','x274020ft_c0f.fits',
|
||||||
'x274020gt_c0f.fits','x274020ht_c0f.fits','x274020it_c0f.fits']
|
# 'x274020gt_c0f.fits','x274020ht_c0f.fits','x274020it_c0f.fits']
|
||||||
#psf_file = 'NGC1068_f253m00.fits'
|
##psf_file = 'NGC1068_f253m00.fits'
|
||||||
globals()['plots_folder'] = "../plots/NGC1068_x274020/"
|
#globals()['plots_folder'] = "../plots/NGC1068_x274020/"
|
||||||
|
|
||||||
#globals()['data_folder'] = "../data/IC5063_x3nl030/"
|
#globals()['data_folder'] = "../data/IC5063_x3nl030/"
|
||||||
#globals()['infiles'] = ['x3nl0301r_c0f.fits','x3nl0302r_c0f.fits','x3nl0303r_c0f.fits']
|
#globals()['infiles'] = ['x3nl0301r_c0f.fits','x3nl0302r_c0f.fits','x3nl0303r_c0f.fits']
|
||||||
@@ -80,6 +80,13 @@ globals()['plots_folder'] = "../plots/NGC1068_x274020/"
|
|||||||
#globals()['infiles'] = ['x3nl0201r_c0f.fits','x3nl0202r_c0f.fits','x3nl0203r_c0f.fits']
|
#globals()['infiles'] = ['x3nl0201r_c0f.fits','x3nl0202r_c0f.fits','x3nl0203r_c0f.fits']
|
||||||
#globals()['plots_folder'] = "../plots/MKN78_x3nl020/"
|
#globals()['plots_folder'] = "../plots/MKN78_x3nl020/"
|
||||||
|
|
||||||
|
globals()['data_folder'] = "../data/MRK231_x4qr010/"
|
||||||
|
globals()['infiles'] = ['x4qr010ar_c0f.fits', 'x4qr010br_c0f.fits', 'x4qr010dr_c0f.fits',
|
||||||
|
'x4qr010er_c0f.fits', 'x4qr010gr_c0f.fits', 'x4qr010hr_c0f.fits',
|
||||||
|
'x4qr010jr_c0f.fits', 'x4qr010kr_c0f.fits', 'x4qr0104r_c0f.fits',
|
||||||
|
'x4qr0105r_c0f.fits', 'x4qr0107r_c0f.fits', 'x4qr0108r_c0f.fits']
|
||||||
|
globals()['plots_folder'] = "../plots/MRK231_x4qr010/"
|
||||||
|
|
||||||
#globals()['data_folder'] = "../data/3C273_x0u20/"
|
#globals()['data_folder'] = "../data/3C273_x0u20/"
|
||||||
#globals()['infiles'] = ['x0u20101t_c0f.fits','x0u20102t_c0f.fits','x0u20103t_c0f.fits',
|
#globals()['infiles'] = ['x0u20101t_c0f.fits','x0u20102t_c0f.fits','x0u20103t_c0f.fits',
|
||||||
# 'x0u20104t_c0f.fits','x0u20105t_c0f.fits','x0u20106t_c0f.fits',
|
# 'x0u20104t_c0f.fits','x0u20105t_c0f.fits','x0u20106t_c0f.fits',
|
||||||
@@ -128,7 +135,7 @@ def main():
|
|||||||
# Data binning
|
# Data binning
|
||||||
rebin = True
|
rebin = True
|
||||||
if rebin:
|
if rebin:
|
||||||
pxsize = 0.10
|
pxsize = 0.05
|
||||||
px_scale = 'arcsec' #pixel, arcsec or full
|
px_scale = 'arcsec' #pixel, arcsec or full
|
||||||
rebin_operation = 'sum' #sum or average
|
rebin_operation = 'sum' #sum or average
|
||||||
# Alignement
|
# Alignement
|
||||||
@@ -136,17 +143,17 @@ def main():
|
|||||||
display_data = False
|
display_data = False
|
||||||
# Smoothing
|
# Smoothing
|
||||||
smoothing_function = 'combine' #gaussian_after, weighted_gaussian_after, gaussian, weighted_gaussian or combine
|
smoothing_function = 'combine' #gaussian_after, weighted_gaussian_after, gaussian, weighted_gaussian or combine
|
||||||
smoothing_FWHM = 0.20 #If None, no smoothing is done
|
smoothing_FWHM = 0.10 #If None, no smoothing is done
|
||||||
smoothing_scale = 'arcsec' #pixel or arcsec
|
smoothing_scale = 'arcsec' #pixel or arcsec
|
||||||
# Rotation
|
# Rotation
|
||||||
rotate_stokes = True #rotation to North convention can give erroneous results
|
rotate_stokes = True #rotation to North convention can give erroneous results
|
||||||
rotate_data = False #rotation to North convention can give erroneous results
|
rotate_data = False #rotation to North convention can give erroneous results
|
||||||
# Final crop
|
# Final crop
|
||||||
crop = False #Crop to desired ROI
|
crop = False #Crop to desired ROI
|
||||||
final_display = False
|
final_display = True
|
||||||
# Polarization map output
|
# Polarization map output
|
||||||
figname = 'NGC1068_FOC' #target/intrument name
|
figname = 'MRK231_FOC' #target/intrument name
|
||||||
figtype = '_combine_FWHM020' #additionnal informations
|
figtype = '_combine_FWHM010' #additionnal informations
|
||||||
SNRp_cut = 5. #P measurments with SNR>3
|
SNRp_cut = 5. #P measurments with SNR>3
|
||||||
SNRi_cut = 50. #I measurments with SNR>30, which implies an uncertainty in P of 4.7%.
|
SNRi_cut = 50. #I measurments with SNR>30, which implies an uncertainty in P of 4.7%.
|
||||||
step_vec = 1 #plot all vectors in the array. if step_vec = 2, then every other vector will be plotted
|
step_vec = 1 #plot all vectors in the array. if step_vec = 2, then every other vector will be plotted
|
||||||
|
|||||||
@@ -72,7 +72,8 @@ globals()['sigma_theta'] = np.array([3.*np.pi/180., 3.*np.pi/180., 3.*np.pi/180.
|
|||||||
|
|
||||||
def princ_angle(ang):
|
def princ_angle(ang):
|
||||||
"""
|
"""
|
||||||
Return the principal angle in the 0° to 360° quadrant.
|
Return the principal angle in the 0° to 180° quadrant.
|
||||||
|
as PA is always defined at p/m 180°.
|
||||||
"""
|
"""
|
||||||
if type(ang) != np.ndarray:
|
if type(ang) != np.ndarray:
|
||||||
A = np.array([ang])
|
A = np.array([ang])
|
||||||
|
|||||||