[971] | 1 | #pragma rtGlobals=1 // Use modern global access method. |
---|
| 2 | #pragma version=5.0 |
---|
| 3 | #pragma IgorVersion=6.1 |
---|
| 4 | |
---|
| 5 | |
---|
[1095] | 6 | |
---|
[971] | 7 | // |
---|
| 8 | //**************************** |
---|
| 9 | // |
---|
| 10 | |
---|
| 11 | |
---|
| 12 | Menu "VSANS" |
---|
| 13 | "Initialize",Initialize_VSANS() |
---|
| 14 | "VSANS Help" |
---|
| 15 | "-" |
---|
| 16 | "Main Control Panel",DoWindow/F Main_VSANS_Panel |
---|
[982] | 17 | "Data Display",DoWindow/F VSANS_Data |
---|
[971] | 18 | "VCALC",VCALC_Panel() |
---|
[1081] | 19 | "VSANS Preferences",Show_VSANSPreferences_Panel() |
---|
[971] | 20 | "-" |
---|
[1108] | 21 | Submenu "Data Panels" |
---|
[1021] | 22 | "Patch Beam Center XY",V_PatchDet_xyCenters_Panel() |
---|
| 23 | "Patch Detector Deadtime",V_PatchDetectorDeadtimePanel() |
---|
[1022] | 24 | "Patch Detector Calibration",V_PatchDetectorCalibrationPanel() |
---|
[1056] | 25 | "-" |
---|
[1146] | 26 | "Display Temperature Sensors",V_InitSensorGrapn() |
---|
| 27 | "-" |
---|
[1126] | 28 | "Show Mask for Averaging",V_Display_Four_Panels() |
---|
[1144] | 29 | // "Annular Binning",Annular_Binning() |
---|
| 30 | // "Write Annular Data",V_Write1DAnnular() |
---|
| 31 | // "Trim I(q) points",V_CombineDataGraph() |
---|
[1083] | 32 | "-" |
---|
[1141] | 33 | "Derive Beam Centers From Reference",V_DeriveBeamCenters() |
---|
[1108] | 34 | "-" |
---|
| 35 | "Back Detector Saturation",Vm_NumberSaturated() |
---|
[1112] | 36 | "Median Filter Back Det",pV_MedianFilterBack() |
---|
| 37 | "Subtract Read Noise",pV_SubtractReadNoiseBack() |
---|
| 38 | "Median+Read Noise",pV_MedianAndReadNoiseBack() |
---|
[971] | 39 | End |
---|
[1095] | 40 | SubMenu "Nexus File Corrections" |
---|
[1108] | 41 | "Patch GroupID using CatTable",V_Patch_GroupID_catTable() |
---|
| 42 | "Patch Purpose using CatTable",V_Patch_Purpose_catTable() |
---|
| 43 | "Patch Intent using CatTable",V_Patch_Intent_catTable() |
---|
| 44 | "-" |
---|
[1144] | 45 | // "Flip Lateral Offset",V_PatchDet_Offset() |
---|
| 46 | // "Mark Lateral Flip Done",V_MarkLeftRightFlip_Done() |
---|
| 47 | // "Mark Lateral Flip NOT Done",V_MarkLeftRightFlip_Not_Done() |
---|
| 48 | // "Patch Detector Panel Gap",V_PatchDet_Gap() |
---|
| 49 | // "Read Detetcor Panel Gap",V_ReadDet_Gap() |
---|
[1083] | 50 | "Patch Detector Distance",V_PatchDet_Distance() |
---|
[1118] | 51 | "Patch XY Pixel Size",V_Patch_XYPixelSize() |
---|
[1095] | 52 | "-" |
---|
[1093] | 53 | "Patch Back Detector Values",V_Patch_Back_Detector() |
---|
[1141] | 54 | "Patch NumberOfGuides_SSD_Aperture ",V_Patch_Guide_SSD_Aperture() |
---|
| 55 | "Patch Beam Stop",V_Patch_BeamStop() |
---|
[1095] | 56 | End |
---|
| 57 | SubMenu "File Tests" |
---|
| 58 | "Copy_VCALC_to_VSANSFile",Copy_VCALC_to_VSANSFile() |
---|
[1051] | 59 | "-" |
---|
[1042] | 60 | "Read_Nexus with attributes",Read_Nexus_Xref() //this will read with attributes |
---|
| 61 | "Write_Nexus with attributes",Write_Nexus_Xref() //this will write out with attributes if read in by Read_Nexus_Xref |
---|
| 62 | "-" |
---|
[1108] | 63 | "Beam Center Panel",V_FindBeamCenter() |
---|
| 64 | "Save I(Q) as ITX",Vm_Write1DData_ITX() |
---|
| 65 | // |
---|
| 66 | // "Setup_VSANS_DIV_Struct" |
---|
| 67 | // "Save_VSANS_DIV_Nexus" |
---|
| 68 | // "Setup_VSANS_MASK_Struct" |
---|
| 69 | // "Save_VSANS_MASK_Nexus" |
---|
| 70 | // "-" |
---|
| 71 | // "Dump_V_getFP" |
---|
| 72 | // "Dump_V_getFP_Det" |
---|
| 73 | // "Dump_V_getSTR" |
---|
| 74 | // "Dump_V_getSTR_Det" |
---|
[1095] | 75 | // "Fill_Nexus_V_Template" |
---|
| 76 | // "Save_Nexus_V_Template" |
---|
| 77 | // "Load_Nexus_V_Template" |
---|
| 78 | // "-" |
---|
| 79 | // "IgorOnly_Setup_VSANS_Struct" |
---|
| 80 | // "IgorOnly_Save_VSANS_Nexus" |
---|
| 81 | // "IgorOnly_Setup_SANS_Struct" |
---|
| 82 | // "IgorOnly_Save_SANS_Struct" |
---|
[1042] | 83 | End |
---|
[1108] | 84 | // Submenu "Work File Operations" |
---|
| 85 | // "Convert to WORK",V_Convert_to_Workfile() |
---|
| 86 | // "Load Fake DIV Data" |
---|
| 87 | // "DIV a work file",V_DIV_a_Workfile() |
---|
| 88 | // "Load Fake MASK Data" |
---|
| 89 | // "Correct Data",V_CorrectData() |
---|
| 90 | // End |
---|
[971] | 91 | End |
---|
| 92 | |
---|
| 93 | |
---|
| 94 | // |
---|
[1073] | 95 | xMenu "SANS" |
---|
[971] | 96 | "Initialize" |
---|
| 97 | "SANS Help" |
---|
| 98 | "-" |
---|
| 99 | "Main Control Panel",DoWindow/F Main_Panel |
---|
| 100 | "SASCALC" |
---|
| 101 | "-" |
---|
| 102 | Submenu "Data Display" |
---|
| 103 | "Show 2D SANS Data",DoWindow/F SANS_Data |
---|
| 104 | "Show File Table",ShowCatWindow() |
---|
| 105 | End |
---|
| 106 | Submenu "Input Panels" |
---|
| 107 | "Calculate Transmissions",CalcTrans() |
---|
| 108 | "Build Reduction Protocols",ReductionProtocolPanel() |
---|
| 109 | "Reduce Multiple Files",ReduceMultipleFiles() |
---|
| 110 | "Patch Files",PatchFiles() |
---|
| 111 | "1D Average",ShowAveragePanel() |
---|
| 112 | End |
---|
| 113 | Submenu "1-D Processing" |
---|
| 114 | "Load and Plot 1D Data",Show_Plot_Manager() |
---|
| 115 | "Open FIT Panel",OpenFITPanel() |
---|
| 116 | "Sort and Combine data",ShowNSORTPanel() |
---|
| 117 | // "Subtract 1D Data Sets",OpenSubtract1DPanel() |
---|
| 118 | "ReWrite Experimental Data",MakeDMPanel() //,ReWrite1DData() // SRK SEP10 |
---|
| 119 | "1D Arithmetic Panel",MakeDAPanel() |
---|
| 120 | "ReBin 1D Data",OpenRebin() |
---|
| 121 | End |
---|
| 122 | Submenu "2-D Processing" |
---|
| 123 | "2D Work file Math",Show_WorkMath_Panel() |
---|
| 124 | "Tile Raw 2D files",Show_Tile_2D_Panel() |
---|
| 125 | "Export 2D ASCII data",Export_RAW_Ascii_Panel() |
---|
| 126 | "Bin QxQy Data to 1D",BinQxQy_to_1D() |
---|
| 127 | End |
---|
| 128 | Submenu "Event Processing" |
---|
| 129 | "Event Mode Process Panel",Show_Event_Panel() |
---|
| 130 | "Adjust Events",ShowEventCorrectionPanel() |
---|
| 131 | "Create Custom Bins",Show_CustomBinPanel() |
---|
| 132 | "-" |
---|
| 133 | "Split Large File",SplitBigFile() |
---|
| 134 | "Accumulate First Slice",AccumulateSlices(0) |
---|
| 135 | "Add Current Slice",AccumulateSlices(1) |
---|
| 136 | "Display Accumulated Slices",AccumulateSlices(2) |
---|
| 137 | End |
---|
| 138 | "-" |
---|
| 139 | "NCNR Preferences",Show_Preferences_Panel() |
---|
| 140 | "Feedback or Bug Report",OpenTracTicketPage() |
---|
| 141 | "Open Help Movie Page",OpenHelpMoviePage() |
---|
| 142 | "Check for Updates",CheckForLatestVersion() |
---|
| 143 | // Submenu "Utility Routines" |
---|
| 144 | // "Clear Work Folders" |
---|
| 145 | // "Clear Root Folder" |
---|
| 146 | // End |
---|
| 147 | End |
---|
| 148 | |
---|
| 149 | Function VSANSHelp() |
---|
| 150 | DisplayHelpTopic/Z/K=1 "VSANS Data Reduction Tutorial" |
---|
| 151 | if(V_flag !=0) |
---|
| 152 | DoAlert 0,"The VSANS Data Reduction Tutorial Help file could not be found, because it has not yet been written" |
---|
| 153 | endif |
---|
| 154 | End |
---|