<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>map &#8211; Matthew Petroff</title>
	<atom:link href="https://mpetroff.net/tag/map/feed/" rel="self" type="application/rss+xml" />
	<link>https://mpetroff.net</link>
	<description>mpetroff.net</description>
	<lastBuildDate>Tue, 09 May 2023 00:39:57 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>An Improved CMB Map Colormap</title>
		<link>https://mpetroff.net/2023/05/an-improved-cmb-map-colormap/</link>
					<comments>https://mpetroff.net/2023/05/an-improved-cmb-map-colormap/#respond</comments>
		
		<dc:creator><![CDATA[Matthew Petroff]]></dc:creator>
		<pubDate>Tue, 09 May 2023 00:38:44 +0000</pubDate>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[CLASS]]></category>
		<category><![CDATA[CMB]]></category>
		<category><![CDATA[color vision deficiency]]></category>
		<category><![CDATA[colormap]]></category>
		<category><![CDATA[map]]></category>
		<guid isPermaLink="false">https://mpetroff.net/?p=3640</guid>

					<description><![CDATA[Although a variety of colormaps have previously been specifically developed for displaying cosmic microwave background (CMB) maps, none of these have been designed with perceptual uniformity or color-vision-deficiency (CVD) accessibility in mind. To improve upon this status quo, in support &#8230; <a href="https://mpetroff.net/2023/05/an-improved-cmb-map-colormap/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p><span class="dropcap">A</span>lthough a variety of colormaps have <a href="https://ui.adsabs.harvard.edu/abs/1994ApJ...436..423B/abstract">previously</a> <a href="https://ui.adsabs.harvard.edu/abs/1996ApJ...464L...1B/abstract">been</a> <a href="https://ui.adsabs.harvard.edu/abs/2013ApJS..208...20B/abstract">specifically</a> <a href="https://ui.adsabs.harvard.edu/abs/2020A%26A...641A...1P/abstract">developed</a> for displaying cosmic microwave background (CMB) maps, none of these have been designed with perceptual uniformity or color-vision-deficiency (CVD) accessibility in mind. To improve upon this status quo, in support of <a href="https://arxiv.org/abs/2305.01045">publications</a><sup id="rf1-3640"><a href="https://mpetroff.net/2023/05/an-improved-cmb-map-colormap/#fn1-3640" title=" Y. Li et al., &#8220;CLASS Data Pipeline and Maps for 40&thinsp;GHz Observations through 2022&#8221;, &lt;a href=&quot;https://arxiv.org/abs/2305.01045&quot;&gt;arXiv:2305.01045&lt;/a&gt;. " rel="footnote">1</a></sup> for the 2022 data release for the <a href="https://sites.krieger.jhu.edu/class/">Cosmology Large Angular Scale Surveyor (CLASS)</a>, I used Matplotlib&#8217;s <a href="https://github.com/matplotlib/viscm">Viscm</a> tool to develop a new diverging colormap that resembles the <em>Planck</em> colormap but is mostly perceptually uniform and is perceived similarly by both individuals with typical color vision and those with red or green color-vision deficiencies. The Q-band Stokes <em>U</em> map from the CLASS paper, which uses the new colormap, is shown below.</p>
<p><a href="https://cdn0.mpetroff.net/wp-content/uploads/2023/05/class-u-map.png" title="CLASS Q-band U Map with New Colormap" data-sbox="3640"><img loading="lazy" decoding="async" src="https://cdn0.mpetroff.net/wp-content/uploads/2023/05/class-u-map-640x320.png" alt="A CMB map in equatorial coordinates is shown under Mollweide projection. Data are shown for around 70% of the sky, and the Galactic plane is visible. The new colormap discussed in this blog post is used, starting from blue to a warm light gray and then to red." width="640" height="320" class="aligncenter size-large wp-image-3655" srcset="https://cdn0.mpetroff.net/wp-content/uploads/2023/05/class-u-map-640x320.png 640w, https://cdn0.mpetroff.net/wp-content/uploads/2023/05/class-u-map-300x150.png 300w, https://cdn0.mpetroff.net/wp-content/uploads/2023/05/class-u-map.png 1280w" sizes="auto, (max-width: 640px) 100vw, 640px" /></a><span id="more-3640"></span></p>
<p>Starting with prior art, the <em>Planck</em> colormap is a diverging colormap, but it has discontinuities in its perceptual derivative, causing visible banding issues. Here is the output for it from Viscm.</p>
<p><a href="https://cdn0.mpetroff.net/wp-content/uploads/2023/05/planck.png" title="Viscm output for the Planck colormap" data-sbox="3640"><img loading="lazy" decoding="async" src="https://cdn0.mpetroff.net/wp-content/uploads/2023/05/planck-640x384.png" alt="A visualization shows abrupt changes in the perceptual derivative of the Planck colormap, which goes from blue to red, and visible banding in test images." width="640" height="384" class="aligncenter size-large wp-image-3647" srcset="https://cdn0.mpetroff.net/wp-content/uploads/2023/05/planck-640x384.png 640w, https://cdn0.mpetroff.net/wp-content/uploads/2023/05/planck-300x180.png 300w, https://cdn0.mpetroff.net/wp-content/uploads/2023/05/planck-1536x922.png 1536w, https://cdn0.mpetroff.net/wp-content/uploads/2023/05/planck-1280x768.png 1280w, https://cdn0.mpetroff.net/wp-content/uploads/2023/05/planck.png 2000w" sizes="auto, (max-width: 640px) 100vw, 640px" /></a></p>
<p>And here is how it performs by <a href="/2019/08/discernibility-of-rainbow-colormaps/">the CVD metric I previously developed</a> to evaluate the <em>Turbo</em> colormap (which performs poorly by it). Along with the cusps from the issues with the perceptual derivative, there is a clear imbalance in the metric around the center of the colormap for red and green color-vision deficiencies.</p>
<p style="text-align: center;"><img decoding="async" src="https://cdn0.mpetroff.net/wp-content/uploads/2023/05/planck.svg" alt="A plot shows lines with cusps for the CVD metric as a function of colormap position. For deuteranopia and protanopia, there is a clear imbalance around the center of the colormap." /></p>
<p>As a first attempt to improve upon this, I fit splines to the color values and applied various levels of smoothing. With small amounts of smoothing, this rounded off the perceptual discontinuities&mdash;fixing the worst of the issues&mdash;but left much room for improvement; applying more aggressive smoothing further improved the perceptual issues but also more significantly changed the colormap in a manner that my colleagues did not like aesthetically.</p>
<p>For my second attempt, I started by trying to replicate the <em>Planck</em> colormap in Viscm. In the process, I solicited feedback from my colleagues, resulting in tweaks such as moving the mid point from a neutral gray to a slightly warmer color temperature. While this resolved the perceptual uniformity issues, parts of the colormap were less than uniform for individuals with color vision deficiencies. I then iteratively made changes and ran the results through the CVD metric, until the results roughly matched between typical color vision and red and green color-vision deficiencies. Here is the output of Viscm for the new colormap.</p>
<p><a href="https://cdn0.mpetroff.net/wp-content/uploads/2023/05/class.png" title="Viscm output for new CLASS colormap" data-sbox="3640"><img loading="lazy" decoding="async" src="https://cdn0.mpetroff.net/wp-content/uploads/2023/05/class-640x384.png" alt="A visualization shows the uniformity of the perceptual derivative of the CLASS colormap, which goes from blue to red, and test images do not show banding." width="640" height="384" class="aligncenter size-large wp-image-3650" srcset="https://cdn0.mpetroff.net/wp-content/uploads/2023/05/class-640x384.png 640w, https://cdn0.mpetroff.net/wp-content/uploads/2023/05/class-300x180.png 300w, https://cdn0.mpetroff.net/wp-content/uploads/2023/05/class-1536x922.png 1536w, https://cdn0.mpetroff.net/wp-content/uploads/2023/05/class-1280x768.png 1280w, https://cdn0.mpetroff.net/wp-content/uploads/2023/05/class.png 2000w" sizes="auto, (max-width: 640px) 100vw, 640px" /></a></p>
<p>And here is how it performs by my previously-developed metric.</p>
<p style="text-align: center;"><img decoding="async" src="https://cdn0.mpetroff.net/wp-content/uploads/2023/05/class.svg" alt="A plot shows relatively smooth and consistent lines for the CVD metric as a function of colormap position for the new CLASS colormap for typical color vision, deuteranopia, and protanopia. The metric for tritanopia diverges a bit from the other values." /></p>
<p>While a significant improvement upon the status quo, the new colormap is not perfect, and I think other diverging colormaps such as Peter Kovesi&#8217;s <a href="https://colorcet.com/gallery.html">CET-D07 colormap</a> (<code>cet_bjy</code> in Python&#8217;s <a href="https://colorcet.holoviz.org/">Colorcet package</a>), which is both linear and diverging, or some of <a href="https://www.fabiocrameri.ch/colourmaps/">Fabio Crameri&#8217;s colormaps</a> are better choices for most applications. However, the new colormap is probably good enough for CMB maps, where exact values do not need to be read off of the maps by eye, while keeping a similar aesthetic to existing publications.</p>
<p>A <a href="https://cdn0.mpetroff.net/wp-content/uploads/2023/05/colormap.py">Python file</a> that can be imported to use the colormap with Matplotlib or Healpy and the <a href="https://cdn0.mpetroff.net/wp-content/uploads/2023/05/colormap.jscm">JSCM output</a> from Viscm are available.</p>
<hr class="footnotes"><ol class="footnotes" style="list-style-type:decimal"><li id="fn1-3640"><p > Y. Li et al., &#8220;CLASS Data Pipeline and Maps for 40&thinsp;GHz Observations through 2022&#8221;, <a href="https://arxiv.org/abs/2305.01045">arXiv:2305.01045</a>. &nbsp;<a href="https://mpetroff.net/2023/05/an-improved-cmb-map-colormap/#rf1-3640" class="backlink" title="Return to footnote 1.">&#8617;</a></p></li></ol>]]></content:encoded>
					
					<wfw:commentRss>https://mpetroff.net/2023/05/an-improved-cmb-map-colormap/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Square Equal-area Map Projection</title>
		<link>https://mpetroff.net/2021/08/square-equal-area-map-projection/</link>
					<comments>https://mpetroff.net/2021/08/square-equal-area-map-projection/#comments</comments>
		
		<dc:creator><![CDATA[Matthew Petroff]]></dc:creator>
		<pubDate>Mon, 30 Aug 2021 17:12:16 +0000</pubDate>
				<category><![CDATA[Research]]></category>
		<category><![CDATA[equal-area]]></category>
		<category><![CDATA[map]]></category>
		<category><![CDATA[panorama]]></category>
		<category><![CDATA[projection]]></category>
		<guid isPermaLink="false">https://mpetroff.net/?p=3482</guid>

					<description><![CDATA[Several weeks ago, my paper on a novel square equal-area map projection was published in ACM Transactions on Spatial Algorithms and Systems, titled A Square Equal-Area Map Projection with Low Angular Distortion, Minimal Cusps, and Closed-Form Solutions. For mathematical details, &#8230; <a href="https://mpetroff.net/2021/08/square-equal-area-map-projection/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p><span class="dropcap">S</span>everal weeks ago, my paper on a novel square equal-area map projection was published in <em>ACM Transactions on Spatial Algorithms and Systems</em>, titled <a href="https://doi.org/10.1145/3460521"><em>A Square Equal-Area Map Projection with Low Angular Distortion, Minimal Cusps, and Closed-Form Solutions</em></a>. For mathematical details, the reader is directed to the paper, but I&#8217;ll discuss what motivated its development and outline the projection&#8217;s benefits here. The projection uses a quincuncial arrangement, which places the north pole at the center and splits the south pole between the four corners of the square, forming a quincunx pattern that resembles the &#8220;five&#8221; marking on a standard six-sided die. This arrangement has been previously used by the <a href="https://en.wikipedia.org/wiki/Peirce_quincuncial_projection">Peirce quincuncial projection</a>, the Collignon quincuncial projection, and the Gringorten projection.<sup id="rf1-3482"><a href="https://mpetroff.net/2021/08/square-equal-area-map-projection/#fn1-3482" title=" &lt;a href=&quot;https://doi.org/10.1175/1520-0450(1972)011%3C0763:ASEAMO%3E2.0.CO;2&quot;&gt;Gringorten, Irving I. &#8220;A square equal-area map of the world.&#8221; &lt;em&gt;Journal of Applied Meteorology and Climatology&lt;/em&gt; 11, no. 5 (1972): 763&ndash;767.&lt;/a&gt; " rel="footnote">1</a></sup></p>
<p><img decoding="async" src="https://cdn0.mpetroff.net/wp-content/uploads/2021/08/new-projection.svg" alt="Map of the world displayed using the new projection" /><span id="more-3482"></span></p>
<p>The development of the projection was motivated as a method to store spherical panoramic images, for potential use as a new format for the <a href="https://pannellum.org/">Pannellum panorama viewer</a>. Since GPU texture limits are defined in terms of square textures, a square projection is ideal for such a use, and a quincuncial arrangement will in general have lower distortion than something like a cylindrical projection, since the sphere is cut in more places. A quincuncial arrangement is also seamlessly tileable, which can help to avoid sampling issues at the image edges. Additionally, to avoid wasting pixels due to varying levels of spatial detail, an equal-area projection is preferred, eliminating the Peirce quincuncial projection from contention, since it is a conformal projection.<sup id="rf2-3482"><a href="https://mpetroff.net/2021/08/square-equal-area-map-projection/#fn2-3482" title=" A projection cannot be simultaneously conformal (angle preserving) and equal area. " rel="footnote">2</a></sup> For existing projections, this left the Collignon quincuncial projection and the Gringorten projection. However, the Gringorten projection does not have closed-form solutions, which prevents its use in a GPU shader. This left just the Collignon quincuncial projection, but it has significant angular distortion and cusps, which will increase visual artifacts in the projected panorama view and will likely decrease the effectiveness of lossy image compression, e.g., JPEG compression. Thus, the goal was to develop a new projection that had relatively low angular distortion like the Gringorten projection but had closed-form solutions, allowing for a GPU shader implementation.</p>
<p><a href="https://cdn0.mpetroff.net/wp-content/uploads/2021/08/new-projection-pano.jpg" title="Panorama of George Peabody Library displayed with new projection" data-sbox="3482"><img loading="lazy" decoding="async" src="https://cdn0.mpetroff.net/wp-content/uploads/2021/08/new-projection-pano-640x640.jpg" alt="Panorama of George Peabody Library displayed with new projection" width="640" height="640" class="aligncenter size-large wp-image-3493" srcset="https://cdn0.mpetroff.net/wp-content/uploads/2021/08/new-projection-pano-640x640.jpg 640w, https://cdn0.mpetroff.net/wp-content/uploads/2021/08/new-projection-pano-300x300.jpg 300w, https://cdn0.mpetroff.net/wp-content/uploads/2021/08/new-projection-pano-150x150.jpg 150w, https://cdn0.mpetroff.net/wp-content/uploads/2021/08/new-projection-pano-1536x1536.jpg 1536w, https://cdn0.mpetroff.net/wp-content/uploads/2021/08/new-projection-pano-1280x1280.jpg 1280w, https://cdn0.mpetroff.net/wp-content/uploads/2021/08/new-projection-pano.jpg 2000w" sizes="auto, (max-width: 640px) 100vw, 640px" /></a></p>
<p>After going through many, many pages of scratch paper, I developed the new projection described in the paper, which met the design goals. It has closed-form solutions and has comparable&mdash;although slightly higher&mdash;average angular distortion to that of the Gringorten projection. However, it has lower maximum angular distortion and has only almost-imperceptible cusps. As it does not have a large, arguably-unsightly cusp along the equator like the Gringorten projection, it is probably a better projection even for cartographic purposes, where the lack of closed-form solutions does not present an issue. A comparison of the new projection with the Collignon quincuncial projection and the Gringorten projection is shown below.</p>
<p><a href="https://cdn0.mpetroff.net/wp-content/uploads/2021/08/projection-comparison.png" title="Square equal-area map projection comparison" data-sbox="3482"><img loading="lazy" decoding="async" src="https://cdn0.mpetroff.net/wp-content/uploads/2021/08/projection-comparison-640x469.png" alt="World maps and angular distortion are shown for the Collignon quincunial projection, the Gringorten projection, and the new projection" width="640" height="469" class="aligncenter size-large wp-image-3489" srcset="https://cdn0.mpetroff.net/wp-content/uploads/2021/08/projection-comparison-640x469.png 640w, https://cdn0.mpetroff.net/wp-content/uploads/2021/08/projection-comparison-300x220.png 300w, https://cdn0.mpetroff.net/wp-content/uploads/2021/08/projection-comparison-1536x1126.png 1536w, https://cdn0.mpetroff.net/wp-content/uploads/2021/08/projection-comparison-1280x938.png 1280w, https://cdn0.mpetroff.net/wp-content/uploads/2021/08/projection-comparison.png 1921w" sizes="auto, (max-width: 640px) 100vw, 640px" /></a></p>
<p>The paper&#8217;s <a href="https://doi.org/10.5281/zenodo.4661351">supplementary information</a> contains all the code necessary to reproduce the paper&#8217;s figures, including a Python implementation of the projection and a <a href="https://d3js.org/">D3.js</a> implementation. Before including the projection in Pannellum, a detailed comparison of the new projection to existing cube-based equal-area and near-equal-area projections needs to be completed.</p>
<hr class="footnotes"><ol class="footnotes" style="list-style-type:decimal"><li id="fn1-3482"><p > <a href="https://doi.org/10.1175/1520-0450(1972)011%3C0763:ASEAMO%3E2.0.CO;2">Gringorten, Irving I. &#8220;A square equal-area map of the world.&#8221; <em>Journal of Applied Meteorology and Climatology</em> 11, no. 5 (1972): 763&ndash;767.</a> &nbsp;<a href="https://mpetroff.net/2021/08/square-equal-area-map-projection/#rf1-3482" class="backlink" title="Return to footnote 1.">&#8617;</a></p></li><li id="fn2-3482"><p > A projection cannot be simultaneously conformal (angle preserving) and equal area. &nbsp;<a href="https://mpetroff.net/2021/08/square-equal-area-map-projection/#rf2-3482" class="backlink" title="Return to footnote 2.">&#8617;</a></p></li></ol>]]></content:encoded>
					
					<wfw:commentRss>https://mpetroff.net/2021/08/square-equal-area-map-projection/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Updated Camp Workcoeman Maps</title>
		<link>https://mpetroff.net/2017/05/updated-camp-workcoeman-maps/</link>
					<comments>https://mpetroff.net/2017/05/updated-camp-workcoeman-maps/#respond</comments>
		
		<dc:creator><![CDATA[Matthew Petroff]]></dc:creator>
		<pubDate>Wed, 31 May 2017 23:40:45 +0000</pubDate>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Camp Workcoeman]]></category>
		<category><![CDATA[map]]></category>
		<category><![CDATA[maps]]></category>
		<guid isPermaLink="false">https://mpetroff.net/?p=2454</guid>

					<description><![CDATA[Due to extensive trail work over the past two years, new maps of Camp Workcoeman were needed. Furthermore, the Connecticut statewide spring 2016 orthoimagery was recently released, provide a new data source for updating buildings and land cover. As with &#8230; <a href="https://mpetroff.net/2017/05/updated-camp-workcoeman-maps/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p><span class="dropcap">D</span>ue to extensive trail work over the past two years, new maps of Camp Workcoeman were needed. Furthermore, the Connecticut statewide <a href="http://www.cteco.uconn.edu/data/flight2016/index.htm">spring 2016 orthoimagery</a> was recently released, provide a new data source for updating buildings and land cover. As with my previous mapping, I walked the rerouted trails using a <a href="http://www.skytraq.com.tw/">SkyTraq</a>-based receiver that records raw carrier-phase and pseudorange data and post-processed the data using <a href="http://rtklib.com/">RTKLIB</a> and CORS data from the nearby <a href="https://www.ngs.noaa.gov/CORS/Sites/ctwi.html">CTWI site</a> in Winchester. In revising the trail center map, I took the oppertunity to improve it with additional hand-placed labels<sup id="rf1-2454"><a href="https://mpetroff.net/2017/05/updated-camp-workcoeman-maps/#fn1-2454" title="Auto-label placement still has a long way to go&#8230;" rel="footnote">1</a></sup> and various minor tweaks.</p>
<p><a href="https://cdn0.mpetroff.net/wp-content/uploads/2017/05/trail-center-map.png" title="Trail Center Map" data-sbox="2454"><img loading="lazy" decoding="async" class="aligncenter wp-image-2457 size-large" title="Trail Center Map" src="https://cdn0.mpetroff.net/wp-content/uploads/2017/05/trail-center-map-640x427.png" alt="Trail Center Map" width="640" height="427" srcset="https://cdn0.mpetroff.net/wp-content/uploads/2017/05/trail-center-map-640x427.png 640w, https://cdn0.mpetroff.net/wp-content/uploads/2017/05/trail-center-map-300x200.png 300w, https://cdn0.mpetroff.net/wp-content/uploads/2017/05/trail-center-map-1280x853.png 1280w, https://cdn0.mpetroff.net/wp-content/uploads/2017/05/trail-center-map.png 1314w" sizes="auto, (max-width: 640px) 100vw, 640px" /></a></p>
<p>Updated maps are on the <a href="https://campworkcoeman.org/about/map/">campworkcoeman.org maps page</a>. The data is bundled in the <a href="https://github.com/mpetroff/camp-workcoeman-map-app">Camp Workcoeman Map App</a>. The <a href="https://map.campworkcoeman.org/">web app</a> has been updated, and an update to the <a href="https://play.google.com/store/apps/details?id=net.mpetroff.campworkcoemanmap">Android version</a>, which is fully-offline, is forthcoming.</p>
<hr class="footnotes"><ol class="footnotes" style="list-style-type:decimal"><li id="fn1-2454"><p >Auto-label placement still has a long way to go&#8230;&nbsp;<a href="https://mpetroff.net/2017/05/updated-camp-workcoeman-maps/#rf1-2454" class="backlink" title="Return to footnote 1.">&#8617;</a></p></li></ol>]]></content:encoded>
					
					<wfw:commentRss>https://mpetroff.net/2017/05/updated-camp-workcoeman-maps/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Light Pollution Map</title>
		<link>https://mpetroff.net/2016/06/light-pollution-map/</link>
					<comments>https://mpetroff.net/2016/06/light-pollution-map/#comments</comments>
		
		<dc:creator><![CDATA[Matthew Petroff]]></dc:creator>
		<pubDate>Sun, 26 Jun 2016 22:24:36 +0000</pubDate>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[light pollution]]></category>
		<category><![CDATA[map]]></category>
		<category><![CDATA[vector]]></category>
		<guid isPermaLink="false">https://mpetroff.net/?p=2177</guid>

					<description><![CDATA[A few weeks ago, The New World Atlas of Artificial Night Sky Brightness was published in Science Advances. The article is a report on artificial sky radiance, a current update to previous data. The supplement to the article is a &#8230; <a href="https://mpetroff.net/2016/06/light-pollution-map/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p><span class="dropcap">A</span> few weeks ago, <a href="https://dx.doi.org/10.1126/sciadv.1600377"><em>The New World Atlas of Artificial Night Sky Brightness</em></a> was published in <em>Science Advances</em>. The article is a report on artificial sky radiance, a current update to <a href="https://dx.doi.org/10.1046/j.1365-8711.2001.04882.x">previous data</a>. The <a href="https://dx.doi.org/10.5880/GFZ.1.4.2016.001">supplement to the article</a> is a light pollution map. Since I didn&#8217;t like the quality of the <a href="http://cires.colorado.edu/artificial-sky">CIRES web visualization of the data</a>, I decided to create a vectorized version. As the GeoTIFF source map isn&#8217;t publically available, I used the provided KMZ preview as a starting point. After extracting and assembling the JPEG tiles, I used a bilateral filter and other processing to remove the compression artifacts and convert the image into a usable state. I then used <a href="http://www.gdal.org/">GDAL</a> to apply coordinate information to the image and used <a href="https://github.com/mapbox/make-surface">makesurface</a> and <a href="https://github.com/mapbox/tippecanoe">tippecanoe</a> to create vector tiles of the map. Finally, I <a href="/files/light-pollution/">visualized the data</a> using the <a href="https://www.mapbox.com/blog/mapbox-light-and-dark-for-gl/">Mapbox Dark</a> style.</p>
<p><iframe src="/files/light-pollution/" style="border-style:none;width:100%;height:390px;"></iframe></p>
]]></content:encoded>
					
					<wfw:commentRss>https://mpetroff.net/2016/06/light-pollution-map/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>Camp Workcoeman Map App</title>
		<link>https://mpetroff.net/2016/03/camp-workcoeman-map-app/</link>
					<comments>https://mpetroff.net/2016/03/camp-workcoeman-map-app/#respond</comments>
		
		<dc:creator><![CDATA[Matthew Petroff]]></dc:creator>
		<pubDate>Tue, 22 Mar 2016 01:26:53 +0000</pubDate>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[Camp Workcoeman]]></category>
		<category><![CDATA[map]]></category>
		<category><![CDATA[Mapbox GL]]></category>
		<category><![CDATA[web]]></category>
		<guid isPermaLink="false">https://mpetroff.net/?p=2126</guid>

					<description><![CDATA[Although I started mapping Camp Workcoeman years ago, I&#8217;ve always published this data as printed maps (and PDFs). I finally published my map in a different form: a mobile and web app. The apps are built using Mapbox GL, native &#8230; <a href="https://mpetroff.net/2016/03/camp-workcoeman-map-app/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p><span class="dropcap">A</span>lthough I started mapping Camp Workcoeman years ago, I&#8217;ve always published this data as printed maps (and PDFs). I finally published my map in a different form: a mobile and web app. The apps are built using Mapbox GL, <a href="https://github.com/mapbox/mapbox-gl-native">native</a> for the Android app and <a href="https://github.com/mapbox/mapbox-gl-js">JS</a> for the web app.<sup id="rf1-2126"><a href="https://mpetroff.net/2016/03/camp-workcoeman-map-app/#fn1-2126" title=" Due to Apple&#8217;s developer fees and requirement to use OS X for development, there&#8217;s no native iOS version; I might reconsider this if there&#8217;s enough demand. " rel="footnote">1</a></sup> The Android version is completely offline, with the map data and style files bundled as assets. The full source code for both is available on <a href="https://github.com/mpetroff/camp-workcoeman-map-app">GitHub</a>. Download the <a href="https://play.google.com/store/apps/details?id=net.mpetroff.campworkcoemanmap">app for Android</a> or visit <a href="https://map.campworkcoeman.org/">the web app</a> (and add it to the home screen on iOS).</p>
<p><a href="https://cdn0.mpetroff.net/wp-content/uploads/2016/03/feature-graphic.png" rel="attachment wp-att-2132" data-sbox="2126"><img loading="lazy" decoding="async" src="https://cdn0.mpetroff.net/wp-content/uploads/2016/03/feature-graphic-640x313.png" alt="Camp Workcoeman Map" width="640" height="313" class="aligncenter size-large wp-image-2132" srcset="https://cdn0.mpetroff.net/wp-content/uploads/2016/03/feature-graphic-640x313.png 640w, https://cdn0.mpetroff.net/wp-content/uploads/2016/03/feature-graphic-300x146.png 300w, https://cdn0.mpetroff.net/wp-content/uploads/2016/03/feature-graphic.png 1024w" sizes="auto, (max-width: 640px) 100vw, 640px" /></a></p>
<hr class="footnotes"><ol class="footnotes" style="list-style-type:decimal"><li id="fn1-2126"><p > Due to Apple&#8217;s developer fees and requirement to use OS X for development, there&#8217;s no native iOS version; I might reconsider this if there&#8217;s enough demand. &nbsp;<a href="https://mpetroff.net/2016/03/camp-workcoeman-map-app/#rf1-2126" class="backlink" title="Return to footnote 1.">&#8617;</a></p></li></ol>]]></content:encoded>
					
					<wfw:commentRss>https://mpetroff.net/2016/03/camp-workcoeman-map-app/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Content Delivery Network via Amazon Web Services: CloudFront: cdn0.mpetroff.net
Minified using Disk

Served from: mpetroff.net @ 2026-03-31 01:38:03 by W3 Total Cache
-->