Changeset 807 for sans/Dev/trunk/NCNR_User_Procedures/Reduction
- Timestamp:
- Jun 10, 2011 2:03:45 PM (12 years ago)
- Location:
- sans/Dev/trunk/NCNR_User_Procedures/Reduction
- Files:
-
- 6 added
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/USANS/BT5_AddFiles.ipf
r611 r807 751 751 Proc SelectFilesToAdd(file1,file2) 752 752 String file1,file2 753 Prompt file1, "First File", popup, BT5FileList(" *.bt5*")754 Prompt file2, "Second File", popup, BT5FileList(" *.bt5*")753 Prompt file1, "First File", popup, BT5FileList("") 754 Prompt file2, "Second File", popup, BT5FileList("") 755 755 756 756 // Print file1,file2 … … 763 763 String filter 764 764 765 SVAR ext = root:Packages:NIST:USANS:Globals:MainPanel:gUExt 766 filter = "*"+ext+"*" 765 767 766 768 //get all the files, then trim the list … … 789 791 String file1,file2 790 792 793 SVAR ext = root:Packages:NIST:USANS:Globals:MainPanel:gUExt 794 791 795 //load each file into a textWave 792 796 Make/O/T/N=200 tw1,tw2 … … 893 897 894 898 // write out the final file (=tw3) 895 filen = file1[0,strlen(file1)-5]+"_SUM .bt5"899 filen = file1[0,strlen(file1)-5]+"_SUM"+ext 896 900 897 901 if(dialog) -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/USANS/BT5_Loader.ipf
r765 r807 31 31 SVAR USANSFolder = root:Packages:NIST:USANS:Globals:gUSANSFolder 32 32 33 Variable num= 200,err=0,refnum33 Variable num=500,err=0,refnum 34 34 Make/O/D/N=(num) $(USANSFolder+":"+type+":Angle") 35 35 Make/O/D/N=(num) $(USANSFolder+":"+type+":DetCts") … … 73 73 filedt = filedt[1,(ii-2)] 74 74 75 print filedt 76 print BT5Date2Secs(filedt) 77 print date2secs(2010,11,7) 78 79 if (BT5Date2Secs(filedt) < date2secs(2010,11,7)) 80 MainDeadTime = 4e-5 81 TransDeadTime = 1.26e-5 82 //print "Old Dead Times" 83 //MainDeadTime = 0 84 //TransDeadTime = 0 85 else 86 MainDeadTime = 7e-6 87 TransDeadTime = 1.26e-5 88 //print "New Dead Times" 89 endif 75 // print filedt 76 // print BT5Date2Secs(filedt) 77 // print date2secs(2010,11,7) 78 79 USANS_DetectorDeadtime(filedt,MainDeadTime,TransDeadTime) 90 80 91 81 //skip line 2 … … 206 196 Wave angle = $(USANSFolder+":"+type+":Angle") 207 197 Variable num=numpnts(angle) 208 Variable deg2QConv=5.55e-5 //JGB -- 2/24/01 198 // Variable deg2QConv=5.55e-5 //JGB -- 2/24/01 199 NVAR deg2QConv=root:Packages:NIST:USANS:Globals:MainPanel:deg2QConv 200 209 201 210 202 Make/O/N=(num) $(USANSFolder+":"+type+":Qvals") -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/USANS/Main_USANS.ipf
r765 r807 64 64 USANS_Panel() 65 65 Endif 66 67 DoIgorMenu "Control" "Retrieve All Windows" 68 66 69 End 67 70 … … 137 140 root:Packages:NIST:USANS:BKG:bkgLevel := root:Packages:NIST:USANS:Globals:MainPanel:gBkgCts 138 141 139 140 //INSTRUMENTAL CONSTANTS 141 Variable/G root:Packages:NIST:USANS:Globals:MainPanel:gTheta_H = 3.9e-6 //Darwin FWHM (pre- NOV 2004) 142 Variable/G root:Packages:NIST:USANS:Globals:MainPanel:gTheta_V = 0.014 //Vertical divergence (pre- NOV 2004) 143 //Variable/G root:Globals:MainPanel:gDomega = 2.7e-7 //Solid angle of detector (pre- NOV 2004) 144 Variable/G root:Packages:NIST:USANS:Globals:MainPanel:gDomega = 7.1e-7 //Solid angle of detector (NOV 2004) 145 Variable/G root:Packages:NIST:USANS:Globals:MainPanel:gDefaultMCR= 1e6 //factor for normalization 146 147 //Variable/G root:Globals:MainPanel:gDQv = 0.037 //divergence, in terms of Q (1/A) (pre- NOV 2004) 148 Variable/G root:Packages:NIST:USANS:Globals:MainPanel:gDQv = 0.117 //divergence, in terms of Q (1/A) (NOV 2004) 149 //November 2010 - deadtime corrections 150 //Only used in BT5_Loader.ipf and dependent on date, so defined there on each file load. 151 152 String/G root:Packages:NIST:gXMLLoader_Title="" 142 // initializes facility specific constants to define the instrument 143 Init_USANS_Facility() 153 144 154 145 //initializes preferences. this includes XML y/n, and SANS Reduction items. … … 859 850 // reads directly from disk 860 851 // 861 // EXCLUDES all files that do not match "*.bt5*" (not case sensitive) 852 // EXCLUDES all files that do not match "*.bt5*" (not case sensitive) (*.ext*) 862 853 // 863 854 // sorts the list to alphabetical order … … 869 860 870 861 SVAR USANSFolder = root:Packages:NIST:USANS:Globals:gUSANSFolder 862 SVAR ext = root:Packages:NIST:USANS:Globals:MainPanel:gUExt 871 863 872 864 String folderStr="" … … 893 885 //Get the filter and determine the match string required AJJ Sept06 894 886 if (stringmatch(FilterStr,"!")) 895 filter = FilterStr+"* .bt5*"887 filter = FilterStr+"*"+ext+"*" 896 888 else 897 filter = "* .bt5*"889 filter = "*"+ext+"*" 898 890 endif 899 891 … … 1172 1164 1173 1165 SVAR USANSFolder = root:Packages:NIST:USANS:Globals:gUSANSFolder 1174 1166 SVAR ext = root:Packages:NIST:USANS:Globals:MainPanel:gUExt 1167 1175 1168 //Prod the web update page 1176 1169 //This is a horrible kludge that doesn't really work as the … … 1204 1197 for(ii=0;ii<num;ii+=1) 1205 1198 item = StringFromList(ii, list ,";") 1206 if( stringmatch(item,"* .bt5*") ) //ONLY keep files with ".bt5" in the name (NOT case-sensitive)1199 if( stringmatch(item,"*"+ext+"*") ) //ONLY keep files with ".bt5" in the name (NOT case-sensitive) 1207 1200 newlist += item + ";" 1208 1201 endif -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/USANS/USANS_Includes_v230.ipf
r740 r807 2 2 #pragma version=2.20 3 3 #pragma IgorVersion=6.1 4 5 6 // to properly set up the template for other facility reduction templates, 7 // function NCNR_USANS() must exist here in the Includes file. 8 // 9 Function NCNR_USANS() 10 //does nothing but define NCNR_USANS() 11 return(0) 12 End 13 4 14 5 15 //************* … … 9 19 // 10 20 21 11 22 #include "BT5_Loader",version >= 2.20 12 23 #include "COR_Graph",version >= 2.20 13 24 #include "Main_USANS",version >= 2.20 14 25 #include "PlotUtilsMacro_v40",version >= 2.20 15 #include "NIST_XML_v40" 26 #include "NIST_XML_v40" //cansas file writer 16 27 #include "USANS_SlitSmearing_v40" 17 28 #include "WriteUSANSData",version >= 2.20 … … 21 32 #include "GaussUtils_v40" //added Oct 2008 for unified file loading 22 33 #include "BT5_AddFiles" //Oct 2009 to add raw data files 34 #include "NCNR_Utils" //needed for NIST_XML 35 #include "U_NCNR_Utils" //USANS-specific initialization 36 23 37 24 38 // USANS simulation and required procedures … … 29 43 #include "NCNR_DataReadWrite" 30 44 #include "SANS_Utilities" 31 #include "NCNR_Utils"32 45 #include "MultipleReduce" 33 46 #include "WriteQIS" -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/USANS/U_CALC.ipf
r704 r807 1746 1746 NVAR ang2 = $(pathStr+"gAngHigh"+num2str(set)) 1747 1747 NVAR incr = $(pathStr+"gIncr"+num2str(set)) 1748 SVAR ext = root:Packages:NIST:USANS:Globals:MainPanel:gUExt 1749 1748 1750 1749 1751 Variable refNum,ii,wavePts,numPts,first,last,ctTime,monCt,transDet … … 1768 1770 1769 1771 // set up some of the strings needed 1770 fileStr=nameStr+num2str(num+set)+ ".bt5"1772 fileStr=nameStr+num2str(num+set)+ext 1771 1773 dateStr = date() 1772 1774 ctTime = countingTime[first]
Note: See TracChangeset
for help on using the changeset viewer.