<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>The IDL Data Point</title>
	<atom:link href="http://idldatapoint.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://idldatapoint.com</link>
	<description>Programming, data analysis, and visualization with IDL.</description>
	<lastBuildDate>Tue, 21 May 2013 21:46:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='idldatapoint.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/cea385290e7d56c78987079abcd838d0?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>The IDL Data Point</title>
		<link>http://idldatapoint.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://idldatapoint.com/osd.xml" title="The IDL Data Point" />
	<atom:link rel='hub' href='http://idldatapoint.com/?pushpress=hub'/>
		<item>
		<title>Where am I?</title>
		<link>http://idldatapoint.com/2013/05/16/where-am-i/</link>
		<comments>http://idldatapoint.com/2013/05/16/where-am-i/#comments</comments>
		<pubDate>Thu, 16 May 2013 16:02:56 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[language]]></category>
		<category><![CDATA[IDL 8]]></category>
		<category><![CDATA[IDL 8.2.2]]></category>
		<category><![CDATA[ROUTINE_FILEPATH function]]></category>

		<guid isPermaLink="false">http://idldatapoint.com/?p=1203</guid>
		<description><![CDATA[Well, more accurately, &#8220;where on the filesystem is the source for the currently scoped routine?&#8221;, but that&#8217;s not a catchy title. In IDL 8.2.2, the ROUTINE_FILEPATH function was modified to return this information when called without any parameters. Here&#8217;s a &#8230; <a href="http://idldatapoint.com/2013/05/16/where-am-i/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idldatapoint.com&#038;blog=26801386&#038;post=1203&#038;subd=idldatapoint&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Well, more accurately, &#8220;where on the filesystem is the source for the currently scoped routine?&#8221;, but that&#8217;s not a catchy title. In <a title="IDL 8.2.2 released!" href="http://idldatapoint.com/2013/02/05/idl-8-2-2-released/">IDL 8.2.2</a>, the <a href="http://www.exelisvis.com/docs/ROUTINE_FILEPATH.html">ROUTINE_FILEPATH</a> function was modified to return this information when called without any parameters. Here&#8217;s a simple program demonstrating this behavior:</p>
<pre><span style="color:#800000;"><b>pro</b></span> <span style="color:#008080;"><b>routine_filepath_no_params</b></span>
   <span style="color:#800000;"><b>compile_opt</b></span> idl2

   <span style="color:#000080;"><b>print</b></span>, <span style="color:#ff0000;">'I''m called from a program in the file: '</span> + <span style="color:#0000ff;"><b>routine_filepath</b></span>()
<span style="color:#800000;"><b>end</b></span></pre>
<p>When I run this program, I get:</p>
<pre>IDL&gt; <span style="color:#008080;"><strong>routine_filepath_no_params</strong></span>
I'm called from a program in the file: /home/mpiper/VIS/IDL/8/22/demos/src/routine_filepath_no_params.pro</pre>
<p><a href="http://idldatapoint.com/tag/jim-pendleton/">Jim Pendleton</a>, for example, has found this helpful in determining whether a program is being run from a SAVE file or a PRO file. I&#8217;ve used it to save a visualization to a PNG file with the same base name as the PRO file in which it&#8217;s generated.</p>
<p>(This is, I think, my last 8.2.2 post before <a title="Coming soon: IDL 8.2.3" href="http://idldatapoint.com/2013/04/30/coming-soon-idl-8-2-3/">8.2.3</a> comes out next week!)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/idldatapoint.wordpress.com/1203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/idldatapoint.wordpress.com/1203/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idldatapoint.com&#038;blog=26801386&#038;post=1203&#038;subd=idldatapoint&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://idldatapoint.com/2013/05/16/where-am-i/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dbb95dcca870325157db80014b68b58b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">theidlguy</media:title>
		</media:content>
	</item>
		<item>
		<title>The bigger picture in 2013</title>
		<link>http://idldatapoint.com/2013/05/09/the-bigger-picture-in-2013/</link>
		<comments>http://idldatapoint.com/2013/05/09/the-bigger-picture-in-2013/#comments</comments>
		<pubDate>Thu, 09 May 2013 17:25:47 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[VIS]]></category>
		<category><![CDATA[IDL 8]]></category>
		<category><![CDATA[roadmap]]></category>

		<guid isPermaLink="false">http://idldatapoint.com/?p=1193</guid>
		<description><![CDATA[Regular readers of this blog know that I love to show off the neat things you can do with IDL, usually with some code. I thought I&#8217;d try something different today, though. As product manager, I help set the agenda &#8230; <a href="http://idldatapoint.com/2013/05/09/the-bigger-picture-in-2013/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idldatapoint.com&#038;blog=26801386&#038;post=1193&#038;subd=idldatapoint&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Regular readers of this blog know that I love to show off the neat things you can do with IDL, usually with some code. I thought I&#8217;d try something different today, though. As product manager, I help set the agenda for IDL development. So, here&#8217;s a look at where we&#8217;re going with IDL in the near future.</p>
<p>The big themes for IDL in 2013 are:</p>
<ul>
<li><span style="line-height:16px;">visualization</span></li>
<li>file access</li>
</ul>
<p>In the IDL releases this year (<a title="IDL 8.2.2 released!" href="http://idldatapoint.com/2013/02/05/idl-8-2-2-released/">8.2.2</a> in February, 8.2.3 in May and 8.3 this fall), we&#8217;re trying to tie development (including improvements, new features and bugfixes) to these themes. Outside issues arise and are addressed, but we&#8217;re trying to prioritize stories that fit these themes. So far, this has included new <a href="http://idldatapoint.com/tag/new-graphics/">(New) Graphics</a> routines like <a href="http://www.exelisvis.com/docs/scatterplot.html">SCATTERPLOT</a>, <a href="http://www.exelisvis.com/docs/BOXPLOT.html">BOXPLOT</a>, and soon, BUBBLEPLOT and VOLUME, as well as continued improvements to the <a title="Coming soon: IDL 8.2.2" href="http://idldatapoint.com/2013/01/10/coming-soon-idl-8-2-2/">performance</a> and usability of NG. For file access, we&#8217;ve updated our <a href="http://www.exelisvis.com/docs/HDF_Overview.html">HDF4</a>, <a href="http://www.exelisvis.com/docs/HDF-EOS_Overview.html">HDF-EOS</a> and <a href="http://www.exelisvis.com/docs/CDF_Overview.html">CDF</a> libraries, and updates to netCDF, HDF5 and GRIB are on the way.</p>
<p>Looking at the 2013 releases as a whole, I think we&#8217;re making good progress in addressing these themes.</p>
<p>(If I get egged on enough, I&#8217;ll talk about what we&#8217;re thinking about for IDL in 2014, too.)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/idldatapoint.wordpress.com/1193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/idldatapoint.wordpress.com/1193/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idldatapoint.com&#038;blog=26801386&#038;post=1193&#038;subd=idldatapoint&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://idldatapoint.com/2013/05/09/the-bigger-picture-in-2013/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dbb95dcca870325157db80014b68b58b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">theidlguy</media:title>
		</media:content>
	</item>
		<item>
		<title>Coming soon: IDL 8.2.3</title>
		<link>http://idldatapoint.com/2013/04/30/coming-soon-idl-8-2-3/</link>
		<comments>http://idldatapoint.com/2013/04/30/coming-soon-idl-8-2-3/#comments</comments>
		<pubDate>Tue, 30 Apr 2013 14:57:34 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[VIS]]></category>
		<category><![CDATA[(New) Graphics]]></category>
		<category><![CDATA[BUBBLEPLOT function]]></category>
		<category><![CDATA[IDL 8]]></category>
		<category><![CDATA[IDL 8.2.3]]></category>

		<guid isPermaLink="false">http://idldatapoint.com/?p=1184</guid>
		<description><![CDATA[IDL 8.2.3 is scheduled to be released on May 21. While this is primarily a maintenance release, we&#8217;ve included several new routines. They are: BUBBLEPLOT VOLUME FILE_ZIP FILE_UNZIP FILE_GZIP FILE_GUNZIP FILE_TAR FILE_UNTAR ZLIB_COMPRESS ZLIB_UNCOMPRESS IDLffVideoRead class QUERY_VIDEO READ_VIDEO WRITE_VIDEO TERMINAL_SIZE BUBBLEPLOT &#8230; <a href="http://idldatapoint.com/2013/04/30/coming-soon-idl-8-2-3/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idldatapoint.com&#038;blog=26801386&#038;post=1184&#038;subd=idldatapoint&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>IDL 8.2.3 is scheduled to be released on May 21. While this is primarily a maintenance release, we&#8217;ve included several new routines. They are:</p>
<ul>
<li><span style="line-height:16px;">BUBBLEPLOT</span></li>
<li>VOLUME</li>
<li>FILE_ZIP</li>
<li>FILE_UNZIP</li>
<li>FILE_GZIP</li>
<li>FILE_GUNZIP</li>
<li>FILE_TAR</li>
<li>FILE_UNTAR</li>
<li>ZLIB_COMPRESS</li>
<li>ZLIB_UNCOMPRESS</li>
<li>IDLffVideoRead class</li>
<li>QUERY_VIDEO</li>
<li>READ_VIDEO</li>
<li>WRITE_VIDEO</li>
<li>TERMINAL_SIZE</li>
</ul>
<p>BUBBLEPLOT has been an early favorite around VIS. Here&#8217;s a sample from Eddie Haskell, the developer who wrote it (click to embiggen):</p>
<p><a href="http://idldatapoint.files.wordpress.com/2013/04/eddie-bubbleplot-1.png"><img class="aligncenter size-large wp-image-1189" alt="Life expectancy versus income for selected countries" src="http://idldatapoint.files.wordpress.com/2013/04/eddie-bubbleplot-1.png?w=640&#038;h=520" width="640" height="520" /></a></p>
<p>I’ll post more information on these routines, as well as the rest of what’s included in 8.2.3, on the release date.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/idldatapoint.wordpress.com/1184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/idldatapoint.wordpress.com/1184/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idldatapoint.com&#038;blog=26801386&#038;post=1184&#038;subd=idldatapoint&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://idldatapoint.com/2013/04/30/coming-soon-idl-8-2-3/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dbb95dcca870325157db80014b68b58b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">theidlguy</media:title>
		</media:content>

		<media:content url="http://idldatapoint.files.wordpress.com/2013/04/eddie-bubbleplot-1.png?w=640" medium="image">
			<media:title type="html">Life expectancy versus income for selected countries</media:title>
		</media:content>
	</item>
		<item>
		<title>Modifying the size and position of a plot</title>
		<link>http://idldatapoint.com/2013/04/25/modifying-the-size-and-position-of-a-plot/</link>
		<comments>http://idldatapoint.com/2013/04/25/modifying-the-size-and-position-of-a-plot/#comments</comments>
		<pubDate>Thu, 25 Apr 2013 20:34:31 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[visualization]]></category>
		<category><![CDATA[(New) Graphics]]></category>
		<category><![CDATA[IDL 8]]></category>
		<category><![CDATA[IDL 8.2.2]]></category>
		<category><![CDATA[POSITION]]></category>

		<guid isPermaLink="false">http://idldatapoint.com/?p=1171</guid>
		<description><![CDATA[In IDL 8 (a.k.a. New) Graphics, you can interactively move and resize plots in a window. For example, make a test plot in red: IDL&#62; p = plot([0,1], 'r') Select the plot by clicking the mouse in the interior of &#8230; <a href="http://idldatapoint.com/2013/04/25/modifying-the-size-and-position-of-a-plot/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idldatapoint.com&#038;blog=26801386&#038;post=1171&#038;subd=idldatapoint&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>In IDL 8 (a.k.a. New) Graphics, you can interactively move and resize plots in a window. For example, make a test plot in red:</p>
<pre>IDL&gt; p = <span style="color:#33cccc;"><strong>plot</strong></span>([<span style="color:#808000;"><strong>0</strong></span>,<span style="color:#808000;"><strong>1</strong></span>], <span style="color:#ff0000;">'r'</span>)</pre>
<p>Select the plot by clicking the mouse in the interior of the plot frame. To move the plot, click the frame and drag it. To resize the plot, click and drag a manipulator on the corner or middle of the frame.</p>
<p>Once you&#8217;ve moved and/or resized a plot, you can programmatically retrieve its new location and size from the POSITION property. For example, I moved and resized my plot to give:</p>
<pre>IDL&gt; <span style="color:#000080;"><strong>print</strong></span>, p.<em>position</em>
      0.12656254      0.47788962      0.54761025      0.88085938</pre>
<p>Note that these values are in normalized coordinates (x and y range over a unit interval); the first two values give the (x,y) coordinate of the lower left corner of the plot frame, while the last two values give the coordinate of the upper right corner of the plot frame.</p>
<p>In <a title="IDL 8.2.2 released!" href="http://idldatapoint.com/2013/02/05/idl-8-2-2-released/">IDL 8.2.2</a>, we modified the POSITION property so that you can also programmatically set the size and position of a plot; e.g.:</p>
<pre>IDL&gt; p.<em>position</em> = [<span style="color:#808000;"><strong>0.50</strong></span>, <span style="color:#808000;"><strong>0.45</strong></span>, <span style="color:#808000;"><strong>0.90</strong></span>, <span style="color:#808000;"><strong>0.90</strong></span>]</pre>
<p>The result is a plot in the upper left corner of the window:</p>
<p><a href="http://idldatapoint.files.wordpress.com/2013/04/plot-positioned.png"><img class="aligncenter size-large wp-image-1176" alt="A programmatically positioned plot." src="http://idldatapoint.files.wordpress.com/2013/04/plot-positioned.png?w=640&#038;h=566" width="640" height="566" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/idldatapoint.wordpress.com/1171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/idldatapoint.wordpress.com/1171/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idldatapoint.com&#038;blog=26801386&#038;post=1171&#038;subd=idldatapoint&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://idldatapoint.com/2013/04/25/modifying-the-size-and-position-of-a-plot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dbb95dcca870325157db80014b68b58b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">theidlguy</media:title>
		</media:content>

		<media:content url="http://idldatapoint.files.wordpress.com/2013/04/plot-positioned.png?w=640" medium="image">
			<media:title type="html">A programmatically positioned plot.</media:title>
		</media:content>
	</item>
		<item>
		<title>A column sort routine</title>
		<link>http://idldatapoint.com/2013/04/18/a-column-sort-routine/</link>
		<comments>http://idldatapoint.com/2013/04/18/a-column-sort-routine/#comments</comments>
		<pubDate>Thu, 18 Apr 2013 21:54:07 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[language]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[arrays]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[sorting]]></category>

		<guid isPermaLink="false">http://idldatapoint.com/?p=1157</guid>
		<description><![CDATA[In spreadsheet programs like Excel or LibreOffice, you can apply a sort on a column to every other column in the spreadsheet. IDL&#8217;s SORT function doesn&#8217;t provide this functionality, but with a little code, we can make it so. The &#8230; <a href="http://idldatapoint.com/2013/04/18/a-column-sort-routine/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idldatapoint.com&#038;blog=26801386&#038;post=1157&#038;subd=idldatapoint&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>In spreadsheet programs like Excel or LibreOffice, you can apply a sort on a column to every other column in the spreadsheet. IDL&#8217;s <a href="http://www.exelisvis.com/docs/SORT.html">SORT</a> function doesn&#8217;t provide this functionality, but with a little code, we can make it so. The function COLSORT (get the source code <a href="ftp://download.exelisvis.com/groups/esg/blog/colsort.pro">here</a>) accepts a 2D array and the zero-based index of the column to sort on. By default, values are sorted in ascending order; a keyword can be set to sort in descending order. Here&#8217;s an example of how the routine works.</p>
<p>Start with a 4 x 5 array of numbers:</p>
<pre>IDL&gt; a = <span style="color:#0000ff;"><strong>round</strong></span>(<span style="color:#0000ff;"><strong>randomu</strong></span>(seed, <span style="color:#808000;"><strong>4</strong></span>, <span style="color:#808000;"><strong>5</strong></span>) * <span style="color:#808000;"><strong>20.0</strong></span>)
IDL&gt; <span style="color:#000080;"><strong>print</strong></span>, <span style="color:#ff0000;">'Original array:'</span>, a, format=<span style="color:#ff0000;">'(a,/,4(i))'</span>
Original array:
           8           6          14          10
           4           9          18           5
           1          11          13          18
           8           9          11           9
           3          19           4          16</pre>
<p>Use COLSORT to perform a reverse sort on column index 1 (the second column) and extend the sort to the other columns in the array:</p>
<pre>IDL&gt; sort_index = <span style="color:#808000;"><strong>1</strong></span>
IDL&gt; b = <span style="color:#33cccc;"><strong>colsort</strong></span>(a, sort_index, /reverse_sort)</pre>
<p>Check the result:</p>
<pre>IDL&gt; <span style="color:#000080;"><strong>print</strong></span>, <span style="color:#ff0000;">'Sorted (descending) array:'</span>, b, format=<span style="color:#ff0000;">'(a,/,4(i))'</span>
Sorted (descending) array:
           3          19           4          16
           1          11          13          18
           8           9          11           9
           4           9          18           5
           8           6          14          10</pre>
<p>This program could be extended to apply to rows and to arrays of higher dimensionality.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/idldatapoint.wordpress.com/1157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/idldatapoint.wordpress.com/1157/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idldatapoint.com&#038;blog=26801386&#038;post=1157&#038;subd=idldatapoint&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://idldatapoint.com/2013/04/18/a-column-sort-routine/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dbb95dcca870325157db80014b68b58b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">theidlguy</media:title>
		</media:content>
	</item>
		<item>
		<title>Locating NaN and Inf values in an array</title>
		<link>http://idldatapoint.com/2013/04/11/locating-nan-and-inf-values-in-an-array/</link>
		<comments>http://idldatapoint.com/2013/04/11/locating-nan-and-inf-values-in-an-array/#comments</comments>
		<pubDate>Thu, 11 Apr 2013 15:55:45 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[language]]></category>
		<category><![CDATA[FINITE function]]></category>
		<category><![CDATA[logical not operator]]></category>
		<category><![CDATA[NaN value]]></category>
		<category><![CDATA[WHERE function]]></category>

		<guid isPermaLink="false">http://idldatapoint.com/?p=1148</guid>
		<description><![CDATA[(This week&#8217;s post is brief because I&#8217;m out learning a lot at the 2013 NOAA Satellite Conference!) The ubiquitous WHERE function can be used to quickly locate values in an array. However, you can&#8217;t directly search for the location of IEEE NaN (not a &#8230; <a href="http://idldatapoint.com/2013/04/11/locating-nan-and-inf-values-in-an-array/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idldatapoint.com&#038;blog=26801386&#038;post=1148&#038;subd=idldatapoint&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><em>(This week&#8217;s post is brief because I&#8217;m out learning a lot at the <a title="2013 NOAA Satellite Conference" href="http://idldatapoint.com/2013/04/04/2013-noaa-satellite-conference/"><em>2013 NOAA Satellite Conference</em></a>!)</em></p>
<p>The ubiquitous <a href="http://www.exelisvis.com/docs/WHERE.html">WHERE</a> function can be used to quickly locate values in an array. However, you can&#8217;t directly search for the location of IEEE <em>NaN</em> (not a number) and <em>Inf</em> (infinity) values; to do so, you need the <a href="http://www.exelisvis.com/docs/FINITE.html">FINITE </a>function. Here&#8217;s an example.</p>
<p>Start with a simple array:</p>
<pre>IDL&gt; a = <strong><span style="color:#0000ff;">findgen</span></strong>(<span style="color:#808000;"><strong>5</strong></span>, <span style="color:#808000;"><strong>2</strong></span>)
IDL&gt; <span style="color:#000080;"><strong>print</strong></span>, a
     0.000000      1.00000      2.00000      3.00000      4.00000
      5.00000      6.00000      7.00000      8.00000      9.00000</pre>
<p>and add NaN values at up to three random locations:</p>
<pre>IDL&gt; i = <strong><span style="color:#0000ff;">floor</span></strong>(<strong><span style="color:#0000ff;">randomu</span></strong>(seed, <span style="color:#808000;"><strong>3</strong></span>)*<strong><span style="color:#0000ff;">n_elements</span></strong>(a))
IDL&gt; a[i] = !values.<em>f_nan</em>
IDL&gt; <span style="color:#000080;"><strong>print</strong></span>, a
     0.000000      1.00000      2.00000      3.00000          NaN
          NaN      6.00000      7.00000          NaN      9.00000</pre>
<p>OK, so where are the NaNs located? By eye, I can see where they are (indices 4, 5 and 8), but to identify them programmatically, use WHERE with FINITE and &#8220;~&#8221;, the <a href="http://www.exelisvis.com/docs/Logical_Operators.html">logical not operator</a>:</p>
<pre>IDL&gt; i_nan = <strong><span style="color:#0000ff;">where</span></strong>(~<span style="color:#0000ff;"><strong>finite</strong></span>(a), /null)
IDL&gt; <strong><span style="color:#000080;">print</span></strong>, i_nan
           4           5           8</pre>
<p>Check!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/idldatapoint.wordpress.com/1148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/idldatapoint.wordpress.com/1148/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idldatapoint.com&#038;blog=26801386&#038;post=1148&#038;subd=idldatapoint&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://idldatapoint.com/2013/04/11/locating-nan-and-inf-values-in-an-array/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dbb95dcca870325157db80014b68b58b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">theidlguy</media:title>
		</media:content>
	</item>
		<item>
		<title>2013 NOAA Satellite Conference</title>
		<link>http://idldatapoint.com/2013/04/04/2013-noaa-satellite-conference/</link>
		<comments>http://idldatapoint.com/2013/04/04/2013-noaa-satellite-conference/#comments</comments>
		<pubDate>Thu, 04 Apr 2013 15:09:58 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[conference]]></category>
		<category><![CDATA[ENVI Services Engine]]></category>
		<category><![CDATA[NSC 2013]]></category>
		<category><![CDATA[science!]]></category>
		<category><![CDATA[VIIRS]]></category>

		<guid isPermaLink="false">http://idldatapoint.com/?p=1133</guid>
		<description><![CDATA[My colleague Thomas Harris (@t_harris) and I will be at the 2013 NOAA Satellite Conference in College Park, MD, next week. We each have a poster: T-9: A Rapid Cloud Mask Algorithm  for Suomi NPP VIIRS Imagery EDRs (Piper) [PDF, 2.5 MB] &#8230; <a href="http://idldatapoint.com/2013/04/04/2013-noaa-satellite-conference/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idldatapoint.com&#038;blog=26801386&#038;post=1133&#038;subd=idldatapoint&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>My colleague Thomas Harris (<a href="https://twitter.com/t_harris">@t_harris</a>) and I will be at the <a href="http://satelliteconferences.noaa.gov/2013/index.html">2013 NOAA Satellite Conference</a> in College Park, MD, next week. We each have a poster:</p>
<ul>
<li><span style="line-height:16px;">T-9: <a href="ftp://download.exelisvis.com/groups/esg/blog/markpiper_poster.pdf"><em>A Rapid Cloud Mask Algorithm  for Suomi NPP VIIRS Imagery EDRs</em></a> (Piper) [PDF, 2.5 MB]</span></li>
<li>W-37: <em>ENVI Services Engine: Earth and Planetary Image Processing for the Cloud</em> (Harris)</li>
</ul>
<p>If you&#8217;re attending this conference, please visit our posters and say hello!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/idldatapoint.wordpress.com/1133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/idldatapoint.wordpress.com/1133/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idldatapoint.com&#038;blog=26801386&#038;post=1133&#038;subd=idldatapoint&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://idldatapoint.com/2013/04/04/2013-noaa-satellite-conference/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dbb95dcca870325157db80014b68b58b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">theidlguy</media:title>
		</media:content>
	</item>
		<item>
		<title>An update to the CURRENT keyword</title>
		<link>http://idldatapoint.com/2013/03/28/an-update-to-the-current-keyword/</link>
		<comments>http://idldatapoint.com/2013/03/28/an-update-to-the-current-keyword/#comments</comments>
		<pubDate>Thu, 28 Mar 2013 14:42:54 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[language]]></category>
		<category><![CDATA[(New) Graphics]]></category>
		<category><![CDATA[CURRENT keyword]]></category>
		<category><![CDATA[IDL 8]]></category>
		<category><![CDATA[IDL 8.2.2]]></category>

		<guid isPermaLink="false">http://idldatapoint.com/?p=1137</guid>
		<description><![CDATA[(Note: I&#8217;m out of town this week; this is a short post I banked earlier in the year.) The IDL 8 (a.k.a. New) Graphics CURRENT keyword got a useful update in IDL 8.2.2: instead of being a Boolean, it now accepts &#8230; <a href="http://idldatapoint.com/2013/03/28/an-update-to-the-current-keyword/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idldatapoint.com&#038;blog=26801386&#038;post=1137&#038;subd=idldatapoint&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><em>(Note: I&#8217;m out of town this week; this is a short post I banked earlier in the year.)</em></p>
<p>The IDL 8 (a.k.a. New) Graphics <a href="http://www.exelisvis.com/docs/PLOT.html#CURRENT">CURRENT keyword</a> got a useful update in <a title="IDL 8.2.2 released!" href="http://idldatapoint.com/2013/02/05/idl-8-2-2-released/">IDL 8.2.2</a>: instead of being a Boolean, it now accepts a window reference, which allows me to place a plot in a specific window. For example, if I make two empty windows, <code>W1</code> and <code>W2</code>:</p>
<pre>w1 = <span style="color:#33cccc;"><strong>window</strong></span>(window_title=<span style="color:#ff0000;">'Window #1'</span>)
w2 = <span style="color:#33cccc;"><strong>window</strong></span>(window_title=<span style="color:#ff0000;">'Window #2'</span>)</pre>
<p>and I want to ensure that a new plot goes into the first window, <code>W1</code>, I can set the CURRENT keyword like so:</p>
<pre>p = <span style="color:#33cccc;"><strong>plot</strong></span>(/test, current=w1, title=<span style="color:#ff0000;">'I''d like this to be in Window #1'</span>)</pre>
<p>Check!</p>
<p>Prior to IDL 8.2.2, the <a href="http://www.exelisvis.com/docs/SetCurrent_Method.html">SetCurrent method</a> would also do the trick, but I think this syntax is nicer.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/idldatapoint.wordpress.com/1137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/idldatapoint.wordpress.com/1137/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idldatapoint.com&#038;blog=26801386&#038;post=1137&#038;subd=idldatapoint&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://idldatapoint.com/2013/03/28/an-update-to-the-current-keyword/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dbb95dcca870325157db80014b68b58b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">theidlguy</media:title>
		</media:content>
	</item>
		<item>
		<title>Stern Special</title>
		<link>http://idldatapoint.com/2013/03/21/stern-special/</link>
		<comments>http://idldatapoint.com/2013/03/21/stern-special/#comments</comments>
		<pubDate>Thu, 21 Mar 2013 21:14:21 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[visualization]]></category>
		<category><![CDATA[science!]]></category>

		<guid isPermaLink="false">http://idldatapoint.com/?p=1126</guid>
		<description><![CDATA[A visualization from an article by the famous (infamous?!) Prof. Mike Brown of Caltech (@plutokiller) is featured on the cover of a recent issue of The Astronomical Journal: That&#8217;s IDL color table 15, Stern Special.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idldatapoint.com&#038;blog=26801386&#038;post=1126&#038;subd=idldatapoint&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>A visualization from an <a href="http://iopscience.iop.org/1538-3881/145/4/110/">article</a> by the famous (infamous?!) <a href="http://www.gps.caltech.edu/~mbrown/">Prof. Mike Brown</a> of Caltech <a href="https://twitter.com/plutokiller">(@plutokiller</a>) is featured on the cover of a recent <a href="http://iopscience.iop.org/1538-3881/145/4">issue</a> of <i>The Astronomical Journal</i>:</p>
<p><a href="http://ej.iop.org/pdf/aj/covers/145/AJ_145_4_cover.pdf"><img class="aligncenter size-full wp-image-1127" alt="The cover of AJ, Vol. 145, Issue 4" src="http://idldatapoint.files.wordpress.com/2013/03/aj_145_4_cover.png?w=640"   /></a></p>
<p>That&#8217;s IDL color table 15, Stern Special.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/idldatapoint.wordpress.com/1126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/idldatapoint.wordpress.com/1126/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idldatapoint.com&#038;blog=26801386&#038;post=1126&#038;subd=idldatapoint&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://idldatapoint.com/2013/03/21/stern-special/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dbb95dcca870325157db80014b68b58b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">theidlguy</media:title>
		</media:content>

		<media:content url="http://idldatapoint.files.wordpress.com/2013/03/aj_145_4_cover.png" medium="image">
			<media:title type="html">The cover of AJ, Vol. 145, Issue 4</media:title>
		</media:content>
	</item>
		<item>
		<title>Solar wind visualization at NOAA SWPC</title>
		<link>http://idldatapoint.com/2013/03/14/solar-wind-visualization-at-noaa-swpc/</link>
		<comments>http://idldatapoint.com/2013/03/14/solar-wind-visualization-at-noaa-swpc/#comments</comments>
		<pubDate>Thu, 14 Mar 2013 14:49:59 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[visualization]]></category>
		<category><![CDATA[Object Graphics]]></category>
		<category><![CDATA[science!]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://idldatapoint.com/?p=1095</guid>
		<description><![CDATA[George Millward and his colleagues at the NOAA Space Weather Prediction Center (SWPC) use IDL, among other tools, to study, monitor and forecast solar events that impact GPS, power grids and communications networks on Earth. On the WSA-Enlil Solar Wind &#8230; <a href="http://idldatapoint.com/2013/03/14/solar-wind-visualization-at-noaa-swpc/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idldatapoint.com&#038;blog=26801386&#038;post=1095&#038;subd=idldatapoint&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>George Millward and his colleagues at the NOAA <a href="http://www.swpc.noaa.gov/">Space Weather Prediction Center</a> (SWPC) use IDL, among other tools, to study, monitor and forecast solar events that impact GPS, power grids and communications networks on Earth. On the <a href="http://www.swpc.noaa.gov/wsa-enlil/">WSA-Enlil Solar Wind Prediction</a> page, Dr. Millward uses IDL Object Graphics to visualize output from a model of solar activity and Javascript to animate the result as a time series. Here&#8217;s a sample frame from the animation:</p>
<p><a href="http://idldatapoint.files.wordpress.com/2013/03/enlil_com2_20130312t1800_20130315t000000.jpg"><img class="aligncenter size-large wp-image-1124" alt="WSA-Enlil solar wind prediction at 2013-03-15, 00:00 UTC" src="http://idldatapoint.files.wordpress.com/2013/03/enlil_com2_20130312t1800_20130315t000000.jpg?w=640&#038;h=400" width="640" height="400" /></a></p>
<h5 style="text-align:center;">(Click to embiggen.)</h5>
<p>From the <a href="http://www.swpc.noaa.gov/wsa-enlil/">WSA-Enlil Solar Wind Prediction</a> page, a description of this plot:</p>
<p style="padding-left:30px;"><em><span style="line-height:1.5;">The top row plots show predictions of the solar wind density. The bottom row plots show solar wind velocity. </span><span style="line-height:1.5;">The circular plots on the left are a view from above the North Pole of the Sun and Earth, as if looking down from above. The Sun is the yellow dot in the center and the Earth is the green dot on the right. Also shown are the locations of the two </span><a style="line-height:1.5;" title="Click to find out more about Solar Terrestrial Relations Observatory (STEREO)." href="http://www.swpc.noaa.gov/stereo/">STEREO satellites</a><span style="line-height:1.5;">. These plots often depict spiral structures, due to solar rotation. </span><span style="line-height:1.5;">The wedge-shaped plots in the center provide a side view, with north at the top and south at the bottom. The graphs on the right show the model predictions for the time evolution of density and velocity at the locations of Earth and of the two STEREO spacecraft. The yellow vertical line is in sync with the movies on the left, so it is possible to see how values of density and velocity correspond to particular solar wind structures.</span></em></p>
<p>Thanks, George! (Are we getting hit by a solar storm at 6 pm today?)</p>
<p>If you&#8217;ve done something cool with IDL that you&#8217;d like to share, please let me know!</p>
<p><strong>Note:</strong> Dr. Millward&#8217;s <a href="http://onlinelibrary.wiley.com/doi/10.1002/swe.20024/abstract">article</a> was also highlighted recently in the &#8220;Research Spotlight&#8221; section of <em>Eos</em>, <a href="http://onlinelibrary.wiley.com/doi/10.1002/eost.v94.17/issuetoc">Vol. 94, No. 17</a>, 23 April 2013.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/idldatapoint.wordpress.com/1095/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/idldatapoint.wordpress.com/1095/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=idldatapoint.com&#038;blog=26801386&#038;post=1095&#038;subd=idldatapoint&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://idldatapoint.com/2013/03/14/solar-wind-visualization-at-noaa-swpc/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dbb95dcca870325157db80014b68b58b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">theidlguy</media:title>
		</media:content>

		<media:content url="http://idldatapoint.files.wordpress.com/2013/03/enlil_com2_20130312t1800_20130315t000000.jpg?w=640" medium="image">
			<media:title type="html">WSA-Enlil solar wind prediction at 2013-03-15, 00:00 UTC</media:title>
		</media:content>
	</item>
	</channel>
</rss>
