Skip to content

Commit 86972e1

Browse files
authored
Merge pull request #226 from rowlesmr/add-pd_calc.intensity_bkg
2 parents 17511b2 + 5fdb199 commit 86972e1

File tree

1 file changed

+56
-15
lines changed

1 file changed

+56
-15
lines changed

cif_pow.dic

Lines changed: 56 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ save_PD_BACKGROUND
422422
The data items list here allow for the recording of the various coefficients
423423
used, rather than a complete enumeration of the value of the background
424424
calculated at every data point; although doing so is still possible - see
425-
_pd_proc.intensity_bkg_calc.
425+
_pd_calc.intensity_bkg.
426426

427427
The computed background values should include all normalization corrections,
428428
and thus are specified on the same scale as the observed intensities
@@ -4342,7 +4342,7 @@ save_PD_DATA
43424342
_pd_meas.2theta_scan
43434343
_pd_meas.intensity_total
43444344
_pd_calc.intensity_total
4345-
_pd_proc.intensity_bkg_calc
4345+
_pd_calc.intensity_bkg
43464346
1 5.001 43.364 25.994961 25.994961
43474347
2 5.004 38.007 26.200290 26.200290
43484348
3 5.007 38.318 26.404083 26.404083
@@ -4369,7 +4369,7 @@ save_PD_DATA
43694369
_pd_proc.intensity_total
43704370
_pd_proc.ls_weight
43714371
_pd_calc.intensity_total
4372-
_pd_proc.intensity_bkg_calc
4372+
_pd_calc.intensity_bkg
43734373
0 1110.30100 1.489225 0.60008 6528.86960 0.553025 0.504217
43744374
1 1114.74220 1.495170 0.63531 6316.37917 0.571286 0.504020
43754375
2 1119.20117 1.501138 0.64690 6107.85715 0.593895 0.503826
@@ -4611,6 +4611,36 @@ save_pd_calc.diffractogram_id
46114611

46124612
save_
46134613

4614+
save_pd_calc.intensity_bkg
4615+
4616+
_definition.id '_pd_calc.intensity_bkg'
4617+
_definition.update 2025-06-21
4618+
_description.text
4619+
;
4620+
Intensity values for the computed background of a
4621+
diffractogram at each data point. Values should be computed
4622+
at the same locations as the processed diffractogram, and
4623+
thus the numbers of points will be defined by
4624+
_pd_proc.number_of_points and point positions may
4625+
be defined using _pd_proc.2theta_range_* or
4626+
_pd_proc.2theta_corrected.
4627+
4628+
If the background is calculated in such a way that
4629+
s.u. values are available, prefer _pd_proc.intensity_bkg_calc.
4630+
4631+
See also PD_BACKGROUND.
4632+
;
4633+
_name.category_id pd_calc
4634+
_name.object_id intensity_bkg
4635+
_type.purpose Number
4636+
_type.source Derived
4637+
_type.container Single
4638+
_type.contents Real
4639+
_enumeration.range 0.0:
4640+
_units.code none
4641+
4642+
save_
4643+
46144644
save_pd_calc.intensity_net
46154645

46164646
_definition.id '_pd_calc.intensity_net'
@@ -4689,9 +4719,9 @@ save_pd_calc.intensity_total
46894719
_method.purpose Evaluation
46904720
_method.expression
46914721
;
4692-
t = pd_proc.intensity_bkg_calc
4722+
t = pd_calc.intensity_bkg
46934723
loop pcc as pd_calc_component {
4694-
t += pcc.intensity_total - pd_proc.intensity_bkg_calc
4724+
t += pcc.intensity_total - pd_calc.intensity_bkg
46954725
}
46964726
pd_calc.intensity_total = t
46974727
;
@@ -5684,15 +5714,18 @@ save_pd_proc.intensity_bkg_calc
56845714

56855715
_definition.id '_pd_proc.intensity_bkg_calc'
56865716
_alias.definition_id '_pd_proc_intensity_bkg_calc'
5687-
_definition.update 2014-06-20
5717+
_definition.update 2025-06-21
56885718
_description.text
56895719
;
56905720
Inclusion of s.u.'s for these values is strongly recommended.
56915721

