diff --git a/data/3C109_x3mc010/README.md b/data/3C109_x3mc010/README.md new file mode 100644 index 0000000..7af0677 --- /dev/null +++ b/data/3C109_x3mc010/README.md @@ -0,0 +1,5 @@ +Observation data +Instrument : FOC +Proposal ID : 6927 +Target name : 3C109 +Dataset : X3MC010 diff --git a/plots/3C109_x3mc010/3C109_FOC.png b/plots/3C109_x3mc010/3C109_FOC.png new file mode 100644 index 0000000..5d39212 Binary files /dev/null and b/plots/3C109_x3mc010/3C109_FOC.png differ diff --git a/plots/3C109_x3mc010/3C109_FOC_P.png b/plots/3C109_x3mc010/3C109_FOC_P.png new file mode 100644 index 0000000..2aac3ac Binary files /dev/null and b/plots/3C109_x3mc010/3C109_FOC_P.png differ diff --git a/plots/3C109_x3mc010/3C109_FOC_P_err.png b/plots/3C109_x3mc010/3C109_FOC_P_err.png new file mode 100644 index 0000000..641a100 Binary files /dev/null and b/plots/3C109_x3mc010/3C109_FOC_P_err.png differ diff --git a/plots/3C109_x3mc010/3C109_FOC_center_image.png b/plots/3C109_x3mc010/3C109_FOC_center_image.png new file mode 100644 index 0000000..c74c246 Binary files /dev/null and b/plots/3C109_x3mc010/3C109_FOC_center_image.png differ diff --git a/plots/3C109_x3mc010/3C109_FOC_combine_FWHM2.png b/plots/3C109_x3mc010/3C109_FOC_combine_FWHM2.png new file mode 100644 index 0000000..3c1dd4c Binary files /dev/null and b/plots/3C109_x3mc010/3C109_FOC_combine_FWHM2.png differ diff --git a/plots/3C109_x3mc010/3C109_FOC_combine_FWHM2_P.png b/plots/3C109_x3mc010/3C109_FOC_combine_FWHM2_P.png new file mode 100644 index 0000000..823c03c Binary files /dev/null and b/plots/3C109_x3mc010/3C109_FOC_combine_FWHM2_P.png differ diff --git a/plots/3C109_x3mc010/3C109_FOC_combine_FWHM2_P_err.png b/plots/3C109_x3mc010/3C109_FOC_combine_FWHM2_P_err.png new file mode 100644 index 0000000..ae3a7d1 Binary files /dev/null and b/plots/3C109_x3mc010/3C109_FOC_combine_FWHM2_P_err.png differ diff --git a/plots/3C109_x3mc010/3C109_FOC_combine_FWHM2_rot.png b/plots/3C109_x3mc010/3C109_FOC_combine_FWHM2_rot.png new file mode 100644 index 0000000..e01fe91 Binary files /dev/null and b/plots/3C109_x3mc010/3C109_FOC_combine_FWHM2_rot.png differ diff --git a/plots/3C109_x3mc010/3C109_FOC_combine_FWHM2_rot_P.png b/plots/3C109_x3mc010/3C109_FOC_combine_FWHM2_rot_P.png new file mode 100644 index 0000000..42502b2 Binary files /dev/null and b/plots/3C109_x3mc010/3C109_FOC_combine_FWHM2_rot_P.png differ diff --git a/plots/3C109_x3mc010/3C109_FOC_combine_FWHM2_rot_P_err.png b/plots/3C109_x3mc010/3C109_FOC_combine_FWHM2_rot_P_err.png new file mode 100644 index 0000000..d19ad62 Binary files /dev/null and b/plots/3C109_x3mc010/3C109_FOC_combine_FWHM2_rot_P_err.png differ diff --git a/plots/3C109_x3mc010/3C109_FOC_errors_background_flux.png b/plots/3C109_x3mc010/3C109_FOC_errors_background_flux.png new file mode 100644 index 0000000..dea9fc5 Binary files /dev/null and b/plots/3C109_x3mc010/3C109_FOC_errors_background_flux.png differ diff --git a/plots/3C109_x3mc010/3C109_FOC_errors_background_location.png b/plots/3C109_x3mc010/3C109_FOC_errors_background_location.png new file mode 100644 index 0000000..6607cfc Binary files /dev/null and b/plots/3C109_x3mc010/3C109_FOC_errors_background_location.png differ diff --git a/plots/3C109_x3mc010/3C109_FOC_gaussian_FWHM2.png b/plots/3C109_x3mc010/3C109_FOC_gaussian_FWHM2.png new file mode 100644 index 0000000..83e61e9 Binary files /dev/null and b/plots/3C109_x3mc010/3C109_FOC_gaussian_FWHM2.png differ diff --git a/plots/3C109_x3mc010/3C109_FOC_gaussian_FWHM2_P.png b/plots/3C109_x3mc010/3C109_FOC_gaussian_FWHM2_P.png new file mode 100644 index 0000000..dc159f8 Binary files /dev/null and b/plots/3C109_x3mc010/3C109_FOC_gaussian_FWHM2_P.png differ diff --git a/plots/3C109_x3mc010/3C109_FOC_gaussian_FWHM2_P_err.png b/plots/3C109_x3mc010/3C109_FOC_gaussian_FWHM2_P_err.png new file mode 100644 index 0000000..503271b Binary files /dev/null and b/plots/3C109_x3mc010/3C109_FOC_gaussian_FWHM2_P_err.png differ diff --git a/plots/3C109_x3mc010/3C109_FOC_gaussian_FWHM2_rot.png b/plots/3C109_x3mc010/3C109_FOC_gaussian_FWHM2_rot.png new file mode 100644 index 0000000..5dd21e4 Binary files /dev/null and b/plots/3C109_x3mc010/3C109_FOC_gaussian_FWHM2_rot.png differ diff --git a/plots/3C109_x3mc010/3C109_FOC_gaussian_FWHM2_rot_P.png b/plots/3C109_x3mc010/3C109_FOC_gaussian_FWHM2_rot_P.png new file mode 100644 index 0000000..50a19ca Binary files /dev/null and b/plots/3C109_x3mc010/3C109_FOC_gaussian_FWHM2_rot_P.png differ diff --git a/plots/3C109_x3mc010/3C109_FOC_gaussian_FWHM2_rot_P_err.png b/plots/3C109_x3mc010/3C109_FOC_gaussian_FWHM2_rot_P_err.png new file mode 100644 index 0000000..fe1b14a Binary files /dev/null and b/plots/3C109_x3mc010/3C109_FOC_gaussian_FWHM2_rot_P_err.png differ diff --git a/src/FOC_reduction.py b/src/FOC_reduction.py index 5efb6da..117fa83 100755 --- a/src/FOC_reduction.py +++ b/src/FOC_reduction.py @@ -16,11 +16,11 @@ import lib.plots as proj_plots #Functions for plotting data def main(): ##### User inputs ## Input and output locations - globals()['data_folder'] = "../data/NGC1068_x274020/" - infiles = ['x274020at.c0f.fits','x274020bt.c0f.fits','x274020ct.c0f.fits', - 'x274020dt.c0f.fits','x274020et.c0f.fits','x274020ft.c0f.fits', - 'x274020gt.c0f.fits','x274020ht.c0f.fits','x274020it.c0f.fits'] - globals()['plots_folder'] = "../plots/NGC1068_x274020/" +# globals()['data_folder'] = "../data/NGC1068_x274020/" +# infiles = ['x274020at.c0f.fits','x274020bt.c0f.fits','x274020ct.c0f.fits', +# 'x274020dt.c0f.fits','x274020et.c0f.fits','x274020ft.c0f.fits', +# 'x274020gt.c0f.fits','x274020ht.c0f.fits','x274020it.c0f.fits'] +# globals()['plots_folder'] = "../plots/NGC1068_x274020/" # globals()['data_folder'] = "../data/NGC1068_x14w010/" # infiles = ['x14w0101t_c0f.fits','x14w0102t_c0f.fits','x14w0103t_c0f.fits', @@ -42,6 +42,10 @@ def main(): # 'x43w0109r_c0f.fits', 'x43w0203r_c0f.fits', 'x43w0206r_c0f.fits'] # globals()['plots_folder'] = "../plots/CygnusA_x43w0/" + globals()['data_folder'] = "../data/3C109_x3mc010/" + infiles = ['x3mc0101m_c0f.fits','x3mc0102m_c0f.fits','x3mc0103m_c0f.fits'] + globals()['plots_folder'] = "../plots/3C109_x3mc010/" + ## Reduction parameters # Deconvolution deconvolve = False @@ -52,7 +56,7 @@ def main(): psf_shape=(9,9) iterations = 5 # Error estimation - error_sub_shape = (50,50) + error_sub_shape = (100,100) display_error = False # Data binning rebin = True @@ -61,18 +65,18 @@ def main(): px_scale = 'arcsec' #pixel or arcsec rebin_operation = 'sum' #sum or average # Alignement - align_center = 'maxflux' #If None will align image to image center + align_center = 'image' #If None will align image to image center display_data = False # Smoothing - smoothing_function = 'combine' #gaussian or combine + smoothing_function = 'gaussian' #gaussian or combine smoothing_FWHM = 2 #If None, no smoothing is done smoothing_scale = 'pixel' #pixel or arcsec # Rotation - rotate = True #rotation to North convention can give erroneous results + rotate = False #rotation to North convention can give erroneous results rotate_library = 'scipy' #scipy or pillow # Polarization map output - figname = 'NGC1068_FOC' #target/intrument name - figtype = '_combine_FWHM2_rot2' #additionnal informations + figname = '3C109_FOC' #target/intrument name + figtype = '_gaussian_FWHM2' #additionnal informations SNRp_cut = 3 #P measurments with SNR>3 SNRi_cut = 30 #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