From 07f304ce9759622b344612ab2345bf55759ecd0f Mon Sep 17 00:00:00 2001 From: rasmusvt Date: Tue, 20 Sep 2022 20:25:30 +0200 Subject: [PATCH] Add new snippets --- nafuma/xrd/snippets.json | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/nafuma/xrd/snippets.json b/nafuma/xrd/snippets.json index 5b0f97d..00266bd 100644 --- a/nafuma/xrd/snippets.json +++ b/nafuma/xrd/snippets.json @@ -3,12 +3,19 @@ "capillary": [ "local !packing_density {} min 0.1 max 1.0 'typically 0.2 to 0.5", "local !capdia {} 'capillary diameter in mm", - "local !linab = Get(mixture_MAC) Get(mixture_density_g_on_cm3);: 'in cm-1", + "local !linab = Get(mixture_MAC) Get(mixture_density_g_on_cm3);: 100 'in cm-1", "local muR = (capdia/20)*linab*packing_density;", "Cylindrical_I_Correction(muR)" ], "gauss_fwhm": "gauss_fwhm = Sqrt({} Cos(2 * Th)^4 + {} Cos(2 * Th)^2 + {});", "lp_factor": "LP_Factor({}) 'change the LP correction or lh value if required", "wavelength": "lam ymin_on_ymax 0.0001 la 1.0 lo {} lh 0.1", - "zero_error": "Zero_Error(zero, 0)" + "zero_error": "Zero_Error(zero, 0)", + "th2_offset": [ + "prm zero \t\t\t0 \t\t\t\tmin = Max(Val - 20 Yobs_dx_at(X1), -100 Yobs_dx_at(X1)); max = Min(Val + 20 Yobs_dx_at(X2), 100 Yobs_dx_at(X2)); del = .01 Yobs_dx_at(X1); val_on_continue 0", + "prm cos_shift \t\t0 \t\t\t\tmin = Val-.8; max = Val+.8; del 0.001", + "prm sin_shift \t\t0 \t\t\t\tmin = Val-.8; max = Val+.8; del 0.001", + "th2_offset = (zero) + (cos_shift) Cos(Th) + (sin_shift) Sin(Th) ;" + ], + "fit_peak_width": "DC1( ad, 0, bd, 0, cd, 0)" } \ No newline at end of file