% PROGRAM PPLOAD_06_04_06
%
%    Load data taken with PCO 2000 CCD camera using white light source
%    and pepperpot mesh.  The 'ppim' arrays give the mean PepperPot IMage
%    data; the 'stdm' arrays give the STandard Deviation of the 50 images
%    for each pixel; the 'pphist' arrays contain the PepperPot HISTogram
%    data for each image.  Data is loaded from the '06_04_06' directory.
%
%    Data files used:
%
%    4ms_10MHz_2ADC_f8_firstrun_50.tif
%    4ms_10MHz_2ADC_f2-8_stripes_50.tif
%    500ns_10MHz_2ADC_f2-8_smear_50.tif
%    500ns_10MHz_2ADC_f2-8_smear_min_50.tif
%    4ms_10MHz_2ADC_f8_holepos_50.tif
%    4ms_10MHz_2ADC_f8_shortfocus_50.tif
%    4ms_10MHz_2ADC_f8_deepfocus_50.tif
%    4ms_10MHz_2ADC_f2-8_shortfocus_50.tif
%    4ms_10MHz_2ADC_f2-8_deepfocus_50.tif
%    500ns_10MHz_2ADC_f2-8_smear_re-mes_50.tif
%    4ms_10MHz_2ADC_f8_cam-mid_50.tif
%    4ms_10MHz_2ADC_f8_cam-in_50.tif
%    4ms_10MHz_2ADC_f8_cam-back_50.tif
%
%    For more information on the images recorded, see the associated
%    'Image_details.txt' file.

%    Initial image taken of screen with 4ms exposure, f8 aperture, giving
%    full range

    [ppim_fr,stdm_fr,pphist_fr] = pepperplotfun('E:\pepperpot\06_04_06\4ms_10MHz_2ADC_f8_firstrun_50.tif',0,0) ;

%    Over exposed image of screen using f2.8 aperture to pick up smear

    [ppim_oe,stdm_oe,pphist_oe] = pepperplotfun('E:\pepperpot\06_04_06\4ms_10MHz_2ADC_f2-8_stripes_50.tif',0,0) ;

%    f2.8 aperture with 500ns exposure to measure smear

    [ppim_smear,stdm_smear,pphist_smear] = pepperplotfun('E:\pepperpot\06_04_06\500ns_10MHz_2ADC_f2-8_smear_50.tif',0,0) ;

%    New smear measurement with 500ns exposure using tilted screen

    [ppim_smin,stdm_smin,pphist_smin] = pepperplotfun('E:\pepperpot\06_04_06\500ns_10MHz_2ADC_f2-8_smear_min_50.tif',0,0) ;

%    New 4ms exposure with f8 aperture (full range) to measure hole
%    positions with new tilted screen

    [ppim_hp,stdm_hp,pphist_hp] = pepperplotfun('E:\pepperpot\06_04_06\4ms_10MHz_2ADC_f8_holepos_50.tif',0,0) ;

%    Camera lens out of focus (too short) using standard settings

    [ppim_sf,stdm_sf,pphist_sf] = pepperplotfun('E:\pepperpot\06_04_06\4ms_10MHz_2ADC_f8_shortfocus_50.tif',0,0) ;

%    Camera lens out of focus (too long) using standard settings

    [ppim_df,stdm_df,pphist_df] = pepperplotfun('E:\pepperpot\06_04_06\4ms_10MHz_2ADC_f8_deepfocus_50.tif',0,0) ;

%    Camera lens out of focus (too short) using over exposure

    [ppim_sfoe,stdm_sfoe,pphist_sfoe] = pepperplotfun('E:\pepperpot\06_04_06\4ms_10MHz_2ADC_f2-8_shortfocus_50.tif',0,0) ;

%    Camera lens out of focus (too long) using standard settings

    [ppim_dfoe,stdm_dfoe,pphist_dfoe] = pepperplotfun('E:\pepperpot\06_04_06\4ms_10MHz_2ADC_f2-8_deepfocus_50.tif',0,0) ;

%    Re-measurement of minimised smear with correct focus, 500ns exposure
%    and f2.8 aperture

    [ppim_smfoc,stdm_smfoc,pphist_smfoc] = pepperplotfun('E:\pepperpot\06_04_06\500ns_10MHz_2ADC_f2-8_smear_re-mes_50.tif',0,0) ;

%    Standard settings with camera wound into mid position

    [ppim_mid,stdm_mid,pphist_mid] = pepperplotfun('E:\pepperpot\06_04_06\4ms_10MHz_2ADC_f8_cam-mid_50.tif',0,0) ;

%    Standard settings with camera wound all the way in

    [ppim_in,stdm_in,pphist_in] = pepperplotfun('E:\pepperpot\06_04_06\4ms_10MHz_2ADC_f8_cam-in_50.tif',0,0) ;

%    Standard settings with camera wound back into furthest position
%    (original position)

    [ppim_back,stdm_back,pphist_back] = pepperplotfun('E:\pepperpot\06_04_06\4ms_10MHz_2ADC_f8_cam-back_50.tif',0,0) ;

    return

