Ignore:
Timestamp:
Feb 10, 2016 3:19:54 PM (7 years ago)
Author:
srkline
Message:

more additions to start the work file flow of converting RAW folder to a WORK folder. Raw_to_Work will be the function that sequentially applies the corrections. All corrections can be turned on/off with preferences.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_VSANS_Preferences.ipf

    r977 r979  
    6666         
    6767        // flags to turn detector corrections on/off for testing (you should leave these ON) 
    68         val = NumVarOrDefault("root:Packages:NIST:VSANS:Globals:gDoDetectorEffCorr", 1 ) 
    69         Variable/G root:Packages:NIST:VSANS:Globals:gDoDetectorEffCorr = 1 
    70          
    71         val = NumVarOrDefault("root:Packages:NIST:VSANS:Globals:gDoTransmissionCorr", 1 ) 
    72         Variable/G root:Packages:NIST:VSANS:Globals:gDoTransmissionCorr = 1 
     68        val = NumVarOrDefault("root:Packages:NIST:VSANS:Globals:gDoDetectorEffCor", 1 ) 
     69        Variable/G root:Packages:NIST:VSANS:Globals:gDoDetectorEffCor = 1 
     70         
     71        val = NumVarOrDefault("root:Packages:NIST:VSANS:Globals:gDoTransmissionCor", 1 ) 
     72        Variable/G root:Packages:NIST:VSANS:Globals:gDoTransmissionCor = 1 
     73 
     74        val = NumVarOrDefault("root:Packages:NIST:VSANS:Globals:gDoDIVCor", 1 ) 
     75        Variable/G root:Packages:NIST:VSANS:Globals:gDoDIVCor = 1 
     76         
     77        val = NumVarOrDefault("root:Packages:NIST:VSANS:Globals:gDoDeadTimeCor", 1 ) 
     78        Variable/G root:Packages:NIST:VSANS:Globals:gDoDeadTimeCor = 1 
     79 
     80        val = NumVarOrDefault("root:Packages:NIST:VSANS:Globals:gDoSolidAngleCor", 1 ) 
     81        Variable/G root:Packages:NIST:VSANS:Globals:gDoSolidAngleCor = 1 
     82 
     83        val = NumVarOrDefault("root:Packages:NIST:VSANS:Globals:gDoNonLinearCor", 1 ) 
     84        Variable/G root:Packages:NIST:VSANS:Globals:gDoNonLinearCor = 1 
     85 
     86        val = NumVarOrDefault("root:Packages:NIST:VSANS:Globals:gDoTubeShadowCor", 1 ) 
     87        Variable/G root:Packages:NIST:VSANS:Globals:gDoTubeShadowCor = 1 
     88         
     89 
    7390 
    7491// flag to allow adding raw data files with different attenuation (normally not done)    
     
    141158End 
    142159 
     160Function V_DoDIVCorPref(ctrlName,checked) : CheckBoxControl 
     161        String ctrlName 
     162        Variable checked 
     163         
     164        NVAR gVal = root:Packages:NIST:VSANS:Globals:gDoDIVCor 
     165        gVal = checked 
     166End 
     167 
     168Function V_DoDeadTimeCorPref(ctrlName,checked) : CheckBoxControl 
     169        String ctrlName 
     170        Variable checked 
     171         
     172        NVAR gVal = root:Packages:NIST:VSANS:Globals:gDoDeadTimeCor 
     173        gVal = checked 
     174End 
     175 
     176Function V_DoSolidAngleCorPref(ctrlName,checked) : CheckBoxControl 
     177        String ctrlName 
     178        Variable checked 
     179         
     180        NVAR gVal = root:Packages:NIST:VSANS:Globals:gDoSolidAngleCor 
     181        gVal = checked 
     182End 
     183 
     184Function V_DoNonLinearCorPref(ctrlName,checked) : CheckBoxControl 
     185        String ctrlName 
     186        Variable checked 
     187         
     188        NVAR gVal = root:Packages:NIST:VSANS:Globals:gDoNonLinearCor 
     189        gVal = checked 
     190End 
     191 
     192Function V_DoTubeShadowCorPref(ctrlName,checked) : CheckBoxControl 
     193        String ctrlName 
     194        Variable checked 
     195         
     196        NVAR gVal = root:Packages:NIST:VSANS:Globals:gDoTubeShadowCor 
     197        gVal = checked 
     198End 
     199 
    143200Function V_PrefDoneButtonProc(ctrlName) : ButtonControl 
    144201        String ctrlName 
     
    146203        DoWindow/K VSANSPref_Panel 
    147204End 
     205 
    148206 
    149207Proc VSANSPref_Panel() 
     
    151209        NewPanel /W=(646,208,1070,468)/K=2 as "VSANS Preference Panel" 
    152210        DoWindow/C VSANSPref_Panel 
    153         ModifyPanel cbRGB=(49694,61514,27679) 
     211        ModifyPanel cbRGB=(47748,57192,54093) 
    154212        SetDrawLayer UserBack 
    155213        ModifyPanel fixedSize=1 
     
    161219        TabControl PrefTab,tabLabel(1)="VSANS",tabLabel(2)="Analysis" 
    162220        TabControl PrefTab,value=1 
    163         TabControl PrefTab labelBack=(49694,61514,27679) 
     221        TabControl PrefTab labelBack=(47748,57192,54093) 
    164222         
    165223//on tab(0) - General 
     
    185243        SetVariable PrefCtrl_1e,pos={21,195},size={200,15},title="# Phi Steps (annular avg)" 
    186244        SetVariable PrefCtrl_1e,limits={1,360,1},value= root:Packages:NIST:VSANS:Globals:gNPhiSteps 
    187         CheckBox PrefCtrl_1f title="Do Transmssion Correction?",size={140,14},value=root:Packages:NIST:VSANS:Globals:gDoTransmissionCorr,proc=V_DoTransCorrPref 
     245        CheckBox PrefCtrl_1f title="Do Transmssion Correction?",size={140,14},value=root:Packages:NIST:VSANS:Globals:gDoTransmissionCor,proc=V_DoTransCorrPref 
    188246        CheckBox PrefCtrl_1f pos={255,100},help={"TURN OFF ONLY FOR DEBUGGING. This corrects the data for angle dependent transmssion."} 
    189247        CheckBox PrefCtrl_1g title="Do Efficiency Correction?",size={140,14},proc=V_DoEfficiencyCorrPref 
    190         CheckBox PrefCtrl_1g value=root:Packages:NIST:VSANS:Globals:gDoDetectorEffCorr,pos={255,120},help={"TURN OFF ONLY FOR DEBUGGING. This corrects the data for angle dependent detector efficiency."} 
     248        CheckBox PrefCtrl_1g value=root:Packages:NIST:VSANS:Globals:gDoDetectorEffCor,pos={255,120},help={"TURN OFF ONLY FOR DEBUGGING. This corrects the data for angle dependent detector efficiency."} 
    191249//      CheckBox PrefCtrl_1h title="Adjust RAW attenuation?",size={140,14},proc=V_DoRawAttenAdjPref 
    192250//      CheckBox PrefCtrl_1h value=root:Packages:NIST:VSANS:Globals:gDoAdjustRAW_Atten,pos={255,140},help={"This is normally not done"} 
    193251 
     252        CheckBox PrefCtrl_1i title="Do DIV Correction?",size={140,14},proc=V_DoDIVCorPref 
     253        CheckBox PrefCtrl_1i value=root:Packages:NIST:VSANS:Globals:gDoDIVCor,pos={255,140},help={"TURN OFF ONLY FOR DEBUGGING."} 
     254        CheckBox PrefCtrl_1j title="Do DeadTime Correction?",size={140,14},proc=V_DoDeadTimeCorPref 
     255        CheckBox PrefCtrl_1j value=root:Packages:NIST:VSANS:Globals:gDoDeadTimeCor,pos={255,160},help={"TURN OFF ONLY FOR DEBUGGING."}   
     256        CheckBox PrefCtrl_1k title="Do Solid Angle Correction?",size={140,14},proc=V_DoSolidAngleCorPref 
     257        CheckBox PrefCtrl_1k value=root:Packages:NIST:VSANS:Globals:gDoSolidAngleCor,pos={255,180},help={"TURN OFF ONLY FOR DEBUGGING."} 
     258        CheckBox PrefCtrl_1l title="Do Non-linear Correction?",size={140,14},proc=V_DoNonLinearCorPref 
     259        CheckBox PrefCtrl_1l value=root:Packages:NIST:VSANS:Globals:gDoNonLinearCor,pos={255,200},help={"TURN OFF ONLY FOR DEBUGGING."} 
     260        CheckBox PrefCtrl_1m title="Do Tube Shadow Correction?",size={140,14},proc=V_DoTubeShadowCorPref 
     261        CheckBox PrefCtrl_1m value=root:Packages:NIST:VSANS:Globals:gDoTubeShadowCor,pos={255,220},help={"TURN OFF ONLY FOR DEBUGGING."} 
     262         
    194263//      CheckBox PrefCtrl_1a,disable=1 
    195264//      CheckBox PrefCtrl_1b,disable=1 
Note: See TracChangeset for help on using the changeset viewer.