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

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

moved dead time correction to before the solid angle correction, so that the dead time would be correcting counts, not counts per solid angle

added a routine to kill all of the waves and folders possible, if the overall DF kill failed. This is to prevent stray folders and waves from being present if different data files are loaded - since different data blocks are present for say, 3He data, data with temperature logging, etc.
This kill routine is used every time, before raw data is loaded, DIV or MASK loaded, or data is converted to WORK.

changed the "Save I(q)" button on the data display panel to save as ITX format, since the data has not been processed, and data can more easily be used for trimming input.

picking protocols in dialogs now excludes/includes appropriate waves

menus are consolidated

Fixed bug in SANS macros where the DRK[] item in the protocol could be null, and force the read of a DRK file, even if it was not desired.

  • Property svn:executable set to *
File size: 3.3 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        End
28        Submenu "Work Files"
29                "Convert to WORK",V_Convert_to_Workfile()
30                "Load Fake DIV Data"
31                "DIV a work file",V_DIV_a_Workfile()
32                "Load Fake MASK Data"
33                "Correct Data",V_CorrectData()
34        End
35        SubMenu "Nexus File RW"
36//              "Fill_Nexus_V_Template"
37//              "Save_Nexus_V_Template"
38//              "Load_Nexus_V_Template"
39//              "-"
40//              "IgorOnly_Setup_VSANS_Struct"
41//              "IgorOnly_Save_VSANS_Nexus"
42//              "IgorOnly_Setup_SANS_Struct"
43//              "IgorOnly_Save_SANS_Struct"
44                "Setup_VSANS_DIV_Struct"
45                "Save_VSANS_DIV_Nexus"
46                "Setup_VSANS_MASK_Struct"
47                "Save_VSANS_MASK_Nexus"
48                "-"
49                "Read_Nexus with attributes",Read_Nexus_Xref()          //this will read with attributes
50                "Write_Nexus with attributes",Write_Nexus_Xref()                                //this will write out with attributes if read in by Read_Nexus_Xref
51                "-"
52                "Dump_V_getFP"
53                "Dump_V_getFP_Det"
54                "Dump_V_getSTR"
55                "Dump_V_getSTR_Det"
56        End
57       
58End
59
60
61//
62Menu "SANS"
63        "Initialize"
64        "SANS Help"
65        "-"
66        "Main Control Panel",DoWindow/F Main_Panel
67        "SASCALC"
68        "-"
69        Submenu "Data Display"
70                "Show 2D SANS Data",DoWindow/F SANS_Data
71                "Show File Table",ShowCatWindow()
72        End
73        Submenu "Input Panels"
74                "Calculate Transmissions",CalcTrans()
75                "Build Reduction Protocols",ReductionProtocolPanel()
76                "Reduce Multiple Files",ReduceMultipleFiles()
77                "Patch Files",PatchFiles()
78                "1D Average",ShowAveragePanel()         
79        End
80        Submenu "1-D Processing"
81                "Load and Plot 1D Data",Show_Plot_Manager()
82                "Open FIT Panel",OpenFITPanel()
83                "Sort and Combine data",ShowNSORTPanel()
84//              "Subtract 1D Data Sets",OpenSubtract1DPanel()
85                "ReWrite Experimental Data",MakeDMPanel()               //,ReWrite1DData()      // SRK SEP10
86                "1D Arithmetic Panel",MakeDAPanel()
87                "ReBin 1D Data",OpenRebin()
88        End
89        Submenu "2-D Processing"
90                "2D Work file Math",Show_WorkMath_Panel()
91                "Tile Raw 2D files",Show_Tile_2D_Panel()
92                "Export 2D ASCII data",Export_RAW_Ascii_Panel()
93                "Bin QxQy Data to 1D",BinQxQy_to_1D()
94        End
95        Submenu "Event Processing"
96                "Event Mode Process Panel",Show_Event_Panel()
97                "Adjust Events",ShowEventCorrectionPanel()
98                "Create Custom Bins",Show_CustomBinPanel()
99                "-"
100                "Split Large File",SplitBigFile()
101                "Accumulate First Slice",AccumulateSlices(0)
102                "Add Current Slice",AccumulateSlices(1)
103                "Display Accumulated Slices",AccumulateSlices(2)       
104        End
105        "-"
106        "NCNR Preferences",Show_Preferences_Panel()
107        "Feedback or Bug Report",OpenTracTicketPage()
108        "Open Help Movie Page",OpenHelpMoviePage()
109        "Check for Updates",CheckForLatestVersion()
110//      Submenu "Utility Routines"
111//              "Clear Work Folders"
112//              "Clear Root Folder"
113//      End
114End
115
116Function VSANSHelp()
117        DisplayHelpTopic/Z/K=1 "VSANS Data Reduction Tutorial"
118        if(V_flag !=0)
119                DoAlert 0,"The VSANS Data Reduction Tutorial Help file could not be found, because it has not yet been written"
120        endif
121End
Note: See TracBrowser for help on using the repository browser.