Changeset 1171 for sans/Dev/branches/nxcansas_writer/NCNR_User_Procedures
- Timestamp:
- Jun 14, 2019 1:46:39 PM (4 years ago)
- Location:
- sans/Dev/branches/nxcansas_writer/NCNR_User_Procedures
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/branches/nxcansas_writer/NCNR_User_Procedures/Common/NIST_NXcanSAS_v709.ipf
r1170 r1171 268 268 269 269 // Run Name and title 270 NewDataFolder/O/S $( base +parentBase)271 Make/O/T/N=1 $( base +parentBase + ":title") = {textw[6]}272 CreateStrNxCansas(fileID, parentBase,"","title",$(base +parentBase + ":title"),empty,empty)273 Make/O/T/N=1 $( base +parentBase + ":run") = {textw[0]}274 CreateStrNxCansas(fileID,nxcansasBase,"","run",$( base +parentBase + ":run"),empty,empty)270 NewDataFolder/O/S $(parentBase) 271 Make/O/T/N=1 $(parentBase + ":title") = {textw[6]} 272 CreateStrNxCansas(fileID,nxcansasBase,"","title",$(parentBase + ":title"),empty,empty) 273 Make/O/T/N=1 $(parentBase + ":run") = {textw[0]} 274 CreateStrNxCansas(fileID,nxcansasBase,"","run",$(parentBase + ":run"),empty,empty) 275 275 276 276 // SASData 277 277 String dataParent = nxcansasBase + "sasdata/" 278 278 // Create SASdata entry 279 String dataBase = base +parentBase + ":sasdata"279 String dataBase = parentBase + ":sasdata" 280 280 NewDataFolder/O/S $(dataBase) 281 281 Make/O/T/N=5 $(dataBase + ":attr") = {"canSAS_class","signal","I_axes","NX_class","Q_indices", "timestamp"} -
sans/Dev/branches/nxcansas_writer/NCNR_User_Procedures/Reduction/SANS/ProtocolAsPanel.ipf
r1165 r1171 969 969 String av_typ,autoSave,AutoName,autoPlot,side 970 970 Variable phi=0,dphi=10,width=10,Qctr = 0.01,qDelta=10 971 Prompt av_typ, "Type of Average",popup,"Circular;Sector;Rectangular;Annular;2D_ ASCII;QxQy_ASCII;PNG_Graphic;Sector_PlusMinus;"971 Prompt av_typ, "Type of Average",popup,"Circular;Sector;Rectangular;Annular;2D_NXcanSAS;2D_ASCII;QxQy_ASCII;PNG_Graphic;Sector_PlusMinus;" 972 972 // comment out above line in DEMO_MODIFIED version, and uncomment the line below (to disable PNG save) 973 973 // Prompt av_typ, "Type of Average",popup,"Circular;Sector;Rectangular;Annular;2D_ASCII;QxQy_ASCII" … … 1839 1839 1840 1840 strswitch(av_type) //dispatch to the proper routine to average to 1D data 1841 case "none":1842 //still do nothing1843 break1844 case "2D_ASCII":1845 //do nothing1846 break1847 case "QxQy_ASCII":1848 //do nothing1849 break1850 case "PNG_Graphic":1851 //do nothing1852 break1853 1841 case "Rectangular": 1854 1842 RectangularAverageTo1D(activeType) … … 1866 1854 Sector_PlusMinus1D(activeType) 1867 1855 break 1856 case "none": 1857 //do nothing 1858 case "2D_ASCII": 1859 //do nothing 1860 case "QxQy_ASCII": 1861 //do nothing 1862 case "2D_NXcanSAS": 1863 //do nothing 1864 case "PNG_Graphic": 1865 //do nothing 1868 1866 default: 1869 1867 //do nothing … … 1909 1907 if(cmpstr(av_type,"QxQy_ASCII") == 0) 1910 1908 exten = "DAT" 1909 endif 1910 if(cmpstr(av_type,"2D_NXcanSAS") == 0) 1911 exten = "h5" 1911 1912 endif 1912 1913 … … 1947 1948 case "2D_ASCII": 1948 1949 Fast2DExport(activeType,fullPath,dialog) 1950 break 1951 case "2D_NXcanSAS": 1952 WriteNxCanSAS2D(activeType,fullPath,dialog) 1949 1953 break 1950 1954 case "QxQy_ASCII":
Note: See TracChangeset
for help on using the changeset viewer.