Ignore:
Timestamp:
Nov 24, 2010 4:23:13 PM (12 years ago)
Author:
srkline
Message:
  • fixed a few bugs with GenCurveFit?, and how the reports are generated


  • the DEFAULT.MASK file is automatically loaded when the path is set, if it can be found. this only happens from the main (yellow) panel. Nothing happens if that exact file is not found.


  • a "Sector_PlusMinus" averaging option is added. This defines the LEFT sector as being "negative" q-values. Everything else behaves as a normal sector average. This is from Lionel, a very old ticket #31


  • if sectors or annular regions are drawn on RAW data files, the drawn lines are re-drawn correctly as the data is scrolled using the < and > buttons.


  • a super secret option for a "histogram pair" has been added. May be useful for alignment, may ditch if Jeff and Cedric don't like it. To do this, put cursor A on the 2D image at the center of where you want the vertical and horizontal swath to be. +-5 pixels is hard-wired. draw any marquee(size, location is ignored) and select SANS Histogram, and you get the pair. If cursor A is not on the graph, you get the normal histogram as defined by the marquee.


  • arrow buttons on RAW 2D data display now search +- 10 data files for "next", in case there are missing file numbers.


  • Incorporated Lionel's changes to ILL_* files for his generation of a "DIV" file for D22


  • Added the offset traces checkbox back to the SASCALC panel. previously it was hidden on the simulation panels.


  • loosened the tolerance for SDD matching onn the MRED panel to 0.1 m



File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/ILL_Utils.ipf

    r750 r764  
    195195// this run number should be a unique identifier for the file 
    196196// 
     197 
     198// 
    197199Function GetRunNumFromFile(item) 
    198200        String item 
     
    202204        String runStr="" 
    203205         
    204         runstr = item 
     206        runStr = ParseFilePath(0, item, ":", 1, 0) 
     207//      runstr = item 
    205208        num = str2num(runstr) 
    206209         
     
    229232        retStr=invalid 
    230233         
    231         retstr = item 
     234        retstr = ParseFilePath(0, item, ":", 1, 0) 
    232235        //your code here 
    233236         
     
    334337Function/S RunDigitString(num) 
    335338        Variable num 
    336          
     339 
    337340//      String fullName="",partialName="",item="" 
    338341//      String numStr="" 
     
    361364//      endswitch 
    362365//       
    363          
     366 
    364367        String numStr="" 
    365368 
     
    10491052                ff= 0.9993575- 0.0002320264*abs(theta) + 9.751713e-5*abs(theta^2) + 1.018564e-5*abs(theta^3) -3.977445e-7*abs(theta^4) +2.960205e-9*abs(theta^5) 
    10501053        endif 
     1054        ff= 0.9992674-0.0001808763*abs(theta) +8.134414e-05*abs(theta^2) +1.151734e-05*abs(theta^3) - 4.401022e-07*abs(theta^4)+3.71246e-09*abs(theta^5) 
    10511055 
    10521056        return(ff) 
Note: See TracChangeset for help on using the changeset viewer.