56925722
_pd_proc.intensity_bkg_calc is intended to contain the
56935723
background intensity for every data point where the
56945724
background function has been fitted or estimated (for example, in
5695-
all Rietveld and profile fits).
5725+
all Rietveld and profile fits) where the background
5726+
values have an asssociated s.u..
5727+
5728+
If there is no s.u. value, prefer _pd_calc.intensity_bkg.
56965729
;
56975730
_name.category_id pd_proc
56985731
_name.object_id intensity_bkg_calc
@@ -5738,6 +5771,7 @@ save_pd_proc.intensity_bkg_fix
57385771
of '.' for data points where a fixed background has not
57395772
been defined. The extrapolated background at every point
57405773
may be specified using _pd_proc.intensity_bkg_calc.
5774+
See also _pd_calc.intensity_bkg.
57415775

57425776
Background values should be on the same scale as the
57435777
_pd_proc.intensity_net values. Thus normalization and
@@ -5884,11 +5918,11 @@ save_pd_proc.intensity_norm
58845918
Values in this data item are normalisation-corrected and contain
58855919
a background component.
58865920

5887-
Background values (for example, given by _pd_proc.intensity_bkg_calc)
5888-
should be on the same scale as the _pd_proc.intensity_net values.
5889-
Thus normalization and correction factors should be applied before
5890-
background subtraction (or should be applied to the background values
5891-
equally).
5921+
Background values (for example, given by _pd_proc.intensity_bkg_calc,
5922+
or _pd_calc.intensity_bkg) should be on the same scale as the
5923+
_pd_proc.intensity_net values. Thus normalization and correction
5924+
factors should be applied before background subtraction (or should be
5925+
applied to the background values equally).
58925926

58935927
Normalization factors applied to the data set (for
58945928
example, Lp corrections, compensation for variation in
@@ -10634,7 +10668,7 @@ save_pd_proc_ls.background_function
1063410668

1063510669
_definition.id '_pd_proc_ls.background_function'
1063610670
_alias.definition_id '_pd_proc_ls_background_function'
10637-
_definition.update 2014-06-20
10671+
_definition.update 2025-06-21
1063810672
_description.text
1063910673
;
1064010674
Description of the background treatment mechanism used to
@@ -10650,7 +10684,8 @@ save_pd_proc_ls.background_function
1065010684
coefficients used in the background function with their
1065110685
s.u.'s. The background values for each data point
1065210686
computed from the function should be specified in
10653-
_pd_proc.intensity_bkg_calc.
10687+
_pd_proc.intensity_bkg_calc or _pd_calc.intensity_bkg,
10688+
depending on if s.u. values are calculated for the bkg values.
1065410689

1065510690
If background correction is performed using extrapolation
1065610691
from a set of points at fixed locations, these points
@@ -10662,7 +10697,10 @@ save_pd_proc_ls.background_function
1066210697
etc.) and whether the values were refined to improve the
1066310698
agreement. The extrapolated background intensity value for
1066410699
each data point should be specified in
10665-
_pd_proc.intensity_bkg_calc.
10700+
_pd_proc.intensity_bkg_calc or _pd_calc.intensity_bkg,
10701+
depending on if s.u. values are calculated for the bkg values.
10702+
10703+
See also PD_BACKGROUND.
1066610704
;
1066710705
_name.category_id pd_proc_ls
1066810706
_name.object_id background_function
@@ -13104,6 +13142,9 @@ save_
1310413142
_pd_diffractogram.id, PD_PEAK, _pd_phase.id, PD_PHASE_MASSS, PD_PREP,
1310513143
PD_PROC_LS, PD_QPA_CALIB_FACTOR, PD_SPEC.
1310613144

13145+
Created _pd_calc.intensity_bkg and updated description of
13146+
_pd_proc.intensity_bkg_calc.
13147+
1310713148
PD_CALIB_WAVELENGTH removed. _diffrn_radiation_wavelength.phase_id
1310813149
and _diffrn_radiation_wavelength.diffractogram_id added to record
1310913150
the source of a refined wavelength value.

0 commit comments

Comments
 (0)