- Timestamp:
- Jun 5, 2019 10:08:15 AM (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
r1161 r1164 1473 1473 End 1474 1474 1475 Function NXWritePref(ctrlName,checked) : CheckBoxControl1476 String ctrlName1477 Variable checked1478 1479 NVAR gVal = root:Packages:NIST:gNXcanSAS_Write1480 gVal = checked1481 End1482 1483 1475 Function DoTransCorrPref(ctrlName,checked) : CheckBoxControl 1484 1476 String ctrlName … … 1551 1543 CheckBox PrefCtrl_0a,help={"Checking this will set the default output format to be canSAS XML rather than NIST 6 column"} 1552 1544 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_Write1556 1557 1545 1558 1546 //on tab(1) - SANS -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/AvgGraphics.ipf
r1161 r1164 70 70 SVAR type=root:myGlobals:gDataDisplayType 71 71 NVAR useXMLOutput = root:Packages:NIST:gXML_Write 72 NVAR useNXcanSASOutput = root:Packages:NIST:GNXcanSAS_Write73 72 74 73 //Check for logscale data in "type" folder … … 127 126 case "Rectangular": 128 127 RectangularAverageTo1D(type) 128 If(doSave) 129 if (useXMLOutput == 1) 130 WriteXMLWaves_W_Protocol(type,"",1) 131 else 132 WriteWaves_W_Protocol(type,"",1) //"" is an empty path, 1 will force a dialog 133 endif 134 EndIf 129 135 break 130 136 case "Annular": 131 137 AnnularAverageTo1D(type) 138 If(doSave) // XML here yet 139 //save the file, acting on the currently displayed file 140 WritePhiave_W_Protocol(type,"",1) //"" is an empty path, 1 will force a dialog 141 Endif 132 142 break 133 143 case "Circular": … … 135 145 //circular or sector 136 146 CircularAverageTo1D(type) //graph is drawn here 147 If(doSave) 148 if (useXMLOutput == 1) 149 WriteXMLWaves_W_Protocol(type,"",1) 150 else 151 WriteWaves_W_Protocol(type,"",1) //"" is an empty path, 1 will force a dialog 152 endif 153 EndIf 137 154 break 138 155 case "2D ASCII": … … 148 165 Abort "no case match in average dispatch" 149 166 endswitch 150 151 if(doSave)152 strswitch(choice)153 case "Annular":154 WritePhiave_W_Protocol(type,"",1)155 break156 case "2D ASCII":157 case "QxQy ASCII":158 break159 default:160 if (useXMLOutput == 1)161 WriteXMLWaves_W_Protocol(type,"",1)162 else if (useNXcanSASOutput == 1)163 WriteNxCanSAS1D(type,"",1)164 else165 WriteWaves_W_Protocol(type,"",1) //"" is an empty path, 1 will force a dialog166 endif167 EndIf168 167 169 168 //convert back to log scaling if I changed it... -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/USANS/COR_Graph.ipf
r1161 r1164 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_Write218 217 219 218 … … 264 263 if (useXMLOutput == 1) 265 264 WriteXMLUSANSWaves(type,"",ptA,ptB,1) 266 else if (useNXcanSASOutput == 1)267 WriteUSANSNXCanSAS(type,"",ptA,ptB,1)268 265 else 269 266 WriteUSANSWaves(type,"",ptA,ptB,1)
Note: See TracChangeset
for help on using the changeset viewer.