Changeset 444 for sans/Dev/trunk/NCNR_User_Procedures/Analysis/Models/NewModels_2008/PolyCore_and_NShells_v40.ipf
- Timestamp:
- Nov 12, 2008 4:45:15 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Analysis/Models/NewModels_2008/PolyCore_and_NShells_v40.ipf
r396 r444 27 27 //needed to calculate the model function. 28 28 // 29 Macro PlotPolyPolyOneShell(num,qmin,qmax)29 Proc PlotPolyOneShell(num,qmin,qmax) 30 30 Variable num=200, qmin=0.001, qmax=0.7 31 31 Prompt num "Enter number of data points for model: " … … 33 33 Prompt qmax "Enter maximum q-value (^-1) for model: " 34 34 // 35 Make/O/D/n=(num) xwave_Poly PolyOneShell, ywave_PolyPolyOneShell36 xwave_Poly PolyOneShell = alog(log(qmin) + x*((log(qmax)-log(qmin))/num))37 Make/O/D coef_Poly PolyOneShell = {1.,60,0.1,6.4e-6,10,1e-6,6.4e-6,0.001}38 make/o/t parameters_Poly PolyOneShell = {"scale","core radius (A)","Core Polydispersity(0,1)","Core SLD (A-2)","Shell thickness (A)","Shell SLD (A-2)","Solvent SLD (A-2)","bkg (cm-1)"}39 Edit parameters_Poly PolyOneShell, coef_PolyPolyOneShell40 41 Variable/G root:g_Poly PolyOneShell35 Make/O/D/n=(num) xwave_PolyOneShell, ywave_PolyOneShell 36 xwave_PolyOneShell = alog(log(qmin) + x*((log(qmax)-log(qmin))/num)) 37 Make/O/D coef_PolyOneShell = {1.,60,0.1,6.4e-6,10,1e-6,6.4e-6,0.001} 38 make/o/t parameters_PolyOneShell = {"scale","core radius (A)","Core Polydispersity(0,1)","Core SLD (A-2)","Shell thickness (A)","Shell SLD (A-2)","Solvent SLD (A-2)","bkg (cm-1)"} 39 Edit parameters_PolyOneShell, coef_PolyOneShell 40 41 Variable/G root:g_PolyOneShell 42 42 g_PolyOneShell := PolyOneShell(coef_PolyOneShell, ywave_PolyOneShell, xwave_PolyOneShell) 43 43 Display ywave_PolyOneShell vs xwave_PolyOneShell … … 52 52 End 53 53 54 Macro PlotPolyPolyTwoShell(num,qmin,qmax)54 Proc PlotPolyTwoShell(num,qmin,qmax) 55 55 Variable num=200, qmin=0.001, qmax=0.7 56 56 Prompt num "Enter number of data points for model: " … … 77 77 End 78 78 79 MacroPlotPolyThreeShell(num,qmin,qmax)79 Proc PlotPolyThreeShell(num,qmin,qmax) 80 80 Variable num=200, qmin=0.001, qmax=0.7 81 81 Prompt num "Enter number of data points for model: " … … 102 102 End 103 103 104 MacroPlotPolyFourShell(num,qmin,qmax)104 Proc PlotPolyFourShell(num,qmin,qmax) 105 105 Variable num=200, qmin=0.001, qmax=0.7 106 106 Prompt num "Enter number of data points for model: " … … 138 138 //////////////////////////////////////////////////// 139 139 // - sets up a dependency to a wrapper, not the actual SmearedModelFunction 140 MacroPlotSmearedPolyOneShell(str)140 Proc PlotSmearedPolyOneShell(str) 141 141 String str 142 142 Prompt str,"Pick the data folder containing the resolution you want",popup,getAList(4) … … 172 172 End 173 173 174 MacroPlotSmearedPolyTwoShell(str)174 Proc PlotSmearedPolyTwoShell(str) 175 175 String str 176 176 Prompt str,"Pick the data folder containing the resolution you want",popup,getAList(4) … … 207 207 208 208 209 MacroPlotSmearedPolyThreeShell(str)209 Proc PlotSmearedPolyThreeShell(str) 210 210 String str 211 211 Prompt str,"Pick the data folder containing the resolution you want",popup,getAList(4) … … 241 241 End 242 242 243 MacroPlotSmearedPolyFourShell(str)243 Proc PlotSmearedPolyFourShell(str) 244 244 String str 245 245 Prompt str,"Pick the data folder containing the resolution you want",popup,getAList(4)
Note: See TracChangeset
for help on using the changeset viewer.