<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.es/matlabcentral/newsreader/view_thread/319274</link>
    <title>MATLAB Central Newsreader - colormap of earth's topography</title>
    <description>Feed for thread: colormap of earth's topography</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2013 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.es/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Thu, 19 Apr 2012 07:07:31 +0000</pubDate>
      <title>colormap of earth's topography</title>
      <link>http://www.mathworks.es/matlabcentral/newsreader/view_thread/319274#874094</link>
      <author>Durga Lal Shrestha</author>
      <description>Hi&lt;br&gt;
&lt;br&gt;
I would like to change colormap of earth's topography as found in following matlab demo.&lt;br&gt;
&lt;br&gt;
&lt;a href="http://www.mathworks.com.au/products/matlab/demos.html?file=/products/demos/shipping/matlab/earthmap.html"&gt;http://www.mathworks.com.au/products/matlab/demos.html?file=/products/demos/shipping/matlab/earthmap.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
What I want is to have only two color, see (altitude &amp;lt;=0) as white and land (altitude &amp;gt;0) is grey. I have  tried using colormap editor, but it is very difficult. &lt;br&gt;
&lt;br&gt;
The topo has minimum level of -7473 and maximum level of 5731. I did the following&lt;br&gt;
&lt;br&gt;
white=ones(7473,3);   % for ocean&lt;br&gt;
l=[0.88 0.82 0.68];      % for land&lt;br&gt;
l=repmat(l,5731,1);&lt;br&gt;
topomap_twocolor = [w;l];&lt;br&gt;
colormap(topomap_twocolor);&lt;br&gt;
&lt;br&gt;
I think because of many colormap entry, it displays only white. I tried to decrease the size of entry by factor of 50, but it is not accurate. So does anyone has work around for this?&lt;br&gt;
&lt;br&gt;
Thank you very much.&lt;br&gt;
&lt;br&gt;
Durga</description>
    </item>
    <item>
      <pubDate>Fri, 20 Apr 2012 21:07:42 +0000</pubDate>
      <title>Re: colormap of earth's topography</title>
      <link>http://www.mathworks.es/matlabcentral/newsreader/view_thread/319274#874353</link>
      <author>Richard Ellis</author>
      <description>How about this:&lt;br&gt;
&lt;br&gt;
image([0 360],[-90 90],topo,'CDataMapping', 'scaled');&lt;br&gt;
axis image xy&lt;br&gt;
colormap([1,1,1;0.5,0.5,0.5])&lt;br&gt;
caxis([-7473,7473])&lt;br&gt;
&lt;br&gt;
"Durga Lal Shrestha" &amp;lt;durgals@hotmail.com&amp;gt; wrote in message &lt;br&gt;
news:jmodjj$iag$1@newscl01ah.mathworks.com...&lt;br&gt;
&amp;gt; Hi&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I would like to change colormap of earth's topography as found in &lt;br&gt;
&amp;gt; following matlab demo.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &lt;a href="http://www.mathworks.com.au/products/matlab/demos.html?file=/products/demos/shipping/matlab/earthmap.html"&gt;http://www.mathworks.com.au/products/matlab/demos.html?file=/products/demos/shipping/matlab/earthmap.html&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; What I want is to have only two color, see (altitude &amp;lt;=0) as white and &lt;br&gt;
&amp;gt; land (altitude &amp;gt;0) is grey. I have  tried using colormap editor, but it is &lt;br&gt;
&amp;gt; very difficult.&lt;br&gt;
&amp;gt; The topo has minimum level of -7473 and maximum level of 5731. I did the &lt;br&gt;
&amp;gt; following&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; white=ones(7473,3);   % for ocean&lt;br&gt;
&amp;gt; l=[0.88 0.82 0.68];      % for land&lt;br&gt;
&amp;gt; l=repmat(l,5731,1);&lt;br&gt;
&amp;gt; topomap_twocolor = [w;l];&lt;br&gt;
&amp;gt; colormap(topomap_twocolor);&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I think because of many colormap entry, it displays only white. I tried to &lt;br&gt;
&amp;gt; decrease the size of entry by factor of 50, but it is not accurate. So &lt;br&gt;
&amp;gt; does anyone has work around for this?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thank you very much.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Durga </description>
    </item>
    <item>
      <pubDate>Tue, 24 Apr 2012 03:26:11 +0000</pubDate>
      <title>Re: colormap of earth's topography</title>
      <link>http://www.mathworks.es/matlabcentral/newsreader/view_thread/319274#874658</link>
      <author>Durga Lal Shrestha</author>
      <description>Thank you very much for the help. I did using "Fill on"  option in contour as below&lt;br&gt;
&lt;br&gt;
contour(0:359,-89:90,topo,[0 0],'LineColor',[188 164 94]./255,'LevelList',0,'Fill','on');&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Durga&lt;br&gt;
&lt;br&gt;
"Richard Ellis" &amp;lt;rich@mathworks.com&amp;gt; wrote in message &amp;lt;jmsj72$egh$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; How about this:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; image([0 360],[-90 90],topo,'CDataMapping', 'scaled');&lt;br&gt;
&amp;gt; axis image xy&lt;br&gt;
&amp;gt; colormap([1,1,1;0.5,0.5,0.5])&lt;br&gt;
&amp;gt; caxis([-7473,7473])&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; "Durga Lal Shrestha" &amp;lt;durgals@hotmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; news:jmodjj$iag$1@newscl01ah.mathworks.com...&lt;br&gt;
&amp;gt; &amp;gt; Hi&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; I would like to change colormap of earth's topography as found in &lt;br&gt;
&amp;gt; &amp;gt; following matlab demo.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &lt;a href="http://www.mathworks.com.au/products/matlab/demos.html?file=/products/demos/shipping/matlab/earthmap.html"&gt;http://www.mathworks.com.au/products/matlab/demos.html?file=/products/demos/shipping/matlab/earthmap.html&lt;/a&gt;&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; What I want is to have only two color, see (altitude &amp;lt;=0) as white and &lt;br&gt;
&amp;gt; &amp;gt; land (altitude &amp;gt;0) is grey. I have  tried using colormap editor, but it is &lt;br&gt;
&amp;gt; &amp;gt; very difficult.&lt;br&gt;
&amp;gt; &amp;gt; The topo has minimum level of -7473 and maximum level of 5731. I did the &lt;br&gt;
&amp;gt; &amp;gt; following&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; white=ones(7473,3);   % for ocean&lt;br&gt;
&amp;gt; &amp;gt; l=[0.88 0.82 0.68];      % for land&lt;br&gt;
&amp;gt; &amp;gt; l=repmat(l,5731,1);&lt;br&gt;
&amp;gt; &amp;gt; topomap_twocolor = [w;l];&lt;br&gt;
&amp;gt; &amp;gt; colormap(topomap_twocolor);&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; I think because of many colormap entry, it displays only white. I tried to &lt;br&gt;
&amp;gt; &amp;gt; decrease the size of entry by factor of 50, but it is not accurate. So &lt;br&gt;
&amp;gt; &amp;gt; does anyone has work around for this?&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Thank you very much.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Durga </description>
    </item>
  </channel>
</rss>
