{"id":1888,"date":"2015-10-06T17:37:12","date_gmt":"2015-10-06T08:37:12","guid":{"rendered":"http:\/\/www.lookingatnothing.com\/?p=1888"},"modified":"2015-10-06T17:37:51","modified_gmt":"2015-10-06T08:37:51","slug":"does-it-matter-part-6-1-the-effect-of-finite-width-pixels","status":"publish","type":"post","link":"https:\/\/lookingatnothing.com\/index.php\/archives\/1888","title":{"rendered":"Does it matter part 6.1: The effect of finite width pixels"},"content":{"rendered":"<p>This short investigation was prompted by the instrument here at BAM and the associated Anton Paar software. The software determines the beam center behind the transparent beamstop, apparently based on a polynomial fit through (just) four datapoints. This means that the beam center can vary a bit from measurement to measurement, typically on the order of fractions of a pixel.<\/p>\n<p>We then set out to quantify just how much that, as well as the finite pixel width, would affect our size determination. Here is a back-of-the-envelope calculation&#8230;<\/p>\n<p><!--more--><\/p>\n<h4>Introduction<\/h4>\n<p>The finite pixel size gives us a pixel width in <img decoding=\"async\" src=\"https:\/\/s0.wp.com\/latex.php?latex=q&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002\" alt=\"q\" class=\"latex\" \/> which can affect the resolution of the smallest angles. This may have an effect on the accuracy of the sizes determined on this instrument. Similarly, variation in the sub-pixel beam center determination may also affect this accuracy.<\/p>\n<p>It should be a simple geometric calculation to find out by how much this affects our measurements.<\/p>\n<h4>Geometric data<\/h4>\n<p>We are using a Kratky camera with a sample-to-detector distance of 0.307 m. The pixel size on the Dectris Mythen detector attached to it is 50 <img decoding=\"async\" src=\"https:\/\/s0.wp.com\/latex.php?latex=%5Cmu&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002\" alt=\"&#92;mu\" class=\"latex\" \/>m. The radiation is Copper k<img decoding=\"async\" src=\"https:\/\/s0.wp.com\/latex.php?latex=_%7B%5Calpha+1%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002\" alt=\"_{&#92;alpha 1}\" class=\"latex\" \/> and k<img decoding=\"async\" src=\"https:\/\/s0.wp.com\/latex.php?latex=_%7B%5Calpha+2%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002\" alt=\"_{&#92;alpha 2}\" class=\"latex\" \/> radiation, whose mixture gives us an weighted apparent wavelength of 0.1542(2) nm. When we assume perpendicularity of the detector with the point of normal incidence at the beam center, the <img decoding=\"async\" src=\"https:\/\/s0.wp.com\/latex.php?latex=q_%7Bpixel%7D%3D+4%5Cpi+%2F+%5Clambda+%5Csin%28%5Ctheta_%5Cmathrm%7Bpixel%7D%29+%3D+6.64%5Ctimes+10%5E%7B-3%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002\" alt=\"q_{pixel}= 4&#92;pi \/ &#92;lambda &#92;sin(&#92;theta_&#92;mathrm{pixel}) = 6.64&#92;times 10^{-3}\" class=\"latex\" \/> nm<img decoding=\"async\" src=\"https:\/\/s0.wp.com\/latex.php?latex=%5E%7B-1%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002\" alt=\"^{-1}\" class=\"latex\" \/>. The useful data (peeking over the beamstop) starts at <img decoding=\"async\" src=\"https:\/\/s0.wp.com\/latex.php?latex=q+%5Capprox+0.08&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002\" alt=\"q &#92;approx 0.08\" class=\"latex\" \/> nm<img decoding=\"async\" src=\"https:\/\/s0.wp.com\/latex.php?latex=%5E%7B-1%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002\" alt=\"^{-1}\" class=\"latex\" \/>.<\/p>\n<h4>Approach<\/h4>\n<p>The relative uncertainty due to one pixel width in Q for the first 1000 pixels is shown in Figure 1. This shows that after ten pixels, the uncertainty in Q has reduced to 10% (which makes sense given what has been plotted here).<\/p>\n<figure id=\"attachment_1890\" aria-describedby=\"caption-attachment-1890\" style=\"width: 300px\" class=\"wp-caption alignright\"><a href=\"http:\/\/www.lookingatnothing.com\/wp-content\/uploads\/2015\/10\/RelQUnc.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1890\" src=\"http:\/\/www.lookingatnothing.com\/wp-content\/uploads\/2015\/10\/RelQUnc.png\" alt=\"Relative uncertainty in Q due to the finite pixel width\" width=\"300\" height=\"200\" \/><\/a><figcaption id=\"caption-attachment-1890\" class=\"wp-caption-text\"><strong>Figure 1:<\/strong> Relative uncertainty in Q due to the finite pixel width<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>So far, so straightforward. So how does this translate into uncertainty in the size determination? The approximation of <img decoding=\"async\" src=\"https:\/\/s0.wp.com\/latex.php?latex=R+%5Capprox+%5Cpi%2Fq&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002\" alt=\"R &#92;approx &#92;pi\/q\" class=\"latex\" \/> has been working reasonably well in my experience, so using that, we can get an estimate on the uncertainty in size. For somewhat polydisperse systems, <img decoding=\"async\" src=\"https:\/\/s0.wp.com\/latex.php?latex=R+%5Capprox+%5Cpi%2Fq&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002\" alt=\"R &#92;approx &#92;pi\/q\" class=\"latex\" \/> indicates the location of the transition to the <img decoding=\"async\" src=\"https:\/\/s0.wp.com\/latex.php?latex=I+%5Cpropto+q%5E%7B-4%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002\" alt=\"I &#92;propto q^{-4}\" class=\"latex\" \/> Porod slope.<\/p>\n<figure id=\"attachment_1889\" aria-describedby=\"caption-attachment-1889\" style=\"width: 300px\" class=\"wp-caption alignright\"><a href=\"http:\/\/www.lookingatnothing.com\/wp-content\/uploads\/2015\/10\/ApproxRadQ.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1889\" src=\"http:\/\/www.lookingatnothing.com\/wp-content\/uploads\/2015\/10\/ApproxRadQ.png\" alt=\"Approximate location of information of a given radius and its uncertainty due to the finite pixel width.\" width=\"300\" height=\"200\" \/><\/a><figcaption id=\"caption-attachment-1889\" class=\"wp-caption-text\"><strong>Figure 2:<\/strong> Approximate location of information of a given radius and its uncertainty due to the finite pixel width.<\/figcaption><\/figure>\n<p>We may estimate lower and upper limits of the deviation by using:<br \/>\n<img decoding=\"async\" src=\"https:\/\/s0.wp.com\/latex.php?latex=R_%2B+%5Capprox+%5Cfrac%7B%5Cpi%7D%7Bq+-+q_%5Cmathrm%7Bpixel%7D%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002\" alt=\"R_+ &#92;approx &#92;frac{&#92;pi}{q - q_&#92;mathrm{pixel}}\" class=\"latex\" \/> and <img decoding=\"async\" src=\"https:\/\/s0.wp.com\/latex.php?latex=R_-+%5Capprox+%5Cfrac%7B%5Cpi%7D%7Bq+%2B+q_%5Cmathrm%7Bpixel%7D%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002\" alt=\"R_- &#92;approx &#92;frac{&#92;pi}{q + q_&#92;mathrm{pixel}}\" class=\"latex\" \/> (c.f. Figure 2). This data in Figure 2 has been clipped from the onset of the useful data range (<img decoding=\"async\" src=\"https:\/\/s0.wp.com\/latex.php?latex=q%5Capprox+0.08&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002\" alt=\"q&#92;approx 0.08\" class=\"latex\" \/>), to a few datapoints above that. Not much to see here, since the error bars on the approximate radius are relatively small.<\/p>\n<p>The relative uncertainty on the radius for this instrument configuration can perhaps shed a little bit more light on the situation. This representation (Figure 3) is quite elucidating, showing a large uncertainty in size determination, solely due to the pixel width! You can see the problem reflected in the datapoint spacing: for large sizes, there are only a few datapoints available. In effect, for large sizes the uncertainty in size determination will approach several nm.<\/p>\n<figure id=\"attachment_1891\" aria-describedby=\"caption-attachment-1891\" style=\"width: 300px\" class=\"wp-caption alignright\"><a href=\"http:\/\/www.lookingatnothing.com\/wp-content\/uploads\/2015\/10\/RelUnc.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1891\" src=\"http:\/\/www.lookingatnothing.com\/wp-content\/uploads\/2015\/10\/RelUnc.png\" alt=\"Relative estimated uncertainty in the size determination, due to the finite width of the detector pixels.\" width=\"300\" height=\"200\" \/><\/a><figcaption id=\"caption-attachment-1891\" class=\"wp-caption-text\"><strong>Figure 3:<\/strong> Relative estimated uncertainty in the size determination, due to the finite width of the detector pixels.<\/figcaption><\/figure>\n<p>Note, that this does not even take the beam size on the detector into account, which would also add to the uncertainty. For the Kratky-type instruments, the beam width is typically 50-100 micrometer, but for standard pinhole-collimated instruments it may be much bigger. I would strongly recommend those using pinhole-collimated instruments to do this straightforward derivation for themselves so you can add a weight to your estimates.<\/p>\n<h4>Disclaimer<\/h4>\n<p>Now it should be stressed that this is only an estimate, and a more thorough derivation may be necessary to quantify the actual practical accuracy limits of the technique.<\/p>\n<p>However, if you have a polydisperse system you cannot benefit from fringes in the patterns to increase your accuracy. In that case, this <img decoding=\"async\" src=\"https:\/\/s0.wp.com\/latex.php?latex=R%5Capprox+pi%2Fq&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002\" alt=\"R&#92;approx pi\/q\" class=\"latex\" \/> approximation is quite indicative, and thus the uncertainties from geometric considerations alone will give you this result.<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>This short investigation was prompted by the instrument here at BAM and the associated Anton Paar software. The software determines the beam center behind the <a class=\"mh-excerpt-more\" href=\"https:\/\/lookingatnothing.com\/index.php\/archives\/1888\" title=\"Does it matter part 6.1: The effect of finite width pixels\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":2,"featured_media":1897,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-1888","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/lookingatnothing.com\/wp-content\/uploads\/2015\/10\/Alien_pixel.png","jetpack_shortlink":"https:\/\/wp.me\/p1gZ2v-us","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/posts\/1888","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/comments?post=1888"}],"version-history":[{"count":4,"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/posts\/1888\/revisions"}],"predecessor-version":[{"id":1899,"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/posts\/1888\/revisions\/1899"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/media\/1897"}],"wp:attachment":[{"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/media?parent=1888"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/categories?post=1888"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lookingatnothing.com\/index.php\/wp-json\/wp\/v2\/tags?post=1888"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}