- Timestamp:
- Oct 7, 2008 1:09:04 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/ProtocolAsPanel.ipf
r412 r418 1375 1375 //fileList has NAMES ONLY - since it was derived from the file header 1376 1376 String testStr 1377 testStr = "root: "+type+":fileList"1377 testStr = "root:Packages:NIST:"+type+":fileList" 1378 1378 if(Exists(testStr) == 2) //2 if string variable exists 1379 1379 SVAR curFiles = $testStr … … 1616 1616 If(cmpstr(prot[1],"none") == 0) 1617 1617 //clean out the EMP folder? 1618 //KillDataFolder root: EMP1619 //NewDataFolder/O root: EMP1618 //KillDataFolder root:Packages:NIST:EMP 1619 //NewDataFolder/O root:Packages:NIST:EMP 1620 1620 break 1621 1621 Endif … … 1750 1750 Endif 1751 1751 //get the sample trans and thickness from the activeType folder 1752 String destStr = "root: "+activeType+":realsread"1752 String destStr = "root:Packages:NIST:"+activeType+":realsread" 1753 1753 Wave dest = $destStr 1754 1754 Variable c0 = dest[4] //sample transmission … … 1777 1777 //if none desired, make sure that the old mask is deleted 1778 1778 //junkStr = GetDataFolder(1) 1779 //SetDataFolder root: MSK1780 KillWaves/Z root: MSK:data1779 //SetDataFolder root:Packages:NIST:MSK 1780 KillWaves/Z root:Packages:NIST:MSK:data 1781 1781 //SetDataFolder junkStr 1782 1782 DoAlert 0,"No Mask file selected, data not masked" … … 1794 1794 //if none desired, make sure that the old mask is deleted 1795 1795 //junkStr = GetDataFolder(1) 1796 //SetDataFolder root: MSK1797 KillWaves/Z root: MSK:data1796 //SetDataFolder root:Packages:NIST:MSK 1797 KillWaves/Z root:Packages:NIST:MSK:data 1798 1798 //SetDataFolder junkStr 1799 1799 Endif … … 1863 1863 //then save 1864 1864 //get name from textwave of the activeType dataset 1865 String textStr = "root: "+activeType+":textread"1865 String textStr = "root:Packages:NIST:"+activeType+":textread" 1866 1866 Wave/T textPath = $textStr 1867 1867 If(WaveExists(textPath) == 1) … … 1994 1994 endif 1995 1995 1996 Wave/T tw=$"root: RAW:TextRead"1997 Wave rw=$"root: RAW:RealsRead"1998 Wave iw=$"root: RAW:IntegersRead"1996 Wave/T tw=$"root:Packages:NIST:RAW:TextRead" 1997 Wave rw=$"root:Packages:NIST:RAW:RealsRead" 1998 Wave iw=$"root:Packages:NIST:RAW:IntegersRead" 1999 1999 String acctStr = tw[3] 2000 2000 //NG5 attenuator transmission is assumed to be the same as the table for NG7 … … 2051 2051 //need the detector sensitivity file - make a guess, allow to override 2052 2052 String junkStr="" 2053 if(! waveexists($"root: DIV:data"))2053 if(! waveexists($"root:Packages:NIST:DIV:data")) 2054 2054 junkStr = PromptForPath("Select the detector sensitivity file") 2055 2055 If(strlen(junkStr)==0 || CheckIfRawData(junkStr)) //raw check==1 if RAW, DIV is not … … 2064 2064 Log_Lin("bisLog") 2065 2065 endif 2066 Wave divData = $"root: div:Data"2067 Wave data = $"root: raw:data" //this will be the linear data2066 Wave divData = $"root:Packages:NIST:div:Data" 2067 Wave data = $"root:Packages:NIST:raw:data" //this will be the linear data 2068 2068 // correct by detector sensitivity 2069 2069 data /= divData 2070 2070 2071 2071 // now do the sum, only in the box 2072 // detCnt = sum($"root: raw:data", -inf, inf )2072 // detCnt = sum($"root:Packages:NIST:raw:data", -inf, inf ) 2073 2073 // Print "box is now ",x1,x2,y1,y2 2074 2074 detCnt = SumCountsInBox(x1,x2,y1,y2,"RAW")
Note: See TracChangeset
for help on using the changeset viewer.