source: sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_Menu.ipf @ 1074

Last change on this file since 1074 was 1073, checked in by srkline, 5 years ago

lots of changes here:
many little fixes to clean up TODO items and marke them DONE

changed the handling of the panel "gap" to split the gap evenly. Q-calculations have been re-verified with this change.

re-named the list of "bin Type" values, and added a few more choices. Streamlined how the averaging and plotting works with this list so that it can be more easily modified as different combinations of binning are envisioned. This resulted in a lot of excess code being cut out and replaced with cleaner logic. This change has also been verified to work as intended.

Attenuation is now always calculated from the table. The table also by (NEW) definition has values for the white beam (one waelength) and graphite (multiple possible wavelengths) where the wavelengths are artificially scaled (*1000) or *1e6) so that the interpolations can be done internally without the need for multiple attenuator tables.

  • Property svn:executable set to *
File size: 3.7 KB
Line 
1#pragma rtGlobals=1             // Use modern global access method.
2#pragma version=5.0
3#pragma IgorVersion=6.1
4
5
6//**************************
7// Vers 1.2 091901
8//
9//****************************
10//
11
12
13Menu "VSANS"
14        "Initialize",Initialize_VSANS()
15        "VSANS Help"
16        "-"
17        "Main Control Panel",DoWindow/F Main_VSANS_Panel
18        "Data Display",DoWindow/F VSANS_Data
19        "VCALC",VCALC_Panel()
20        "-"
21        Submenu "In Progress Panels"
22                "VSANS Preferences",Show_VSANSPreferences_Panel()
23                "Beam Center Panel",V_FindBeamCenter()
24                "Patch Beam Center XY",V_PatchDet_xyCenters_Panel()
25                "Patch Detector Deadtime",V_PatchDetectorDeadtimePanel()
26                "Patch Detector Calibration",V_PatchDetectorCalibrationPanel()
27                "-"
28                "Annular Binning",Annular_Binning()
29                "Write Annular Data",V_Write1DAnnular()
30        End
31        Submenu "Work Files"
32                "Convert to WORK",V_Convert_to_Workfile()
33                "Load Fake DIV Data"
34                "DIV a work file",V_DIV_a_Workfile()
35                "Load Fake MASK Data"
36                "Correct Data",V_CorrectData()
37        End
38        SubMenu "Nexus File RW"
39//              "Fill_Nexus_V_Template"
40//              "Save_Nexus_V_Template"
41//              "Load_Nexus_V_Template"
42//              "-"
43//              "IgorOnly_Setup_VSANS_Struct"
44//              "IgorOnly_Save_VSANS_Nexus"
45//              "IgorOnly_Setup_SANS_Struct"
46//              "IgorOnly_Save_SANS_Struct"
47                "Copy_VCALC_to_VSANSFile",Copy_VCALC_to_VSANSFile()
48                "Flip Lateral Offset",V_PatchDet_Offset()
49                "Patch GroupID using CatTable",V_Patch_GroupID_catTable()
50                "Patch Purpose using CatTable",V_Patch_Purpose_catTable()
51                "Patch Intent using CatTable",V_Patch_Intent_catTable()
52                "-"
53                "Setup_VSANS_DIV_Struct"
54                "Save_VSANS_DIV_Nexus"
55                "Setup_VSANS_MASK_Struct"
56                "Save_VSANS_MASK_Nexus"
57                "-"
58                "Read_Nexus with attributes",Read_Nexus_Xref()          //this will read with attributes
59                "Write_Nexus with attributes",Write_Nexus_Xref()                                //this will write out with attributes if read in by Read_Nexus_Xref
60                "-"
61                "Dump_V_getFP"
62                "Dump_V_getFP_Det"
63                "Dump_V_getSTR"
64                "Dump_V_getSTR_Det"
65        End
66       
67End
68
69
70//
71xMenu "SANS"
72        "Initialize"
73        "SANS Help"
74        "-"
75        "Main Control Panel",DoWindow/F Main_Panel
76        "SASCALC"
77        "-"
78        Submenu "Data Display"
79                "Show 2D SANS Data",DoWindow/F SANS_Data
80                "Show File Table",ShowCatWindow()
81        End
82        Submenu "Input Panels"
83                "Calculate Transmissions",CalcTrans()
84                "Build Reduction Protocols",ReductionProtocolPanel()
85                "Reduce Multiple Files",ReduceMultipleFiles()
86                "Patch Files",PatchFiles()
87                "1D Average",ShowAveragePanel()         
88        End
89        Submenu "1-D Processing"
90                "Load and Plot 1D Data",Show_Plot_Manager()
91                "Open FIT Panel",OpenFITPanel()
92                "Sort and Combine data",ShowNSORTPanel()
93//              "Subtract 1D Data Sets",OpenSubtract1DPanel()
94                "ReWrite Experimental Data",MakeDMPanel()               //,ReWrite1DData()      // SRK SEP10
95                "1D Arithmetic Panel",MakeDAPanel()
96                "ReBin 1D Data",OpenRebin()
97        End
98        Submenu "2-D Processing"
99                "2D Work file Math",Show_WorkMath_Panel()
100                "Tile Raw 2D files",Show_Tile_2D_Panel()
101                "Export 2D ASCII data",Export_RAW_Ascii_Panel()
102                "Bin QxQy Data to 1D",BinQxQy_to_1D()
103        End
104        Submenu "Event Processing"
105                "Event Mode Process Panel",Show_Event_Panel()
106                "Adjust Events",ShowEventCorrectionPanel()
107                "Create Custom Bins",Show_CustomBinPanel()
108                "-"
109                "Split Large File",SplitBigFile()
110                "Accumulate First Slice",AccumulateSlices(0)
111                "Add Current Slice",AccumulateSlices(1)
112                "Display Accumulated Slices",AccumulateSlices(2)       
113        End
114        "-"
115        "NCNR Preferences",Show_Preferences_Panel()
116        "Feedback or Bug Report",OpenTracTicketPage()
117        "Open Help Movie Page",OpenHelpMoviePage()
118        "Check for Updates",CheckForLatestVersion()
119//      Submenu "Utility Routines"
120//              "Clear Work Folders"
121//              "Clear Root Folder"
122//      End
123End
124
125Function VSANSHelp()
126        DisplayHelpTopic/Z/K=1 "VSANS Data Reduction Tutorial"
127        if(V_flag !=0)
128                DoAlert 0,"The VSANS Data Reduction Tutorial Help file could not be found, because it has not yet been written"
129        endif
130End
Note: See TracBrowser for help on using the repository browser.