- Timestamp:
- Apr 7, 2010 1:02:12 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/USANS/WriteUSANSData.ipf
r667 r669 211 211 212 212 SVAR USANSFolder = root:Packages:NIST:USANS:Globals:gUSANSFolder 213 NVAR dQv = root:Packages:NIST:USANS:Globals:MainPanel:gDQv 213 214 214 215 Struct NISTXMLfile nf … … 237 238 Endif 238 239 239 //Use the evil extra column . Should probably switch to using slit_length in collimation.240 //Use the evil extra column for the resolution "information". Should probably switch to using slit_length in collimation. 240 241 Duplicate/O qvals,dumWave 241 NVAR DQv=$(USANSFolder+":Globals:MainPanel:gDQv") 242 dumWave = - DQv 242 dumWave = - dQv 243 243 /// 244 244 … … 254 254 Endif 255 255 256 //actually open the file here257 //Open refNum as fullpath258 259 256 //Data 260 257 Wave nf.Q = qvals … … 264 261 Wave nf.Idev = sig 265 262 nf.unitsIdev = "1/cm" 266 Wave nf.dQl = sigmaq 263 // for slit-smeared USANS, set only a 4th column to -dQv 264 Wave nf.dQl = dumWave 267 265 nf.unitsdQl= "1/A" 268 269 266 270 267 //write out the standard header information 271 268 //fprintf refnum,"FILE: %s\t\t CREATED: %s\r\n",textw[0],textw[1] … … 345 342 //write confirmation of write operation to history area 346 343 Print "Averaged XML File written: ", GetFileNameFromPathNoSemi(fullPath) 347 KillWaves/Z tempShortProto344 KillWaves/Z dumWave 348 345 Return(0) 349 346 End … … 468 465 SetDataFolder root: //(redundant) 469 466 467 KillWaves/Z res1,res2,res2,ti,te,tq 468 470 469 Return(0) 471 470 End
Note: See TracChangeset
for help on using the changeset viewer.