Ignore:
Timestamp:
Oct 18, 2019 1:08:35 PM (3 years ago)
Author:
srkline
Message:

Updated help file for VSANS. Graphics were not PNG.

Removed HFIR SANS package since if requires XML XOP - no longer supported.

Improved quality of graphics export for Analysis reports.

Added more support for super_white_beam mode on VSANS

Corrected printf bug (Igor 8) when printing out % sign

Added utilities for patching wavelength and monochromator type on VSANS since the type is still not written out correctly by NICE, and super_white_beam is not yet defined in NICE

Adjusted panel dimensions for the temperature sensor display on VSANS (needed onWindows)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Analysis/VSANS/V_WB_Beaucage.ipf

    r1099 r1222  
    278278        // define limits based on lo/mean, hi/mean of the wavelength distribution 
    279279        // using the empirical definition, "middle" of the peaks 
    280         loLim = 3.37/5.3 
    281         upLim = 8.37/5.3 
     280        loLim = 3.37/kWhiteBeam_Mean 
     281        upLim = 8.37/kWhiteBeam_Mean 
    282282         
    283283        inten = V_IntegrOneLevelWB_mid(w,loLim,upLim,x) 
     
    285285// why do I need this? Is this because this is defined as the mean of the distribution 
    286286//  and is needed to normalize the integral? verify this on paper.       
    287         inten *= 5.3 
     287        inten *= kWhiteBeam_Mean 
    288288 
    289289// normalize the integral        
    290         inten /= 19933          // "middle"  of peaks 
     290        inten /= kWhiteBeam_Normalization               // "middle"  of peaks 
    291291 
    292292// additional normalization??? 
     
    321321//      FUNCREF SANSModel_proto func = $funcStr 
    322322 
    323         val = V_WhiteBeamDist_mid(dum*5.3)*OneLevelX(cw,qq/dum) 
     323        val = V_WhiteBeamDist_mid(dum*kWhiteBeam_Mean)*OneLevelX(cw,qq/dum) 
    324324         
    325325        return (val) 
     
    350350        // define limits based on lo/mean, hi/mean of the wavelength distribution 
    351351        // using the empirical definition, "middle" of the peaks 
    352         loLim = 3.37/5.3 
    353         upLim = 8.37/5.3 
     352        loLim = 3.37/kWhiteBeam_Mean 
     353        upLim = 8.37/kWhiteBeam_Mean 
    354354         
    355355        inten = V_IntegrTwoLevelWB_mid(w,loLim,upLim,x) 
     
    357357// why do I need this? Is this because this is defined as the mean of the distribution 
    358358//  and is needed to normalize the integral? verify this on paper.       
    359         inten *= 5.3 
     359        inten *= kWhiteBeam_Mean 
    360360 
    361361// normalize the integral        
    362         inten /= 19933          // "middle"  of peaks 
     362        inten /= kWhiteBeam_Normalization               // "middle"  of peaks 
    363363 
    364364// additional normalization??? 
     
    393393//      FUNCREF SANSModel_proto func = $funcStr 
    394394 
    395         val = V_WhiteBeamDist_mid(dum*5.3)*TwoLevelX(cw,qq/dum) 
     395        val = V_WhiteBeamDist_mid(dum*kWhiteBeam_Mean)*TwoLevelX(cw,qq/dum) 
    396396         
    397397        return (val) 
     
    422422        // define limits based on lo/mean, hi/mean of the wavelength distribution 
    423423        // using the empirical definition, "middle" of the peaks 
    424         loLim = 3.37/5.3 
    425         upLim = 8.37/5.3 
     424        loLim = 3.37/kWhiteBeam_Mean 
     425        upLim = 8.37/kWhiteBeam_Mean 
    426426         
    427427        inten = V_IntegrThreeLevelWB_mid(w,loLim,upLim,x) 
     
    429429// why do I need this? Is this because this is defined as the mean of the distribution 
    430430//  and is needed to normalize the integral? verify this on paper.       
    431         inten *= 5.3 
     431        inten *= kWhiteBeam_Mean 
    432432 
    433433// normalize the integral        
    434         inten /= 19933          // "middle"  of peaks 
     434        inten /= kWhiteBeam_Normalization               // "middle"  of peaks 
    435435 
    436436// additional normalization??? 
     
    465465//      FUNCREF SANSModel_proto func = $funcStr 
    466466 
    467         val = V_WhiteBeamDist_mid(dum*5.3)*ThreeLevelX(cw,qq/dum) 
     467        val = V_WhiteBeamDist_mid(dum*kWhiteBeam_Mean)*ThreeLevelX(cw,qq/dum) 
    468468         
    469469        return (val) 
     
    496496        // define limits based on lo/mean, hi/mean of the wavelength distribution 
    497497        // using the empirical definition, "middle" of the peaks 
    498         loLim = 3.37/5.3 
    499         upLim = 8.37/5.3 
     498        loLim = 3.37/kWhiteBeam_Mean 
     499        upLim = 8.37/kWhiteBeam_Mean 
    500500         
    501501        inten = V_IntegrFourLevelWB_mid(w,loLim,upLim,x) 
     
    503503// why do I need this? Is this because this is defined as the mean of the distribution 
    504504//  and is needed to normalize the integral? verify this on paper.       
    505         inten *= 5.3 
     505        inten *= kWhiteBeam_Mean 
    506506 
    507507// normalize the integral        
    508         inten /= 19933          // "middle"  of peaks 
     508        inten /= kWhiteBeam_Normalization               // "middle"  of peaks 
    509509 
    510510// additional normalization??? 
     
    539539//      FUNCREF SANSModel_proto func = $funcStr 
    540540 
    541         val = V_WhiteBeamDist_mid(dum*5.3)*FourLevelX(cw,qq/dum) 
     541        val = V_WhiteBeamDist_mid(dum*kWhiteBeam_Mean)*FourLevelX(cw,qq/dum) 
    542542         
    543543        return (val) 
Note: See TracChangeset for help on using the changeset viewer.