diff --git a/data/MKN463_x2rp030/README.md b/data/MKN463_x2rp030/README.md new file mode 100644 index 0000000..cd56eed --- /dev/null +++ b/data/MKN463_x2rp030/README.md @@ -0,0 +1,5 @@ +Observation data +Instrument : FOC +Proposal ID : 5960 +Target name : MKN 463 +Dataset : X2RP030 diff --git a/data/PGN1630377_x39510/README.md b/data/PGN1630377_x39510/README.md new file mode 100644 index 0000000..e822c86 --- /dev/null +++ b/data/PGN1630377_x39510/README.md @@ -0,0 +1,5 @@ +Observation data +Instrument : FOC +Proposal ID : 6618 +Target name : PGN1630+377 +Dataset : X39510 diff --git a/plots/MKN463_x2rp030/MKN463_FOC.png b/plots/MKN463_x2rp030/MKN463_FOC.png new file mode 100644 index 0000000..f87a69f Binary files /dev/null and b/plots/MKN463_x2rp030/MKN463_FOC.png differ diff --git a/plots/MKN463_x2rp030/MKN463_FOC_P.png b/plots/MKN463_x2rp030/MKN463_FOC_P.png new file mode 100644 index 0000000..62dc17c Binary files /dev/null and b/plots/MKN463_x2rp030/MKN463_FOC_P.png differ diff --git a/plots/MKN463_x2rp030/MKN463_FOC_P_err.png b/plots/MKN463_x2rp030/MKN463_FOC_P_err.png new file mode 100644 index 0000000..8e15887 Binary files /dev/null and b/plots/MKN463_x2rp030/MKN463_FOC_P_err.png differ diff --git a/plots/MKN463_x2rp030/MKN463_FOC_center_image.png b/plots/MKN463_x2rp030/MKN463_FOC_center_image.png new file mode 100644 index 0000000..cca7de9 Binary files /dev/null and b/plots/MKN463_x2rp030/MKN463_FOC_center_image.png differ diff --git a/plots/MKN463_x2rp030/MKN463_FOC_combine_FWHM2.png b/plots/MKN463_x2rp030/MKN463_FOC_combine_FWHM2.png new file mode 100644 index 0000000..1fec91c Binary files /dev/null and b/plots/MKN463_x2rp030/MKN463_FOC_combine_FWHM2.png differ diff --git a/plots/MKN463_x2rp030/MKN463_FOC_combine_FWHM2_P.png b/plots/MKN463_x2rp030/MKN463_FOC_combine_FWHM2_P.png new file mode 100644 index 0000000..cbb0359 Binary files /dev/null and b/plots/MKN463_x2rp030/MKN463_FOC_combine_FWHM2_P.png differ diff --git a/plots/MKN463_x2rp030/MKN463_FOC_combine_FWHM2_P_err.png b/plots/MKN463_x2rp030/MKN463_FOC_combine_FWHM2_P_err.png new file mode 100644 index 0000000..d3d57ab Binary files /dev/null and b/plots/MKN463_x2rp030/MKN463_FOC_combine_FWHM2_P_err.png differ diff --git a/plots/MKN463_x2rp030/MKN463_FOC_errors_background_flux.png b/plots/MKN463_x2rp030/MKN463_FOC_errors_background_flux.png new file mode 100644 index 0000000..f45ca57 Binary files /dev/null and b/plots/MKN463_x2rp030/MKN463_FOC_errors_background_flux.png differ diff --git a/plots/MKN463_x2rp030/MKN463_FOC_errors_background_location.png b/plots/MKN463_x2rp030/MKN463_FOC_errors_background_location.png new file mode 100644 index 0000000..255cceb Binary files /dev/null and b/plots/MKN463_x2rp030/MKN463_FOC_errors_background_location.png differ diff --git a/plots/MKN463_x2rp030/MKN463_FOC_rot.png b/plots/MKN463_x2rp030/MKN463_FOC_rot.png new file mode 100644 index 0000000..160f269 Binary files /dev/null and b/plots/MKN463_x2rp030/MKN463_FOC_rot.png differ diff --git a/plots/MKN463_x2rp030/MKN463_FOC_rot_P.png b/plots/MKN463_x2rp030/MKN463_FOC_rot_P.png new file mode 100644 index 0000000..c3fae8c Binary files /dev/null and b/plots/MKN463_x2rp030/MKN463_FOC_rot_P.png differ diff --git a/plots/MKN463_x2rp030/MKN463_FOC_rot_P_err.png b/plots/MKN463_x2rp030/MKN463_FOC_rot_P_err.png new file mode 100644 index 0000000..337676a Binary files /dev/null and b/plots/MKN463_x2rp030/MKN463_FOC_rot_P_err.png differ diff --git a/plots/PGN1630377_x39510/PGN1630+377_FOC_center_image.png b/plots/PGN1630377_x39510/PGN1630+377_FOC_center_image.png new file mode 100644 index 0000000..fa9f89e Binary files /dev/null and b/plots/PGN1630377_x39510/PGN1630+377_FOC_center_image.png differ diff --git a/plots/PGN1630377_x39510/PGN1630+377_FOC_errors_background_flux.png b/plots/PGN1630377_x39510/PGN1630+377_FOC_errors_background_flux.png new file mode 100644 index 0000000..5ad3892 Binary files /dev/null and b/plots/PGN1630377_x39510/PGN1630+377_FOC_errors_background_flux.png differ diff --git a/plots/PGN1630377_x39510/PGN1630+377_FOC_errors_background_location.png b/plots/PGN1630377_x39510/PGN1630+377_FOC_errors_background_location.png new file mode 100644 index 0000000..3a6b95d Binary files /dev/null and b/plots/PGN1630377_x39510/PGN1630+377_FOC_errors_background_location.png differ diff --git a/src/FOC_reduction.py b/src/FOC_reduction.py index 117fa83..e05c47d 100755 --- a/src/FOC_reduction.py +++ b/src/FOC_reduction.py @@ -42,9 +42,25 @@ 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/" +# globals()['data_folder'] = "../data/3C109_x3mc010/" +# infiles = ['x3mc0101m_c0f.fits','x3mc0102m_c0f.fits','x3mc0103m_c0f.fits'] +# globals()['plots_folder'] = "../plots/3C109_x3mc010/" + + globals()['data_folder'] = "../data/PGN1630377_x39510/" + infiles = ['x3990201m_c0f.fits', 'x3990205m_c0f.fits', 'x3995101r_c0f.fits', + 'x3995105r_c0f.fits', 'x3995109r_c0f.fits', 'x3995201r_c0f.fits', + 'x3995205r_c0f.fits', 'x3990202m_c0f.fits', 'x3990206m_c0f.fits', + 'x3995102r_c0f.fits', 'x3995106r_c0f.fits', 'x399510ar_c0f.fits', + 'x3995202r_c0f.fits','x3995206r_c0f.fits'] + globals()['plots_folder'] = "../plots/PGN1630377_x39510/" + +# globals()['data_folder'] = "../data/MKN463_x2rp030/" +# infiles = ['x2rp0201t_c0f.fits', 'x2rp0203t_c0f.fits', 'x2rp0205t_c0f.fits', +# 'x2rp0207t_c0f.fits', 'x2rp0302t_c0f.fits', 'x2rp0304t_c0f.fits', +# 'x2rp0306t_c0f.fits', 'x2rp0202t_c0f.fits', 'x2rp0204t_c0f.fits', +# 'x2rp0206t_c0f.fits', 'x2rp0301t_c0f.fits', 'x2rp0303t_c0f.fits', +# 'x2rp0305t_c0f.fits', 'x2rp0307t_c0f.fits'] +# globals()['plots_folder'] = "../plots/MKN463_x2rp030/" ## Reduction parameters # Deconvolution @@ -57,7 +73,7 @@ def main(): iterations = 5 # Error estimation error_sub_shape = (100,100) - display_error = False + display_error = True # Data binning rebin = True if rebin: @@ -66,17 +82,17 @@ def main(): rebin_operation = 'sum' #sum or average # Alignement align_center = 'image' #If None will align image to image center - display_data = False + display_data = True # Smoothing - smoothing_function = 'gaussian' #gaussian or combine - smoothing_FWHM = 2 #If None, no smoothing is done + smoothing_function = 'combine' #gaussian or combine + smoothing_FWHM = None #If None, no smoothing is done smoothing_scale = 'pixel' #pixel or arcsec # Rotation rotate = False #rotation to North convention can give erroneous results rotate_library = 'scipy' #scipy or pillow # Polarization map output - figname = '3C109_FOC' #target/intrument name - figtype = '_gaussian_FWHM2' #additionnal informations + figname = 'PGN1630+377_FOC' #target/intrument name + figtype = '' #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