{"id":182,"date":"2014-07-18T15:57:37","date_gmt":"2014-07-18T15:57:37","guid":{"rendered":"http:\/\/rammb.cira.colostate.edu\/projects\/alaska\/blog\/?p=182"},"modified":"2026-03-06T09:00:38","modified_gmt":"2026-03-06T16:00:38","slug":"revisiting-scaling-on-the-solstice","status":"publish","type":"post","link":"https:\/\/rammb2.cira.colostate.edu\/alaska\/blog\/uncategorized\/revisiting-scaling-on-the-solstice\/","title":{"rendered":"Revisiting Scaling on the Solstice"},"content":{"rendered":"\n<p>OK, so by this time, it&#8217;s about a month after the Summer Solstice in the Northern Hemisphere. If the title bothers you, just replace &#8220;solstice&#8221; with &#8220;summer&#8221;. Then replace &#8220;on the&#8221; with &#8220;now that it&#8217;s&#8221; to make the sentence grammatically correct.<\/p>\n\n\n\n<p>If you read the <a href=\"http:\/\/rammb.cira.colostate.edu\/projects\/alaska\/blog\/?p=8\" target=\"_blank\" rel=\"noopener\">very first post on this blog<\/a> (you may want to go back and read it again, even if you already did) you would know that it&#8217;s difficult to display VIIRS Day\/Night Band (DNB) imagery when the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Terminator_%28solar%29\" target=\"_blank\" rel=\"noopener\">day\/night terminator<\/a> is present. The data varies by 6-8 orders of magnitude between day and night (depending on the moon and other factors), which is tough to represent when you only have 256 colors available to make an image. That&#8217;s why the Near Constant Contrast EDR exists.<\/p>\n\n\n\n<p>But, what if you don&#8217;t have access to the Near Constant Contrast (NCC) data? Is there anything one can do to get useful information on both sides of the terminator in the same image?<\/p>\n\n\n\n<p>The short answer is: yes. The long answer is: yesss. But, that&#8217;s not to say the results are always going to be perfect.<\/p>\n\n\n\n<p>Over the years, I have acquired examples of things that various people or groups have tried that didn&#8217;t work. Like this one:<\/p>\n\n\n\n<figure class=\"wp-block-image alignnone\"><img loading=\"lazy\" decoding=\"async\" width=\"950\" height=\"888\" src=\"https:\/\/rammb2.cira.colostate.edu\/viirs-blog\/wp-content\/uploads\/sites\/8\/2014\/07\/VIIRS_AWIPS_example_201305011157.jpg\" alt=\"VIIRS DNB example from 11:57 UTC 1 May 2013\" class=\"wp-image-185\" srcset=\"https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/VIIRS_AWIPS_example_201305011157.jpg 950w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/VIIRS_AWIPS_example_201305011157-300x280.jpg 300w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/VIIRS_AWIPS_example_201305011157-768x718.jpg 768w\" sizes=\"auto, (max-width: 950px) 100vw, 950px\" \/><figcaption class=\"wp-element-caption\">VIIRS DNB example from 11:57 UTC 1 May 2013. This image is scaled for &#8220;day&#8221;, &#8220;night&#8221; and &#8220;twilight&#8221; regions. Image courtesy GINA.<\/figcaption><\/figure>\n\n\n\n<p>Or this one that you should have seen before (if you re-read the blog post I told you to read):<\/p>\n\n\n\n<figure class=\"wp-block-image alignnone\"><img loading=\"lazy\" decoding=\"async\" width=\"970\" height=\"912\" src=\"https:\/\/rammb2.cira.colostate.edu\/viirs-blog\/wp-content\/uploads\/sites\/8\/2013\/08\/GINA_viirs_day_night_band.png\" alt=\"DNB example using solar zenith angle-dependent scaling.\" class=\"wp-image-36\" srcset=\"https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2013\/08\/GINA_viirs_day_night_band.png 970w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2013\/08\/GINA_viirs_day_night_band-300x282.png 300w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2013\/08\/GINA_viirs_day_night_band-768x722.png 768w\" sizes=\"auto, (max-width: 970px) 100vw, 970px\" \/><figcaption class=\"wp-element-caption\">VIIRS DNB example from 12:48 UTC 13 August 2013. This image uses solar zenith angle-dependent scaling. Image courtesy of GINA.<\/figcaption><\/figure>\n\n\n\n<p>This is not to single anyone out (especially because I don&#8217;t know the names of the people who produced these images) &#8211; I&#8217;ve tried a number of things that didn&#8217;t work out either. Knowing why they don&#8217;t work is the key to finding something that does work.<\/p>\n\n\n\n<p>The first example tried to divide up the image into a &#8220;day&#8221; side, &#8220;night&#8221; side and &#8220;twilight&#8221; area in-between, then scale each region independently of the others. Of course, that leads to discontinuities at the boundaries of each region. (The brightest &#8220;twilight&#8221; pixels border the darkest &#8220;day&#8221; pixels, etc.)<\/p>\n\n\n\n<p>The second example broke up the image into many different zones based on solar zenith angle, and then (I assume) applied some kind of smoothing to prevent discontinuities. But, you still end up with a wavy pattern of anomalously brighter and darker areas within each solar zenith angle zones. That&#8217;s distracting.<\/p>\n\n\n\n<p>When I was developing software to produce Day\/Night Band imagery from across the globe, I thought I had something when I scaled the imagery based on the median radiance values in the image. (If you want to know how it worked, it was along these lines: scale the image linearly between <strong>max<\/strong> and <strong>min<\/strong> values where <strong>max<\/strong> = [<strong>median<\/strong>*8 &lt; maximum data value] and <strong>min<\/strong> = <strong>max<\/strong>\/256) You didn&#8217;t need to know if it was day or night. Unlike <a href=\"http:\/\/rammb.cira.colostate.edu\/projects\/alaska\/blog\/?p=8\" target=\"_blank\" rel=\"noopener\">before<\/a>, this scaling didn&#8217;t highlight the day side or the night side when the terminator was in the scene. It highlighted the twilight zone (<a href=\"http:\/\/www.youtube.com\/watch?v=NzlG28B-R8Y\" target=\"_blank\" rel=\"noopener\">Ahhh! Run away!<\/a>), like this:<\/p>\n\n\n\n<figure class=\"wp-block-image alignnone\"><img loading=\"lazy\" decoding=\"async\" width=\"3850\" height=\"3425\" src=\"https:\/\/rammb2.cira.colostate.edu\/viirs-blog\/wp-content\/uploads\/sites\/8\/2014\/07\/viirs_dnb_remapped_alaska_20140510133204.png\" alt=\"VIIRS DNB image from 13:32 UTC 10 May 2014\" class=\"wp-image-188\" srcset=\"https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/viirs_dnb_remapped_alaska_20140510133204.png 3850w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/viirs_dnb_remapped_alaska_20140510133204-300x267.png 300w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/viirs_dnb_remapped_alaska_20140510133204-1024x911.png 1024w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/viirs_dnb_remapped_alaska_20140510133204-768x683.png 768w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/viirs_dnb_remapped_alaska_20140510133204-1536x1366.png 1536w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/viirs_dnb_remapped_alaska_20140510133204-2048x1822.png 2048w\" sizes=\"auto, (max-width: 3850px) 100vw, 3850px\" \/><figcaption class=\"wp-element-caption\">VIIRS DNB image from 13:32 UTC 10 May 2014. This image uses &#8220;median-based&#8221; linear scaling, as described in the text.<\/figcaption><\/figure>\n\n\n\n<p>Not perfect. But, in my defense, this scaling does work for most of the globe. The tropical group at CIRA uses it for their DNB images on &#8220;<a href=\"http:\/\/rammb.cira.colostate.edu\/products\/tc_realtime\/\" target=\"_blank\" rel=\"noopener\">TC Realtime<\/a>&#8220;. Also, it doesn&#8217;t work too bad near the solstice, when most of Alaska is on the &#8220;day&#8221; side of the terminator, even in the primary &#8220;nighttime&#8221; overpass:<\/p>\n\n\n\n<figure class=\"wp-block-image alignnone\"><img loading=\"lazy\" decoding=\"async\" width=\"3850\" height=\"3425\" src=\"https:\/\/rammb2.cira.colostate.edu\/viirs-blog\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNBorig_20140621134808.png\" alt=\"VIIRS DNB image from 13:48 UTC 21 June 2014\" class=\"wp-image-189\" srcset=\"https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNBorig_20140621134808.png 3850w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNBorig_20140621134808-300x267.png 300w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNBorig_20140621134808-1024x911.png 1024w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNBorig_20140621134808-768x683.png 768w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNBorig_20140621134808-1536x1366.png 1536w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNBorig_20140621134808-2048x1822.png 2048w\" sizes=\"auto, (max-width: 3850px) 100vw, 3850px\" \/><figcaption class=\"wp-element-caption\">VIIRS DNB image from 13:48 UTC 21 June 2014. This image uses &#8220;median-based&#8221; linear scaling, as described in the text.<\/figcaption><\/figure>\n\n\n\n<p>It has the added benefit that you can associate each level of brightness with a specific radiance value.<\/p>\n\n\n\n<p>Now, I was going to leave my DNB scaling as is because, &#8220;Hey, we can just use the Near Constant Contrast (NCC) in these situations. Why break my back trying to re-invent the wheel?&#8221; That is, after all,&nbsp; the primary point of the NCC &#8211; to make it easy to display DNB across the terminator. Then CIRA temporarily lost access to NCC data. My hand was forced. I had to think of a solution.<\/p>\n\n\n\n<p>How about this idea: instead of finding the median value of the whole domain, break up the domain into small zones according to solar zenith angle, and then apply the same &#8220;median-based&#8221; linear scaling? Here&#8217;s what you get if you break up the image into solar zenith angle bins of 0.01 degrees:<\/p>\n\n\n\n<figure class=\"wp-block-image alignnone\"><img loading=\"lazy\" decoding=\"async\" width=\"3850\" height=\"3425\" src=\"https:\/\/rammb2.cira.colostate.edu\/viirs-blog\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNBv1_20140621134808.png\" alt=\"VIIRS DNB image from 13:48 UTC 21 June 2014\" class=\"wp-image-190\" srcset=\"https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNBv1_20140621134808.png 3850w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNBv1_20140621134808-300x267.png 300w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNBv1_20140621134808-1024x911.png 1024w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNBv1_20140621134808-768x683.png 768w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNBv1_20140621134808-1536x1366.png 1536w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNBv1_20140621134808-2048x1822.png 2048w\" sizes=\"auto, (max-width: 3850px) 100vw, 3850px\" \/><figcaption class=\"wp-element-caption\">VIIRS DNB image from 13:48 UTC 21 June 2014. This image uses &#8220;median-based&#8221; linear scaling over zones grouped by solar zenith angle.<\/figcaption><\/figure>\n\n\n\n<p>Not bad. You get a lot of contrast throughout the image (particularly on the &#8220;night&#8221; side), but it still has stripes in it. This is due to the fact that the presence or absence of clouds (or city lights or whatever) is constantly changing the distribution of radiances within each solar zenith angle bin. The stripes get larger if you use larger bins. Smaller bins means a smaller sample size and, therefore, &#8220;less stable&#8221; median values. What we need is more of an absolute scale rather than a relative scale.<\/p>\n\n\n\n<p>At this point, it occurred to me that Steve Miller at CIRA (my boss, but that doesn&#8217;t mean I&#8217;m brown-nosing) already came up with a solution. He developed a &#8220;dynamic scaling&#8221; method where <strong>max<\/strong> and <strong>min<\/strong> are based solely on the solar and lunar zenith angles.<\/p>\n\n\n\n<figure class=\"wp-block-image alignnone\"><img loading=\"lazy\" decoding=\"async\" width=\"959\" height=\"522\" src=\"https:\/\/rammb2.cira.colostate.edu\/viirs-blog\/wp-content\/uploads\/sites\/8\/2014\/07\/DynSclExamp2.png\" alt=\"VIIRS DNB images from 1 June 2014 and 14 June 2014 spanning the terminator\" class=\"wp-image-209\" srcset=\"https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/DynSclExamp2.png 959w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/DynSclExamp2-300x163.png 300w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/DynSclExamp2-768x418.png 768w\" sizes=\"auto, (max-width: 959px) 100vw, 959px\" \/><figcaption class=\"wp-element-caption\">VIIRS DNB images from 1 June 2014 and 14 June 2014 spanning the terminator. These images use &#8220;dynamic scaling&#8221; as defined in the text.<\/figcaption><\/figure>\n\n\n\n<p>As you can see, the dynamic scaling produces good contrast on both sides of the terminator, which is what users are typically looking for. It&#8217;s important to be able to identify clouds and surface features (like icebergs, for example) throughout the entire image &#8211; not just on one side or the other or just in the middle.<\/p>\n\n\n\n<p>In my bungled attempt to apply his dynamic scaling within my software, I had another epiphany. If you plot the radiance values (on a log-scale) as a function of solar zenith angle across the terminator, you get something that looks like this:<\/p>\n\n\n\n<figure class=\"wp-block-image alignnone\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"1000\" src=\"https:\/\/rammb2.cira.colostate.edu\/viirs-blog\/wp-content\/uploads\/sites\/8\/2014\/07\/fig2.gif\" alt=\"Observed DNB radiance values as a function of solar zenith angle\" class=\"wp-image-193\"\/><figcaption class=\"wp-element-caption\">Scatterplot of observed DNB radiance values as a function of solar zenith angle for the 13:53 UTC 12 July 2014 overpass. Gray curves represent the max and min bounds used for the scaling.<\/figcaption><\/figure>\n\n\n\n<p>Doesn&#8217;t that look a lot like the <a href=\"http:\/\/mathworld.wolfram.com\/Erf.html\" target=\"_blank\" rel=\"noopener\">error function<\/a> turned sideways? This became the basis for a new form of &#8220;dynamic scaling&#8221;: find the error function that fits the maximum and minimum expected values of the data as a function of solar and lunar zenith angles.&nbsp; In fact, those are the curves plotted on the graph. Steve Miller&#8217;s dynamic scaling is simply a <a href=\"http:\/\/mathworld.wolfram.com\/PiecewiseFunction.html\" target=\"_blank\" rel=\"noopener\">piecewise<\/a> linear approximation to my error function curves. (Or, more correctly, you could say my error function curves are a continuous approximation of his piecewise functions.)<\/p>\n\n\n\n<p>A similar error-function-like distribution of radiance values occurs across the moon\/no-moon terminator, except the range is only 2-3 orders of magnitude instead of 6-7. We simply multiply the lunar zenith angle-fitted error function and the solar zenith angle-fitted error function on the &#8220;night&#8221; side to account for the variation in radiance from full moon to new moon.&nbsp; When you do that (and apply a square-root correction), you get this image from a night with a full moon:<\/p>\n\n\n\n<figure class=\"wp-block-image alignnone\"><img loading=\"lazy\" decoding=\"async\" width=\"3850\" height=\"3425\" src=\"https:\/\/rammb2.cira.colostate.edu\/viirs-blog\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNB_20140712135320.png\" alt=\"VIIRS DNB image from 13:53 UTC 12 July 2014\" class=\"wp-image-196\" srcset=\"https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNB_20140712135320.png 3850w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNB_20140712135320-300x267.png 300w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNB_20140712135320-1024x911.png 1024w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNB_20140712135320-768x683.png 768w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNB_20140712135320-1536x1366.png 1536w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNB_20140712135320-2048x1822.png 2048w\" sizes=\"auto, (max-width: 3850px) 100vw, 3850px\" \/><figcaption class=\"wp-element-caption\">VIIRS DNB image from 13:53 UTC 12 July 2014. This image uses &#8220;erf-dynamic scaling&#8221; as described in the text.<\/figcaption><\/figure>\n\n\n\n<p>And this image from a few nights after last quarter moon:<\/p>\n\n\n\n<figure class=\"wp-block-image alignnone\"><img loading=\"lazy\" decoding=\"async\" width=\"3850\" height=\"3425\" src=\"https:\/\/rammb2.cira.colostate.edu\/viirs-blog\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNB_20140621134808.png\" alt=\"VIIRS DNB image from 13:48 UTC 21 June 2014\" class=\"wp-image-197\" srcset=\"https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNB_20140621134808.png 3850w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNB_20140621134808-300x267.png 300w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNB_20140621134808-1024x911.png 1024w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNB_20140621134808-768x683.png 768w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNB_20140621134808-1536x1366.png 1536w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNB_20140621134808-2048x1822.png 2048w\" sizes=\"auto, (max-width: 3850px) 100vw, 3850px\" \/><figcaption class=\"wp-element-caption\">VIIRS DNB image from 13:48 UTC 21 June 2014. This image uses &#8220;erf-dynamic scaling&#8221; as described in the text.<\/figcaption><\/figure>\n\n\n\n<p>These compare pretty well with the Near Constant Contrast imagery from the same times:<\/p>\n\n\n\n<figure class=\"wp-block-image alignnone\"><img loading=\"lazy\" decoding=\"async\" width=\"3850\" height=\"3425\" src=\"https:\/\/rammb2.cira.colostate.edu\/viirs-blog\/wp-content\/uploads\/sites\/8\/2014\/07\/VNCCOv1_20140712135440.png\" alt=\"VIIRS NCC image from 13:53 UTC 12 July 2014\" class=\"wp-image-201\" srcset=\"https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/VNCCOv1_20140712135440.png 3850w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/VNCCOv1_20140712135440-300x267.png 300w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/VNCCOv1_20140712135440-1024x911.png 1024w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/VNCCOv1_20140712135440-768x683.png 768w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/VNCCOv1_20140712135440-1536x1366.png 1536w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/VNCCOv1_20140712135440-2048x1822.png 2048w\" sizes=\"auto, (max-width: 3850px) 100vw, 3850px\" \/><figcaption class=\"wp-element-caption\">VIIRS NCC image from 13:53 UTC 12 July 2014.<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image alignnone\"><img loading=\"lazy\" decoding=\"async\" width=\"3850\" height=\"3425\" src=\"https:\/\/rammb2.cira.colostate.edu\/viirs-blog\/wp-content\/uploads\/sites\/8\/2014\/07\/VNCCO_20140621134225.png\" alt=\"VIIRS NCC image from 13:48 UTC 21 June 2014\" class=\"wp-image-202\" srcset=\"https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/VNCCO_20140621134225.png 3850w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/VNCCO_20140621134225-300x267.png 300w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/VNCCO_20140621134225-1024x911.png 1024w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/VNCCO_20140621134225-768x683.png 768w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/VNCCO_20140621134225-1536x1366.png 1536w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/VNCCO_20140621134225-2048x1822.png 2048w\" sizes=\"auto, (max-width: 3850px) 100vw, 3850px\" \/><figcaption class=\"wp-element-caption\">VIIRS NCC image from 13:48 UTC 21 June 2014.<\/figcaption><\/figure>\n\n\n\n<p>Here&#8217;s what the piecewise linear dynamic scaling gives you:<\/p>\n\n\n\n<figure class=\"wp-block-image alignnone\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/rammb2.cira.colostate.edu\/viirs-blog\/wp-content\/uploads\/sites\/8\/2014\/07\/20140621.1343.NPP_.VIIRS_.dnb_rad_terminator.Arctic_Alaska_Overview.x-1024x1024.jpg\" alt=\"VIIRS DNB image from 13:43 UTC 21 June 2014\" class=\"wp-image-207\" srcset=\"https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/20140621.1343.NPP_.VIIRS_.dnb_rad_terminator.Arctic_Alaska_Overview.x-1024x1024.jpg 1024w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/20140621.1343.NPP_.VIIRS_.dnb_rad_terminator.Arctic_Alaska_Overview.x-300x300.jpg 300w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/20140621.1343.NPP_.VIIRS_.dnb_rad_terminator.Arctic_Alaska_Overview.x-150x150.jpg 150w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/20140621.1343.NPP_.VIIRS_.dnb_rad_terminator.Arctic_Alaska_Overview.x-768x768.jpg 768w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/20140621.1343.NPP_.VIIRS_.dnb_rad_terminator.Arctic_Alaska_Overview.x-1536x1536.jpg 1536w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/20140621.1343.NPP_.VIIRS_.dnb_rad_terminator.Arctic_Alaska_Overview.x-2048x2048.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">VIIRS DNB image from 13:43 UTC 21 June 2014. This image uses &#8220;dynamic scaling&#8221; as described in the text.<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image alignnone\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/rammb2.cira.colostate.edu\/viirs-blog\/wp-content\/uploads\/sites\/8\/2014\/07\/20140713.1331.NPP_.VIIRS_.dnb_rad_terminator.Arctic_Alaska_Overview.x-1024x1024.jpg\" alt=\"VIIRS DNB image from 13:31 UTC 13 July 2014\" class=\"wp-image-210\" srcset=\"https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/20140713.1331.NPP_.VIIRS_.dnb_rad_terminator.Arctic_Alaska_Overview.x-1024x1024.jpg 1024w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/20140713.1331.NPP_.VIIRS_.dnb_rad_terminator.Arctic_Alaska_Overview.x-300x300.jpg 300w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/20140713.1331.NPP_.VIIRS_.dnb_rad_terminator.Arctic_Alaska_Overview.x-150x150.jpg 150w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/20140713.1331.NPP_.VIIRS_.dnb_rad_terminator.Arctic_Alaska_Overview.x-768x768.jpg 768w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/20140713.1331.NPP_.VIIRS_.dnb_rad_terminator.Arctic_Alaska_Overview.x-1536x1536.jpg 1536w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/20140713.1331.NPP_.VIIRS_.dnb_rad_terminator.Arctic_Alaska_Overview.x-2048x2048.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">VIIRS DNB image from 13:31 UTC 13 July 2014. This image uses &#8220;dynamic scaling&#8221; as described in the text.<\/figcaption><\/figure>\n\n\n\n<p>And, if you&#8217;re curious, the &#8220;erf-dynamic scaling&#8221; works just as well during the day as it does at the terminator. Here is an example of the DNB with this scaling, followed by the associated NCC image:<\/p>\n\n\n\n<figure class=\"wp-block-image alignnone\"><img loading=\"lazy\" decoding=\"async\" width=\"3850\" height=\"3425\" src=\"https:\/\/rammb2.cira.colostate.edu\/viirs-blog\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNB_20140621220144.png\" alt=\"VIIRS DNB image from 22:01 UTC 21 June 2014\" class=\"wp-image-203\" srcset=\"https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNB_20140621220144.png 3850w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNB_20140621220144-300x267.png 300w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNB_20140621220144-1024x911.png 1024w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNB_20140621220144-768x683.png 768w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNB_20140621220144-1536x1366.png 1536w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/SVDNB_20140621220144-2048x1822.png 2048w\" sizes=\"auto, (max-width: 3850px) 100vw, 3850px\" \/><figcaption class=\"wp-element-caption\">VIIRS DNB image from 22:01 UTC 21 June 2014. This image uses &#8220;erf-dynamic scaling&#8221; as described in the text.<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image alignnone\"><img loading=\"lazy\" decoding=\"async\" width=\"3850\" height=\"3425\" src=\"https:\/\/rammb2.cira.colostate.edu\/viirs-blog\/wp-content\/uploads\/sites\/8\/2014\/07\/VNCCO_20140621215843.png\" alt=\"VIIRS NCC image from 21:58 UTC 21 June 2014\" class=\"wp-image-204\" srcset=\"https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/VNCCO_20140621215843.png 3850w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/VNCCO_20140621215843-300x267.png 300w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/VNCCO_20140621215843-1024x911.png 1024w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/VNCCO_20140621215843-768x683.png 768w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/VNCCO_20140621215843-1536x1366.png 1536w, https:\/\/rammb2.cira.colostate.edu\/alaska\/wp-content\/uploads\/sites\/8\/2014\/07\/VNCCO_20140621215843-2048x1822.png 2048w\" sizes=\"auto, (max-width: 3850px) 100vw, 3850px\" \/><figcaption class=\"wp-element-caption\">VIIRS NCC image from 21:58 UTC 21 June 2014.<\/figcaption><\/figure>\n\n\n\n<p>Of course, the exact form of the error functions could be tweaked here or there to provide a better fit to the natural variability of the observed radiances. But, after one lunar cycle of testing, the results look promising. It <em>is<\/em> possible to scale the Day\/Night Band across the terminator to provide useful information for &#8220;day&#8221; and &#8220;night&#8221; (and even across the scary twilight zone)!<\/p>\n\n\n\n<p>&nbsp;<\/p>\n\n\n\n<p>UPDATE (27 January 2015): The &#8220;erf-dynamic scaling&#8221; algorithm has been implemented in <a href=\"http:\/\/cimss.ssec.wisc.edu\/cspp\/\" target=\"_blank\" rel=\"noopener\">CSPP<\/a>. So users of that software product should be on the look-out for the latest version. (It was added in October or November 2014. I don&#8217;t know the actual date.) Thanks to the folks at <a href=\"http:\/\/cimss.ssec.wisc.edu\/\" target=\"_blank\" rel=\"noopener\">CIMSS<\/a> who develop CSPP for quickly adding this! We look forward to collaborating more with the CSPP developers on future products.&nbsp; Also, you can read about a correction to the &#8220;erf-dynamic scaling&#8221; algorithm <a href=\"http:\/\/rammb.cira.colostate.edu\/projects\/alaska\/blog\/index.php\/uncategorized\/revisiting-revisiting-scaling-on-the-solstice\/\" target=\"_blank\" rel=\"noopener\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OK, so by this time, it&#8217;s about a month after the Summer Solstice in the Northern Hemisphere. If the title bothers you, just replace &#8220;solstice&#8221; with &#8220;summer&#8221;. Then replace &#8220;on the&#8221; with &#8220;now that it&#8217;s&#8221; to make the sentence grammatically correct. If you read the very first post on this blog (you may want to [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[13,52],"class_list":["post-182","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-daynight","tag-twilight"],"_links":{"self":[{"href":"https:\/\/rammb2.cira.colostate.edu\/alaska\/blog\/wp-json\/wp\/v2\/posts\/182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rammb2.cira.colostate.edu\/alaska\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rammb2.cira.colostate.edu\/alaska\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rammb2.cira.colostate.edu\/alaska\/blog\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/rammb2.cira.colostate.edu\/alaska\/blog\/wp-json\/wp\/v2\/comments?post=182"}],"version-history":[{"count":11,"href":"https:\/\/rammb2.cira.colostate.edu\/alaska\/blog\/wp-json\/wp\/v2\/posts\/182\/revisions"}],"predecessor-version":[{"id":651,"href":"https:\/\/rammb2.cira.colostate.edu\/alaska\/blog\/wp-json\/wp\/v2\/posts\/182\/revisions\/651"}],"wp:attachment":[{"href":"https:\/\/rammb2.cira.colostate.edu\/alaska\/blog\/wp-json\/wp\/v2\/media?parent=182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rammb2.cira.colostate.edu\/alaska\/blog\/wp-json\/wp\/v2\/categories?post=182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rammb2.cira.colostate.edu\/alaska\/blog\/wp-json\/wp\/v2\/tags?post=182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}