Ignore:
Timestamp:
Sep 5, 2019 3:00:05 PM (3 years ago)
Author:
srkline
Message:

Corrected attenuator table for VSANS to include the range 4.52->19. Patching of the attenuation factor is disabled since the factor is always calculated rather than read from the file.

Added a few help links in preparation for the full help file integration

Added a "super" white beam distribution definition and a single model function for testing of this new mode. Still need the normalization and mean wavelength for the distribution + a way to identify it in the file metadata.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_Attenuation.ipf

    r1153 r1203  
    169169        numAtt = V_getAtten_number(fname) 
    170170        lambda = V_getWavelength(fname) 
    171          
     171 
     172        if(lambda < 4.52 || lambda > 19) 
     173                Abort "Wavelength out of range for attenuation table" 
     174        endif 
     175                 
    172176        // TODO -- need to switch on "type" 
    173177        //  == velocity_selector || ?? for white beam || graphite 
    174178//      monoType = V_getMonochromatorType(fname) 
    175179 
    176         monoType = V_DeduceMonochromatorType(fname) 
     180        monoType = V_IdentifyMonochromatorType(fname) 
    177181        print monoType 
    178182 
     
    194198        endswitch 
    195199         
    196          
    197200        Wave w = V_getAttenIndex_table(fname)           // N=(x,17) 
    198201        Variable num = DimSize(w,0) 
     
    230233        numAtt = V_getAtten_number(fname) 
    231234        lambda = V_getWavelength(fname) 
    232          
     235 
     236        if(lambda < 4.52 || lambda > 19) 
     237                Abort "Wavelength out of range for attenuation error table" 
     238        endif 
     239                 
    233240        // TODO -- need to switch on "type" 
    234241        //  == velocity_selector || ?? for white beam || crystal 
    235242//      monoType = V_getMonochromatorType(fname) 
    236243         
    237         monoType = V_DeduceMonochromatorType(fname) 
     244        monoType = V_IdentifyMonochromatorType(fname) 
    238245        print monoType 
    239246        // set a fake wavelength for the interpolation or get out 
Note: See TracChangeset for help on using the changeset viewer.