Changeset 1161 for sans/Dev/trunk
- Timestamp:
- Jun 4, 2019 4:37:36 PM (4 years ago)
- Location:
- sans/Dev/trunk/NCNR_User_Procedures
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Common/Packages/PlotManager/PlotUtilsMacro_v40.ipf
r1133 r1161 1473 1473 End 1474 1474 1475 Function NXWritePref(ctrlName,checked) : CheckBoxControl 1476 String ctrlName 1477 Variable checked 1478 1479 NVAR gVal = root:Packages:NIST:gNXcanSAS_Write 1480 gVal = checked 1481 End 1482 1475 1483 Function DoTransCorrPref(ctrlName,checked) : CheckBoxControl 1476 1484 String ctrlName … … 1543 1551 CheckBox PrefCtrl_0a,help={"Checking this will set the default output format to be canSAS XML rather than NIST 6 column"} 1544 1552 CheckBox PrefCtrl_0a,value= root:Packages:NIST:gXML_Write 1553 CheckBox PrefCtrl_0a,pos={21,116},size={124,14},proc=NXWritePref,title="Use NXcanSAS HDF5 Output" 1554 CheckBox PrefCtrl_0a,help={"Checking this will set the default output format to be NXcanSAS HDF5 rather than NIST 6 column"} 1555 CheckBox PrefCtrl_0a,value= root:Packages:NIST:gNXcanSAS_Write 1556 1545 1557 1546 1558 //on tab(1) - SANS -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/AvgGraphics.ipf
r764 r1161 70 70 SVAR type=root:myGlobals:gDataDisplayType 71 71 NVAR useXMLOutput = root:Packages:NIST:gXML_Write 72 NVAR useNXcanSASOutput = root:Packages:NIST:GNXcanSAS_Write 72 73 73 74 //Check for logscale data in "type" folder … … 126 127 case "Rectangular": 127 128 RectangularAverageTo1D(type) 128 If(doSave) //save the file, acting on the currently displayed file129 if (useXMLOutput == 1)130 WriteXMLWaves_W_Protocol(type,"",1)131 else132 WriteWaves_W_Protocol(type,"",1) //"" is an empty path, 1 will force a dialog133 endif134 Endif135 129 break 136 130 case "Annular": 137 131 AnnularAverageTo1D(type) 138 If(doSave) // XML here yet139 //save the file, acting on the currently displayed file140 WritePhiave_W_Protocol(type,"",1) //"" is an empty path, 1 will force a dialog141 Endif142 132 break 143 133 case "Circular": … … 145 135 //circular or sector 146 136 CircularAverageTo1D(type) //graph is drawn here 147 If(doSave) 137 break 138 case "2D ASCII": 139 Fast2dExport(type,"",1) 140 break 141 case "QxQy ASCII": 142 QxQy_Export(type,"",1) 143 break 144 case "Sector_PlusMinus": 145 Sector_PlusMinus1D(type) 146 break 147 default: 148 Abort "no case match in average dispatch" 149 endswitch 150 151 if(doSave) 152 strswitch(choice) 153 case "Annular": 154 WritePhiave_W_Protocol(type,"",1) 155 break 156 case "2D ASCII": 157 case "QxQy ASCII": 158 break 159 default: 148 160 if (useXMLOutput == 1) 149 161 WriteXMLWaves_W_Protocol(type,"",1) 162 else if (useNXcanSASOutput == 1) 163 WriteNxCanSAS1D(type,"",1) 150 164 else 151 165 WriteWaves_W_Protocol(type,"",1) //"" is an empty path, 1 will force a dialog 152 166 endif 153 Endif 154 break 155 case "2D ASCII": 156 Fast2dExport(type,"",1) 157 break 158 case "QxQy ASCII": 159 QxQy_Export(type,"",1) 160 break 161 case "Sector_PlusMinus": 162 Sector_PlusMinus1D(type) 163 If(doSave) 164 if (useXMLOutput == 1) 165 WriteXMLWaves_W_Protocol(type,"",1) 166 else 167 WriteWaves_W_Protocol(type,"",1) //"" is an empty path, 1 will force a dialog 168 endif 169 Endif 170 break 171 default: 172 Abort "no case match in average dispatch" 173 endswitch 167 EndIf 174 168 175 169 //convert back to log scaling if I changed it... -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/USANS/COR_Graph.ipf
r907 r1161 215 215 SVAR USANSFolder = root:Packages:NIST:USANS:Globals:gUSANSFolder 216 216 NVAR useXMLOutput = root:Packages:NIST:gXML_Write 217 NVAR useNXcanSASOutput = root:Packages:NIST:gNXcanSAS_Write 217 218 218 219 … … 263 264 if (useXMLOutput == 1) 264 265 WriteXMLUSANSWaves(type,"",ptA,ptB,1) 266 else if (useNXcanSASOutput == 1) 267 WriteUSANSNXCanSAS(type,"",ptA,ptB,1) 265 268 else 266 269 WriteUSANSWaves(type,"",ptA,ptB,1)
Note: See TracChangeset
for help on using the changeset viewer.