Changeset c97724e in sasmodels for sesansdemo.py
 Timestamp:
 Feb 18, 2015 8:45:23 AM (9 years ago)
 Branches:
 master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket1257vesicleproduct, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
 Children:
 e806077
 Parents:
 f173599
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

sesansdemo.py
r10576d1 rc97724e 10 10 11 11 # qrange parameters 12 12 13 q = arange(0.0003, 1.0, 0.0003); # [nm^1] range wide enough for Hankel transform 13 14 dq=(q[1]q[0])*1e9; # [m^1] step size in q, needed for integration … … 34 35 35 36 clf() 36 subplot( 1,2,1) # plot the SANS calculation37 subplot(211) # plot the SANS calculation 37 38 plot(q,I,'k') 38 39 loglog(q,I) … … 55 56 PP=exp(th*Lambda**2/4/pi/pi*(GG[0])); 56 57 57 subplot( 1,2,2)58 subplot(212) 58 59 plot(zz,PP,'k',label="Hankel transform") # Hankel transform 1D 59 60 xlabel('spinecho length [nm]') … … 62 63 63 64 # Cosine transformation of 2D scattering patern 64 if True:65 if False: 65 66 qy,qz = meshgrid(q,q) 66 67 qr=R*sqrt(qy**2 + qz**2); # reuse variable names Hankel transform, but now 2D
Note: See TracChangeset
for help on using the changeset viewer.