Ignore:
Timestamp:
Jun 10, 2008 4:00:21 PM (15 years ago)
Author:
srkline
Message:

Removed Angstrom symbol (Mac code) and replaced it with simply a capital "A" so strange symbols won't appear anymore on Win.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/SANS/Analysis/Models/Packages/Invariant/Invariant_v40.ipf

    r318 r379  
    4949        inv = 2*pi*pi*delta_rho*delta_rho*phi*(1-phi)*1e8 
    5050         
    51         Printf "The model invariant is %g ^-3 cm^-1\r\r",inv 
     51        Printf "The model invariant is %g A^-3 cm^-1\r\r",inv 
    5252End 
    5353 
     
    6565        invar = areaXY(qw,integrand,qw[0],qw[num-1]) 
    6666         
    67         return(invar)           //units of ^-3 cm^-1 
     67        return(invar)           //units of A^-3 cm^-1 
    6868End 
    6969 
     
    8585        invar *= dQv            //correct for the effects of slit-smearing 
    8686                 
    87         return(invar)           //units of ^-3 cm^-1 
     87        return(invar)           //units of A^-3 cm^-1 
    8888End 
    8989 
     
    140140         
    141141        Printf "I(q=0) = %g (1/cm)\r",G_coef[0] 
    142         Printf "Rg = %g ()\r",sqrt(-3*G_coef[1]) 
     142        Printf "Rg = %g (A)\r",sqrt(-3*G_coef[1]) 
    143143         
    144144        Make/O/D P_coef={0,1,-4}                        //input 
     
    191191        ModifyGraph standoff=0 
    192192        Label left "Intensity (1/cm)" 
    193         Label bottom "q (1/)" 
     193        Label bottom "q (1/A)" 
    194194        ModifyGraph rgb($NameofWave(iw))=(0,0,0) 
    195195        ModifyGraph opaque($NameofWave(iw))=1 
     
    251251        DrawText 158,211,"Extrapolation" 
    252252        SetDrawEnv fstyle= 1 
    253         DrawText 58,349,"Units are [^-3 cm^-1]" 
     253        DrawText 58,349,"Units are [A^-3 cm^-1]" 
    254254        SetDrawEnv fstyle= 1 
    255255        DrawText 61,16,"Calculate the Invariant" 
     
    332332         
    333333        num=numpnts(qw) 
    334         Printf "The invariant over the measured q-range %g to %g is %g ^-3 cm^-1\r\r",qw[0],qw[(num-1)],inv 
     334        Printf "The invariant over the measured q-range %g to %g is %g A^-3 cm^-1\r\r",qw[0],qw[(num-1)],inv 
    335335         
    336336        // update the global display on the panel (there is a dependency for the total) 
     
    378378                 
    379379                Printf "I(q=0) = %g (1/cm)\r",G_coef[0] 
    380                 Printf "Rg = %g ()\r",sqrt(-3*G_coef[1]) 
     380                Printf "Rg = %g (A)\r",sqrt(-3*G_coef[1]) 
    381381        else 
    382382                //do a power-law fit instead 
     
    400400         
    401401        nume=numpnts(extr_lqq) 
    402         Printf "The invariant over the q-range %g to %g is %g ^-3 cm^-1\r\r",extr_lqq[0],extr_lqq[(nume-1)],inv 
     402        Printf "The invariant over the q-range %g to %g is %g A^-3 cm^-1\r\r",extr_lqq[0],extr_lqq[(nume-1)],inv 
    403403         
    404404        // update the global display on the panel (there is a dependency for the total) 
     
    450450 
    451451        nume=numpnts(extr_hqq) 
    452         Printf "The invariant over the q-range %g to %g is %g ^-3 cm^-1\r\r",extr_hqq[0],extr_hqq[(nume-1)],inv 
     452        Printf "The invariant over the q-range %g to %g is %g A^-3 cm^-1\r\r",extr_hqq[0],extr_hqq[(nume-1)],inv 
    453453         
    454454        // update the global display on the panel (there is a dependency for the total) 
Note: See TracChangeset for help on using the changeset viewer.