<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5192396795186001384</id><updated>2025-10-18T00:03:34.223-07:00</updated><category term="matlab"/><category term="figure"/><category term="mac"/><category term="map"/><category term="colorbar"/><category term="colormap"/><category term="latex"/><category term="terminal"/><category term="tex"/><category term="unix"/><category term="figure; matlab"/><category term="modis"/><category term="ubuntu"/><category term="blogger"/><category term="tricks"/><category term="word"/><category term="automation"/><category term="bash"/><category term="code"/><category term="download"/><category term="html"/><category term="kile"/><category term="plot"/><category term="print"/><category term="python"/><category term="trick"/><category term="NS"/><category term="Nomachine"/><category term="SDD"/><category term="application"/><category term="autohotkey"/><category term="bayesian"/><category term="blog"/><category term="browser"/><category term="chrome"/><category term="cluster"/><category term="command"/><category term="csv"/><category term="diff"/><category term="dir"/><category term="disk"/><category term="dropbox"/><category term="equation"/><category term="filename"/><category term="fun"/><category term="gadget"/><category term="hex"/><category term="imagemagick"/><category term="install"/><category term="internet"/><category term="keynote"/><category term="mcmc"/><category term="movie"/><category term="nan"/><category term="office"/><category term="poster"/><category term="printer"/><category term="putty"/><category term="rsig"/><category term="screen"/><category term="script"/><category term="set"/><category term="silly"/><category term="task"/><category term="tool"/><category term="try"/><category term="virtual"/><category term="vm"/><category term="web"/><category term="wget"/><category term="widget"/><category term="windows"/><category term="xtra"/><title type='text'>usefulcodes.blogspot.com</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://usefulcodes.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://usefulcodes.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>221</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5192396795186001384.post-2983871566586693306</id><published>2023-03-21T15:28:00.004-07:00</published><updated>2023-03-21T15:28:49.176-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="figure; matlab"/><category scheme="http://www.blogger.com/atom/ns#" term="map"/><title type='text'>Map with Latitudes and Longitudes, filled with shades</title><content type='html'>Fun maps...&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFWscSfxZ0i06O3j-pcAixm2eV4pv17nqHm02uAoDG_q5_DzNESI93F5JOOTnm1OpCyCZFL-QhOyDkCRMN0CjVysQL3LTXoTveRYjLtR7QidkpiBNU0s4iJbpx2Zww-zLDLMftuKzItU8Pcr2GMh1q35KwiByVjijS0c8YmGnpl61jSlmiDouajyYv3Q/s988/shadedPointsMaps.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;596&quot; data-original-width=&quot;988&quot; height=&quot;193&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFWscSfxZ0i06O3j-pcAixm2eV4pv17nqHm02uAoDG_q5_DzNESI93F5JOOTnm1OpCyCZFL-QhOyDkCRMN0CjVysQL3LTXoTveRYjLtR7QidkpiBNU0s4iJbpx2Zww-zLDLMftuKzItU8Pcr2GMh1q35KwiByVjijS0c8YmGnpl61jSlmiDouajyYv3Q/s320/shadedPointsMaps.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&amp;nbsp;

&lt;blockquote class=&quot;tr_bq&quot;&gt;&lt;p class=&quot;p1&quot; style=&quot;color: forestgreen; font-family: Courier; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 10px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;%%&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Courier; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 10px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;clear &lt;span class=&quot;s1&quot; style=&quot;color: #a020f0;&quot;&gt;all&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;color: #a020f0; font-family: Courier; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 10px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px; min-height: 12px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;color: forestgreen; font-family: Courier; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 10px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;% Sample latitude and longitude data&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Courier; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 10px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;ilat = 25*rand(1,50)+25;&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Courier; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 10px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;ilon = 50*rand(1,50)-120;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;color: forestgreen; font-family: Courier; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 10px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;% Sample data for color-coding the points&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Courier; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 10px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;data = 10*rand(1,50);&lt;/p&gt;&lt;p class=&quot;p4&quot; style=&quot;font-family: Courier; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 10px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px; min-height: 12px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Courier; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 10px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;close &lt;span class=&quot;s1&quot; style=&quot;color: #a020f0;&quot;&gt;all&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Courier; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 10px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;latlim=[min(ilat) ,max(ilat)];&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Courier; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 10px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;lonlim=[min(ilon) , max(ilon)];&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;color: forestgreen; font-family: Courier; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 10px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;% find number of stations lat lon and number of data&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Courier; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 10px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;h1 = figure(1);&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Courier; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 10px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;ax = worldmap(latlim, lonlim);&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Courier; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 10px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;states = shaperead(&lt;span class=&quot;s1&quot; style=&quot;color: #a020f0;&quot;&gt;&#39;usastatehi&#39;&lt;/span&gt;,&lt;span class=&quot;s1&quot; style=&quot;color: #a020f0;&quot;&gt;&#39;UseGeoCoords&#39;&lt;/span&gt;, true, &lt;span class=&quot;s1&quot; style=&quot;color: #a020f0;&quot;&gt;&#39;BoundingBox&#39;&lt;/span&gt;, [lonlim&#39;, latlim&#39;]);&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Courier; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 10px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;geoshow(ax, states, &lt;span class=&quot;s1&quot; style=&quot;color: #a020f0;&quot;&gt;&#39;Facecolor&#39;&lt;/span&gt;, [1 1 0.9]);&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Courier; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 10px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;hold &lt;span class=&quot;s1&quot; style=&quot;color: #a020f0;&quot;&gt;on&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Courier; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 10px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;map = colormap;&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Courier; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 10px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;colorvector = map(1:64,:);&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Courier; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 10px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;pmvect = linspace(0, max(data), 64);&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Courier; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 10px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s2&quot; style=&quot;color: blue;&quot;&gt;for&lt;/span&gt; jj = 1:length(data)&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Courier; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 10px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s3&quot; style=&quot;color: forestgreen;&quot;&gt;%jj&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Courier; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 10px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;colorb = interp1(pmvect, colorvector, data(jj));&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Courier; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 10px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;plotm(ilat(jj),ilon(jj), data(jj),&lt;span class=&quot;s1&quot; style=&quot;color: #a020f0;&quot;&gt;&#39;o&#39;&lt;/span&gt;, &lt;span class=&quot;s1&quot; style=&quot;color: #a020f0;&quot;&gt;&#39;MarkerEdgeColor&#39;&lt;/span&gt;,&lt;span class=&quot;s1&quot; style=&quot;color: #a020f0;&quot;&gt;&#39;k&#39;&lt;/span&gt;,&lt;span class=&quot;s1&quot; style=&quot;color: #a020f0;&quot;&gt;&#39;MarkerFaceColor&#39;&lt;/span&gt;, colorb, &lt;span class=&quot;s1&quot; style=&quot;color: #a020f0;&quot;&gt;&#39;MarkerSize&#39;&lt;/span&gt;, 5);&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Courier; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 10px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;hold &lt;span class=&quot;s1&quot; style=&quot;color: #a020f0;&quot;&gt;on&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p5&quot; style=&quot;color: blue; font-family: Courier; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 10px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;end&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Courier; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 10px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;caxis([0&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &lt;/span&gt;max(data)])&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Courier; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 10px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;colorbar&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Courier; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 10px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;hold &lt;span class=&quot;s1&quot; style=&quot;color: #a020f0;&quot;&gt;off&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p6&quot; style=&quot;color: #a020f0; font-family: Courier; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 10px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s4&quot; style=&quot;color: black;&quot;&gt;set(gcf,&lt;/span&gt;&#39;Color&#39;&lt;span class=&quot;s4&quot; style=&quot;color: black;&quot;&gt;,&lt;/span&gt;&#39;white&#39;&lt;span class=&quot;s4&quot; style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;


&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-8272829485682002&quot;;
/* 300x250, created 9/11/09 */
google_ad_slot = &quot;2837785210&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://usefulcodes.blogspot.com/feeds/2983871566586693306/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5192396795186001384/2983871566586693306' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/2983871566586693306'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/2983871566586693306'/><link rel='alternate' type='text/html' href='http://usefulcodes.blogspot.com/2023/03/map-with-latitudes-and-longitudes.html' title='Map with Latitudes and Longitudes, filled with shades'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFWscSfxZ0i06O3j-pcAixm2eV4pv17nqHm02uAoDG_q5_DzNESI93F5JOOTnm1OpCyCZFL-QhOyDkCRMN0CjVysQL3LTXoTveRYjLtR7QidkpiBNU0s4iJbpx2Zww-zLDLMftuKzItU8Pcr2GMh1q35KwiByVjijS0c8YmGnpl61jSlmiDouajyYv3Q/s72-c/shadedPointsMaps.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5192396795186001384.post-67996141285037075</id><published>2022-12-23T20:31:00.006-08:00</published><updated>2022-12-23T20:31:47.981-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="map"/><title type='text'>Plot netcdf data on map</title><content type='html'>Plot netcdf data on map

&lt;blockquote class=&quot;tr_bq&quot;&gt;
 close all
 clear all
iwantFile =&#39;ECMWF_utci_20201201_v1.1_con.nc&#39;
iT = double(ncread(iwantFile, &#39;utci&#39;));
iT2 = iT(:,:,20);
iLon = double(ncread(iwantFile, &#39;lon&#39;));
iLat = double(ncread(iwantFile, &#39;lat&#39;));
 load coastlines
    figure(1);
    imagesc(&#39;xdata&#39;, iLon, &#39;ydata&#39;, iLat , &#39;cdata&#39;, (iT2&#39;));
    line(coastlon, coastlat, &#39;color&#39;, &#39;k&#39;)
    colorbar
    grid on; box on
caxis auto
set(gcf,&#39;Color&#39;,&#39;white&#39;)
xlim([-180 180])
ylim([-90 90])
&lt;/blockquote&gt;


&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-8272829485682002&quot;;
/* 300x250, created 9/11/09 */
google_ad_slot = &quot;2837785210&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://usefulcodes.blogspot.com/feeds/67996141285037075/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5192396795186001384/67996141285037075' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/67996141285037075'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/67996141285037075'/><link rel='alternate' type='text/html' href='http://usefulcodes.blogspot.com/2022/12/plot-netcdf-data-on-map.html' title='Plot netcdf data on map'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5192396795186001384.post-6433583626088462863</id><published>2022-01-22T21:11:00.002-08:00</published><updated>2022-01-22T21:11:29.275-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="latex"/><title type='text'>Combine PDFs in mac terminal</title><content type='html'>Combine PDF&lt;blockquote class=&quot;tr_bq&quot;&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-size: 11px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=BindCoverAll.pdf Cover1.pdf Editorial_Cover_TOC.pdf JNPS732021_Combined.pdf&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;


&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-8272829485682002&quot;;
/* 300x250, created 9/11/09 */
google_ad_slot = &quot;2837785210&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://usefulcodes.blogspot.com/feeds/6433583626088462863/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5192396795186001384/6433583626088462863' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/6433583626088462863'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/6433583626088462863'/><link rel='alternate' type='text/html' href='http://usefulcodes.blogspot.com/2022/01/combine-pdfs-in-mac-terminal.html' title='Combine PDFs in mac terminal'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5192396795186001384.post-3418349686899411776</id><published>2020-11-19T17:40:00.006-08:00</published><updated>2020-11-19T18:26:13.486-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="figure; matlab"/><title type='text'>Plotting NPP hdf data</title><content type='html'>&lt;div&gt;A sample code to plot the NPP data&lt;/div&gt;&lt;div&gt;The data source:&lt;/div&gt;&lt;div&gt;http://orca.science.oregonstate.edu/1080.by.2160.monthly.hdf.vgpm.m.chl.m.sst.php&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;&lt;p class=&quot;p1&quot; style=&quot;color: #aa04f9; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;span style=&quot;font-family: Helvetica;&quot;&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;filewant = &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Helvetica;&quot;&gt;&lt;span style=&quot;font-size: 10px;&quot;&gt;&#39;cafe.2007001.hdf&#39;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot; style=&quot;color: black; font-family: Helvetica; font-size: 10px;&quot;&gt;;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; min-height: 12px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;info = hdfinfo(filewant);&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; min-height: 12px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p4&quot; style=&quot;color: #028009; font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;% This is how you can investigate the file structure...&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;info.SDS&lt;/p&gt;&lt;p class=&quot;p4&quot; style=&quot;color: #028009; font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;%% note the names&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;info.SDS.Attributes.Name&lt;/p&gt;&lt;p class=&quot;p4&quot; style=&quot;color: #028009; font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;%% note the values of the attributes&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;info.SDS.Attributes.Value&lt;/p&gt;&lt;p class=&quot;p4&quot; style=&quot;color: #028009; font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;%% read the npp variable&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;npp&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &lt;/span&gt;= double(hdfread(filewant,&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;color: #aa04f9;&quot;&gt;&#39;npp&#39;&lt;/span&gt; ));&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; min-height: 12px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;npp(npp==-9999) = NaN;&lt;/p&gt;&lt;p class=&quot;p4&quot; style=&quot;color: #028009; font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;% figure;&lt;/p&gt;&lt;p class=&quot;p4&quot; style=&quot;color: #028009; font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;% imagesc(npp)&lt;/p&gt;&lt;p class=&quot;p4&quot; style=&quot;color: #028009; font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;color: black;&quot;&gt;npp = flipud(npp); &lt;/span&gt;% because npp is flipped upside down wrt lat/lon for map&lt;/p&gt;&lt;p class=&quot;p5&quot; style=&quot;color: #028009; font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; min-height: 12px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p4&quot; style=&quot;color: #028009; font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;%%&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;iLat = linspace(-90,90,1080);&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;iLon = linspace(-180,180,2160);&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;[Lat, Lon] = ndgrid(iLat,iLon);&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; min-height: 12px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;figure&lt;/p&gt;&lt;p class=&quot;p4&quot; style=&quot;color: #028009; font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;color: black;&quot;&gt;load &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;color: #aa04f9;&quot;&gt;coastlines&lt;/span&gt;&lt;span class=&quot;s1&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;% coastineData.mat&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;latlim=[floor(min(min(Lat))),ceil(max(max(Lat))) ];&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;lonlim=[floor(min(min(Lon))),ceil(max(max(Lon))) ];&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;ax = worldmap(latlim, lonlim);&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;surfacem(Lat, Lon, npp);&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;geoshow(coastlat, coastlon,&lt;span class=&quot;s2&quot; style=&quot;color: #aa04f9;&quot;&gt;&#39;Color&#39;&lt;/span&gt;, &lt;span class=&quot;s2&quot; style=&quot;color: #aa04f9;&quot;&gt;&#39;k&#39;&lt;/span&gt; )&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;colormap; set(gcf,&lt;span class=&quot;s2&quot; style=&quot;color: #aa04f9;&quot;&gt;&#39;Color&#39;&lt;/span&gt;,&lt;span class=&quot;s2&quot; style=&quot;color: #aa04f9;&quot;&gt;&#39;white&#39;&lt;/span&gt;)&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;colormap &lt;span class=&quot;s2&quot; style=&quot;color: #aa04f9;&quot;&gt;jet&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;map2 = colormap;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;map2( 1, : ) = 1; colormap(map2);&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;colorbar&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; min-height: 12px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;color: #aa04f9; font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;color: black;&quot;&gt;title(&lt;/span&gt;&#39;global dataset&#39;&lt;span class=&quot;s1&quot; style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; min-height: 12px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; min-height: 12px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;color: #aa04f9; font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;color: black;&quot;&gt;disp(&lt;/span&gt;&#39;Next we will try to crop out the area of interest&#39;&lt;span class=&quot;s1&quot; style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p4&quot; style=&quot;color: #028009; font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;%% This is an example of how to crop out to the area of interest...&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;iLat2 = linspace(-15,45,1080);&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;iLon2 = linspace(-90,0,2160);&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;[Lat2, Lon2] = ndgrid(iLat2,iLon2);&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; min-height: 12px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;F = griddedInterpolant(Lat,Lon,npp); &lt;span class=&quot;s3&quot; style=&quot;color: #028009;&quot;&gt;% read doc griddedInterpolant&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;npp_crop = F(Lat2,Lon2);&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; min-height: 12px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p4&quot; style=&quot;color: #028009; font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;%&lt;/p&gt;&lt;p class=&quot;p5&quot; style=&quot;color: #028009; font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; min-height: 12px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;figure&lt;/p&gt;&lt;p class=&quot;p4&quot; style=&quot;color: #028009; font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;color: black;&quot;&gt;load &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;color: #aa04f9;&quot;&gt;coastlines&lt;/span&gt;&lt;span class=&quot;s1&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;% coastineData.mat&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;latlim=[floor(min(min(Lat2))),ceil(max(max(Lat2))) ];&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;lonlim=[floor(min(min(Lon2))),ceil(max(max(Lon2))) ];&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;ax = worldmap(latlim, lonlim);&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;surfacem(Lat2, Lon2, npp_crop);&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;geoshow(coastlat, coastlon,&lt;span class=&quot;s2&quot; style=&quot;color: #aa04f9;&quot;&gt;&#39;Color&#39;&lt;/span&gt;, &lt;span class=&quot;s2&quot; style=&quot;color: #aa04f9;&quot;&gt;&#39;k&#39;&lt;/span&gt; )&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;colormap; set(gcf,&lt;span class=&quot;s2&quot; style=&quot;color: #aa04f9;&quot;&gt;&#39;Color&#39;&lt;/span&gt;,&lt;span class=&quot;s2&quot; style=&quot;color: #aa04f9;&quot;&gt;&#39;white&#39;&lt;/span&gt;)&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;colormap &lt;span class=&quot;s2&quot; style=&quot;color: #aa04f9;&quot;&gt;jet&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;map2 = colormap;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;map2( 1, : ) = 1; colormap(map2);&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;colorbar&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;color: #aa04f9; font-family: Helvetica; font-size: 10px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;color: black;&quot;&gt;title(&lt;/span&gt;&#39;NPP (mgC m-2 day-1)&#39;&lt;span class=&quot;s1&quot; style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7QYST83ObeAPax_B3C3uLMij7y5yGtiwnEGVFT0s_JWtMcTeMO_nNNJtQcKSzOlpdBe5WWM1oKttuAH_SKU-3JZfta4HX8nQGIO55ip6xfzlCHgPTdRTXGpqO6GDM0iF9sX-0iGNIcHfj/s1904/Screen+Shot+2020-11-19+at+9.10.36+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;640&quot; data-original-width=&quot;1904&quot; height=&quot;108&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7QYST83ObeAPax_B3C3uLMij7y5yGtiwnEGVFT0s_JWtMcTeMO_nNNJtQcKSzOlpdBe5WWM1oKttuAH_SKU-3JZfta4HX8nQGIO55ip6xfzlCHgPTdRTXGpqO6GDM0iF9sX-0iGNIcHfj/w320-h108/Screen+Shot+2020-11-19+at+9.10.36+PM.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Alternative code that I have seen:&lt;/p&gt;&lt;p&gt;&amp;nbsp;https://hdfeos.org/zoo/OTHER/npp_2010361_hdf.m&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;


&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-8272829485682002&quot;;
/* 300x250, created 9/11/09 */
google_ad_slot = &quot;2837785210&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://usefulcodes.blogspot.com/feeds/3418349686899411776/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5192396795186001384/3418349686899411776' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/3418349686899411776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/3418349686899411776'/><link rel='alternate' type='text/html' href='http://usefulcodes.blogspot.com/2020/11/plotting-npp-hdf-data.html' title='Plotting NPP hdf data'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7QYST83ObeAPax_B3C3uLMij7y5yGtiwnEGVFT0s_JWtMcTeMO_nNNJtQcKSzOlpdBe5WWM1oKttuAH_SKU-3JZfta4HX8nQGIO55ip6xfzlCHgPTdRTXGpqO6GDM0iF9sX-0iGNIcHfj/s72-w320-h108-c/Screen+Shot+2020-11-19+at+9.10.36+PM.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5192396795186001384.post-2184732158726057859</id><published>2019-12-30T14:38:00.000-08:00</published><updated>2019-12-30T14:38:33.411-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="latex"/><title type='text'>Alternating color in table conflicts with xcolor</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
T&lt;br /&gt;
&lt;br /&gt;
My issue was trying to use the table with alternate color in a latex document with the termcal.&lt;br /&gt;
\usepackage[table]{xcolor}&amp;nbsp; &amp;nbsp; % loads also »colortbl«&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
There were conflicts.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;code style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: #242729; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 1px 5px; vertical-align: baseline;&quot;&gt;\PassOptionsToPackage{table}{xcolor}&lt;/code&gt;&lt;span style=&quot;background-color: #fefefb; color: #242729; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;inserted before the&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: #242729; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 1px 5px; vertical-align: baseline;&quot;&gt;\documentclass{..} fixed the issue!&lt;/code&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
Yes, Thanks to&lt;br /&gt;
&lt;a href=&quot;https://tex.stackexchange.com/questions/5363/how-to-create-alternating-rows-in-a-table&quot;&gt;https://tex.stackexchange.com/questions/5363/how-to-create-alternating-rows-in-a-table&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-8272829485682002&quot;;
/* 300x250, created 9/11/09 */
google_ad_slot = &quot;2837785210&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usefulcodes.blogspot.com/feeds/2184732158726057859/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5192396795186001384/2184732158726057859' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/2184732158726057859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/2184732158726057859'/><link rel='alternate' type='text/html' href='http://usefulcodes.blogspot.com/2019/12/alternating-color-in-table-conflicts.html' title='Alternating color in table conflicts with xcolor'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5192396795186001384.post-3070669643177652547</id><published>2019-01-01T09:20:00.001-08:00</published><updated>2019-01-01T09:20:46.478-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="disk"/><category scheme="http://www.blogger.com/atom/ns#" term="SDD"/><title type='text'>DiskPart Recovering SD card</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
My problem:&lt;br /&gt;
Tried installing Raspberian into 32 GB SD card. The file system went corrupt-somehow. Could not recover the other big part in windows because windows system.&lt;br /&gt;
The diskmanagement&amp;nbsp;system showed the 30GB space in dark, which could not be accessed by simple formatting or change of the drive letter.&lt;br /&gt;
&lt;br /&gt;
So, I had to go commando.&lt;br /&gt;
Went to the command mode.&lt;br /&gt;
Windows&amp;gt; CMD (admin mode)&lt;br /&gt;
Then executed the following codes...&lt;br /&gt;
&lt;br /&gt;
Now I can see the whole SD card space!&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwuQdWwcqmlCXb28FDRSHTAjXzAUddr-4_Anvj44cHpRlxPkKI3-ZGgQwEZnjGyp2FV0BlMt4rgjuhI1zriPeuhIyHcaxNsQcGSUJhMQ_1eOr0QK3rT5EJ0qbOqTMipZbh_qBs1rtrpQ0B/s1600/disk_management.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;459&quot; data-original-width=&quot;992&quot; height=&quot;148&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwuQdWwcqmlCXb28FDRSHTAjXzAUddr-4_Anvj44cHpRlxPkKI3-ZGgQwEZnjGyp2FV0BlMt4rgjuhI1zriPeuhIyHcaxNsQcGSUJhMQ_1eOr0QK3rT5EJ0qbOqTMipZbh_qBs1rtrpQ0B/s320/disk_management.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3nUpDNm9n8zBOqp0BLKFPoh0qmxAs2c3Z48JOMLZGFQnMODMhyphenhyphenAZtQchMPVg6_uqHEHe5gMh0chSe3XJsql96i9K0-lS4Z8aFwKTNKshTG6I-wEuDaNKIhLGvrAy-BmkghA8FepZOvpD2/s1600/Format_Disk_diskpart.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;652&quot; data-original-width=&quot;699&quot; height=&quot;298&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3nUpDNm9n8zBOqp0BLKFPoh0qmxAs2c3Z48JOMLZGFQnMODMhyphenhyphenAZtQchMPVg6_uqHEHe5gMh0chSe3XJsql96i9K0-lS4Z8aFwKTNKshTG6I-wEuDaNKIhLGvrAy-BmkghA8FepZOvpD2/s320/Format_Disk_diskpart.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
diskpart&lt;br /&gt;
&lt;br /&gt;
Microsoft DiskPart version 10.0.ccc&lt;br /&gt;
&lt;br /&gt;
Copyright (C) 1999-2013 Microsoft Corporation.&lt;br /&gt;
On computer: xxx&lt;br /&gt;
&lt;br /&gt;
DISKPART&amp;gt; list disk&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; Disk ###&amp;nbsp; Status&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Size&amp;nbsp; &amp;nbsp; &amp;nbsp;Free&amp;nbsp; &amp;nbsp; &amp;nbsp;Dyn&amp;nbsp; Gpt&lt;br /&gt;
&amp;nbsp; --------&amp;nbsp; -------------&amp;nbsp; -------&amp;nbsp; -------&amp;nbsp; ---&amp;nbsp; ---&lt;br /&gt;
&amp;nbsp; Disk 0&amp;nbsp; &amp;nbsp; Online&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 476 GB&amp;nbsp; &amp;nbsp; &amp;nbsp; 0 B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; *&lt;br /&gt;
&amp;nbsp; Disk 1&amp;nbsp; &amp;nbsp; Online&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 476 GB&amp;nbsp; &amp;nbsp; &amp;nbsp; 0 B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; *&lt;br /&gt;
&amp;nbsp; Disk 2&amp;nbsp; &amp;nbsp; Online&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;29 GB&amp;nbsp; &amp;nbsp; 26 GB&lt;br /&gt;
&lt;br /&gt;
DISKPART&amp;gt; select disk 2&lt;br /&gt;
&lt;br /&gt;
Disk 2 is now the selected disk.&lt;br /&gt;
&lt;br /&gt;
DISKPART&amp;gt; clean&lt;br /&gt;
&lt;br /&gt;
DiskPart succeeded in cleaning the disk.&lt;br /&gt;
&lt;br /&gt;
DISKPART&amp;gt; create partition primary&lt;br /&gt;
&lt;br /&gt;
DiskPart succeeded in creating the specified partition.&lt;br /&gt;
&lt;br /&gt;
DISKPART&amp;gt; (then formatted the disk)&lt;/blockquote&gt;
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-8272829485682002&quot;;
/* 300x250, created 9/11/09 */
google_ad_slot = &quot;2837785210&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt; &lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usefulcodes.blogspot.com/feeds/3070669643177652547/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5192396795186001384/3070669643177652547' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/3070669643177652547'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/3070669643177652547'/><link rel='alternate' type='text/html' href='http://usefulcodes.blogspot.com/2019/01/diskpart-recovering-sd-card.html' title='DiskPart Recovering SD card'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwuQdWwcqmlCXb28FDRSHTAjXzAUddr-4_Anvj44cHpRlxPkKI3-ZGgQwEZnjGyp2FV0BlMt4rgjuhI1zriPeuhIyHcaxNsQcGSUJhMQ_1eOr0QK3rT5EJ0qbOqTMipZbh_qBs1rtrpQ0B/s72-c/disk_management.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5192396795186001384.post-3430294802216298377</id><published>2017-09-01T11:41:00.000-07:00</published><updated>2017-09-01T11:41:04.674-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="print"/><category scheme="http://www.blogger.com/atom/ns#" term="printer"/><title type='text'>Change Printers Default Single Sided Setting #mac</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&amp;nbsp;Well, there is an easy way...&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
http://localhost:631/&lt;/blockquote&gt;
This prompted me to do&lt;br /&gt;
&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;


&lt;span style=&quot;background-color: white; font-family: &amp;quot;menlo&amp;quot;; font-size: 11px;&quot;&gt;cupsctl WebInterface=yes&lt;/span&gt;&lt;br /&gt;
to the terminal... which enabled opening up the printer options... then I could set up the duplex printing.&lt;br /&gt;
Went to&lt;br /&gt;
http://localhost:631/admin/#General&lt;br /&gt;
Then, I had to select &quot;Two-sided, Long-edge binding&quot;.&lt;br /&gt;
&lt;br /&gt;
This enabled printing on both sides.&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-8272829485682002&quot;;
/* 300x250, created 9/11/09 */
google_ad_slot = &quot;2837785210&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usefulcodes.blogspot.com/feeds/3430294802216298377/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5192396795186001384/3430294802216298377' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/3430294802216298377'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/3430294802216298377'/><link rel='alternate' type='text/html' href='http://usefulcodes.blogspot.com/2017/09/change-printers-default-single-sided.html' title='Change Printers Default Single Sided Setting #mac'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5192396795186001384.post-1942457035956195715</id><published>2017-07-21T16:11:00.002-07:00</published><updated>2017-07-21T16:11:20.649-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="map"/><category scheme="http://www.blogger.com/atom/ns#" term="matlab"/><title type='text'>Plot USA m_maps</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
(cc).&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; close all&lt;br /&gt;
&amp;nbsp;load coastlines&lt;br /&gt;
states = shaperead(&#39;usastatehi&#39;,...&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;UseGeoCoords&#39;, true, &#39;BoundingBox&#39;, [lonlim&#39;, latlim&#39;]);&lt;br /&gt;
figure&lt;br /&gt;
m_proj(&#39;miller&#39;,&#39;long&#39;,[-125 -67],&#39;lat&#39;,[25 49.5]);&lt;br /&gt;
% m_gshhs_i(&#39;color&#39;,&#39;b&#39;);&lt;br /&gt;
% m_grid(&#39;box&#39;,&#39;fancy&#39;,&#39;tickdir&#39;,&#39;in&#39;);&lt;br /&gt;
m_coord(&#39;geographic&#39;); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; % Switch to assuming geographic&lt;br /&gt;
% m_coast(&#39;patch&#39;,[1 1 0.99],&#39;edgecolor&#39;,&#39;b&#39;);&lt;br /&gt;
&amp;nbsp; m_coast(&#39;patch&#39;,[.98 0.98 .98],&#39;edgecolor&#39;,&#39;none&#39;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; m_grid(&#39;box&#39;,&#39;fancy&#39;,&#39;linestyle&#39;,&#39;none&#39;,&#39;backcolor&#39;,[.8 .96 1]);&lt;br /&gt;
m_text(-121,38.08, &amp;nbsp;&#39;*&#39; ,&#39;color&#39;,&#39;r&#39;,&#39;fontweight&#39;,&#39;bold&#39;,&#39;fontsize&#39;,24); % Tahoe&lt;br /&gt;
m_text(-116.8,33.03, &amp;nbsp;&#39;*&#39; ,&#39;color&#39;,&#39;r&#39;,&#39;fontweight&#39;,&#39;bold&#39;,&#39;fontsize&#39;,24); % salton Sea&lt;br /&gt;
&lt;br /&gt;
m_text( -77.8729,40.2547, &amp;nbsp;&#39;*&#39; ,&#39;color&#39;,&#39;r&#39;,&#39;fontweight&#39;,&#39;bold&#39;,&#39;fontsize&#39;,24); % PSU&lt;br /&gt;
m_text( -89.9729,33.9, &amp;nbsp;&#39;*&#39; ,&#39;color&#39;,&#39;r&#39;,&#39;fontweight&#39;,&#39;bold&#39;,&#39;fontsize&#39;,24); % GWN&lt;br /&gt;
m_text(-97.62,43.3, &amp;nbsp;&#39;*&#39; ,&#39;color&#39;,&#39;r&#39;,&#39;fontweight&#39;,&#39;bold&#39;,&#39;fontsize&#39;,24); % SXF&lt;br /&gt;
m_text(-89.37,40., &amp;nbsp;&#39;*&#39; ,&#39;color&#39;,&#39;r&#39;,&#39;fontweight&#39;,&#39;bold&#39;,&#39;fontsize&#39;,24); % BND&lt;br /&gt;
&lt;br /&gt;
for kk = 1:length(states)&lt;br /&gt;
m_line(states(kk).Lon,states(kk).Lat,&#39;linewi&#39;,0.5,&#39;color&#39;,[200 200 200]./255);&lt;br /&gt;
end&lt;br /&gt;
set(gcf,&#39;Color&#39;,&#39;White&#39;)&lt;br /&gt;
&lt;br /&gt;
export_fig([ saveDir, &amp;nbsp;&#39;USA_validationPoints&#39;],&#39;-png&#39;,&#39;-r250&#39;)&lt;/blockquote&gt;
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-8272829485682002&quot;;
/* 300x250, created 9/11/09 */
google_ad_slot = &quot;2837785210&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usefulcodes.blogspot.com/feeds/1942457035956195715/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5192396795186001384/1942457035956195715' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/1942457035956195715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/1942457035956195715'/><link rel='alternate' type='text/html' href='http://usefulcodes.blogspot.com/2017/07/plot-usa-mmaps.html' title='Plot USA m_maps'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5192396795186001384.post-5291762498279636978</id><published>2017-05-31T12:08:00.001-07:00</published><updated>2017-05-31T12:10:10.506-07:00</updated><title type='text'>From Google Fusion table to Google Earth Engine!</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
First I made a Google Fusion table with few points with Latitue and Logitude geo-coded Names.&lt;br /&gt;
Then imported into fusion table&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;br /&gt;
// import the fusion table&lt;br /&gt;
var Da = ee.FeatureCollection(&#39;ft:18RyzwhfBU0TVFa4HWFEp778Tkd9YV-X1pE_Q1hq6&#39;).geometry();&lt;br /&gt;
&lt;br /&gt;
// Set center of map&lt;br /&gt;
Map.centerObject(Da, 6);&lt;br /&gt;
&lt;br /&gt;
// show the layer&lt;br /&gt;
Map.addLayer(Da);&lt;/blockquote&gt;
The cryptic code in the FeatureCollection is the ID of the fusion table.&lt;br /&gt;
&lt;br /&gt;
See an example here&lt;br /&gt;
https://code.earthengine.google.com/78e9375af2c31dbb5381dede4a46d922 &lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-8272829485682002&quot;;
/* 300x250, created 9/11/09 */
google_ad_slot = &quot;2837785210&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usefulcodes.blogspot.com/feeds/5291762498279636978/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5192396795186001384/5291762498279636978' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/5291762498279636978'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/5291762498279636978'/><link rel='alternate' type='text/html' href='http://usefulcodes.blogspot.com/2017/05/from-google-fusion-table-to-google.html' title='From Google Fusion table to Google Earth Engine!'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5192396795186001384.post-8711199351335701589</id><published>2016-09-13T14:56:00.002-07:00</published><updated>2016-09-13T14:56:47.645-07:00</updated><title type='text'>Insert degree symbol in MS word</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Note to self:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;ol class=&quot;b_dList&quot; style=&quot;background-color: white; border-collapse: collapse; border-spacing: 0px; border: 0px; color: #444444; font-family: &amp;quot;Segoe UI&amp;quot;, Arial, Helvetica, sans-serif; font-size: 16px; line-height: 24px; list-style: none; margin: 0px; padding: 0px 0px 0px 30px; white-space: pre-wrap;&quot;&gt;
&lt;li style=&quot;border-collapse: collapse; border-spacing: 0px; border: 0px; list-style: decimal; margin: 0px 0px 0px 20px; padding: 0px 0px 10px;&quot;&gt;Press and hold &lt;span style=&quot;font-weight: 700;&quot;&gt;&quot;Ctrl&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border-collapse: collapse; border-spacing: 0px; border: 0px; list-style: decimal; margin: 0px 0px 0px 20px; padding: 0px 0px 10px;&quot;&gt;Press and hold &lt;span style=&quot;font-weight: 700;&quot;&gt;&quot;Shift&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border-collapse: collapse; border-spacing: 0px; border: 0px; list-style: decimal; margin: 0px 0px 0px 20px; padding: 0px 0px 10px;&quot;&gt;Press &lt;span style=&quot;font-weight: 700;&quot;&gt;&quot;@&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border-collapse: collapse; border-spacing: 0px; border: 0px; list-style: decimal; margin: 0px 0px 0px 20px; padding: 0px 0px 10px;&quot;&gt;Release &lt;span style=&quot;font-weight: 700;&quot;&gt;&quot;Ctrl&quot;&lt;/span&gt;, &lt;span style=&quot;font-weight: 700;&quot;&gt;&quot;Shift&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border-collapse: collapse; border-spacing: 0px; border: 0px; list-style: decimal; margin: 0px 0px 0px 20px; padding-bottom: 0px !important; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;Press &lt;span style=&quot;font-weight: 700;&quot;&gt;&quot;Space Bar&quot;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-8272829485682002&quot;;
/* 300x250, created 9/11/09 */
google_ad_slot = &quot;2837785210&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usefulcodes.blogspot.com/feeds/8711199351335701589/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5192396795186001384/8711199351335701589' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/8711199351335701589'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/8711199351335701589'/><link rel='alternate' type='text/html' href='http://usefulcodes.blogspot.com/2016/09/insert-degree-symbol-in-ms-word.html' title='Insert degree symbol in MS word'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5192396795186001384.post-6608219563328974808</id><published>2016-07-13T14:05:00.004-07:00</published><updated>2016-07-13T14:06:36.697-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="python"/><title type='text'>installing #altair #python #conda</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;gt;conda install altair --channel conda-forge&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
The following packages will be downloaded:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; package &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;build&lt;br /&gt;
&amp;nbsp; &amp;nbsp; ---------------------------|-----------------&lt;br /&gt;
&amp;nbsp; &amp;nbsp; conda-4.1.8 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; py35_0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 247 KB&lt;br /&gt;
&amp;nbsp; &amp;nbsp; pandas-0.18.1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp;np110py35_0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6.9 MB &amp;nbsp;conda-forge&lt;br /&gt;
&amp;nbsp; &amp;nbsp; vega-0.4.1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; py35_1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 904 KB &amp;nbsp;conda-forge&lt;br /&gt;
&amp;nbsp; &amp;nbsp; altair-1.0.0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; py35_0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.6 MB &amp;nbsp;conda-forge&lt;br /&gt;
&amp;nbsp; &amp;nbsp; ------------------------------------------------------------&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Total: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9.6 MB&lt;br /&gt;
Linking packages ...&lt;br /&gt;
[vega &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;]|######################### &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp;50%&lt;br /&gt;
C:\Users\Userme&amp;gt;&quot;C:\Users\Userme\AppData\Local\Continuum\Anaconda3\Scripts\jupyter-nbextension.exe&quot; install vega --py --sys-prefix &amp;nbsp; &lt;b&gt;&amp;amp;&amp;amp; if errorlevel 1 exit 1&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Just for my note&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; To initialize this nbextension in the browser every time the notebook (or other app) loads:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; jupyter nbextension enable vega --py --sys-prefix&lt;/blockquote&gt;
&lt;br /&gt;
The documentation:&lt;br /&gt;
&lt;a href=&quot;https://github.com/ellisonbg/altair&quot;&gt;https://github.com/ellisonbg/altair &lt;/a&gt;&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-8272829485682002&quot;;
/* 300x250, created 9/11/09 */
google_ad_slot = &quot;2837785210&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usefulcodes.blogspot.com/feeds/6608219563328974808/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5192396795186001384/6608219563328974808' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/6608219563328974808'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/6608219563328974808'/><link rel='alternate' type='text/html' href='http://usefulcodes.blogspot.com/2016/07/installing-altair-python-conda.html' title='installing #altair #python #conda'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5192396795186001384.post-8617406025901907669</id><published>2016-06-28T09:45:00.000-07:00</published><updated>2016-06-28T09:45:03.661-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="figure; matlab"/><title type='text'>Create Clickable imagesc for 2D data</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Looking at the figure is fun, specially if you can click and get the values. So, created this little function which can give you title and data tips @cursor location.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
function imagesca(x, titlewant)&lt;br /&gt;
h = figure;&lt;br /&gt;
imagesc(x);&lt;br /&gt;
colorbar&lt;br /&gt;
try&lt;br /&gt;
&amp;nbsp; &amp;nbsp; title(titlewant);&lt;br /&gt;
catch ME&lt;br /&gt;
&amp;nbsp; &amp;nbsp; title(&#39;Figure&#39;)&lt;br /&gt;
end&lt;br /&gt;
datacursormode on&lt;/blockquote&gt;
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-8272829485682002&quot;;
/* 300x250, created 9/11/09 */
google_ad_slot = &quot;2837785210&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usefulcodes.blogspot.com/feeds/8617406025901907669/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5192396795186001384/8617406025901907669' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/8617406025901907669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/8617406025901907669'/><link rel='alternate' type='text/html' href='http://usefulcodes.blogspot.com/2016/06/create-clickable-imagesc-for-2d-data.html' title='Create Clickable imagesc for 2D data'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5192396795186001384.post-3391464491338417925</id><published>2016-06-16T10:49:00.000-07:00</published><updated>2016-06-16T10:49:00.158-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="poster"/><category scheme="http://www.blogger.com/atom/ns#" term="print"/><category scheme="http://www.blogger.com/atom/ns#" term="trick"/><title type='text'>Print a large poster on multiple A4/paper </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsvsaNVstceDrpITf0lkiYb5Q2iPGxvXCics9KzT8YsNfutZJa3FfK7krEif1kzaKg9sanDFVGG_7GPBqN9OQUuO-QF4g7u6-jZCsouKx8ok2mS1AWKQ-_3pbV-wLmTvmrhpSzpLBdnkdP/s1600/mars_multiples.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;133&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsvsaNVstceDrpITf0lkiYb5Q2iPGxvXCics9KzT8YsNfutZJa3FfK7krEif1kzaKg9sanDFVGG_7GPBqN9OQUuO-QF4g7u6-jZCsouKx8ok2mS1AWKQ-_3pbV-wLmTvmrhpSzpLBdnkdP/s400/mars_multiples.PNG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
There are two ways:&lt;br /&gt;
1. Save the (powerpoint) document as &amp;nbsp;pdf.&lt;br /&gt;
2. Open the pdf, print.&lt;br /&gt;
3. Select the appropriate options in the poster option in the page size and handling section&lt;br /&gt;
4. The options are Tile scale: 200% for example, overlap by few tenth of the inches&lt;br /&gt;
5. Cutmarks and labels etc are optional #4 does the magic!&lt;br /&gt;
&lt;br /&gt;
Another way that I learned from the internet is to paste the picture in the excel sheet. The excel is smart enough to segment the pic into multiple pages. And, I used to think that extra flowing line being printed into second page was a bad feature in excel! :)&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-8272829485682002&quot;;
/* 300x250, created 9/11/09 */
google_ad_slot = &quot;2837785210&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usefulcodes.blogspot.com/feeds/3391464491338417925/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5192396795186001384/3391464491338417925' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/3391464491338417925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/3391464491338417925'/><link rel='alternate' type='text/html' href='http://usefulcodes.blogspot.com/2016/06/print-large-poster-on-multiple-a4paper.html' title='Print a large poster on multiple A4/paper '/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsvsaNVstceDrpITf0lkiYb5Q2iPGxvXCics9KzT8YsNfutZJa3FfK7krEif1kzaKg9sanDFVGG_7GPBqN9OQUuO-QF4g7u6-jZCsouKx8ok2mS1AWKQ-_3pbV-wLmTvmrhpSzpLBdnkdP/s72-c/mars_multiples.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5192396795186001384.post-5174264775595144963</id><published>2016-06-15T17:47:00.000-07:00</published><updated>2016-06-15T17:47:00.551-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="dropbox"/><title type='text'>Dropbox over server</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Well, I had some failures in the past. So, I wanted to try again.&lt;br /&gt;
First, I had to run headless install via command line.&lt;br /&gt;
Then ran the Dropbox daemon from the newly created&amp;nbsp;.dropbox-dist folder.&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3d464d; font-size: 13px;&quot;&gt;~/.dropbox-dist/dropboxd&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #3d464d; font-size: 13px;&quot;&gt;That got me a unique link to link dropbox account to cloud.&lt;/span&gt;&lt;br /&gt;
Then I got the dropbox.py code from the help page (https://www.dropbox.com/install?os=lnx)&lt;br /&gt;
&lt;div&gt;
Rest was not bad!&lt;/div&gt;
Here are some of the commands that I had to run... because I wanted to exclude bunch of folders from syncing. I wish there was &quot;include&quot; option instead of &quot;exclude&quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre style=&quot;background: rgb(245, 245, 245); border-radius: 3px; border: 1px solid rgb(204, 204, 204); color: #333333; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 22px; margin-bottom: 20px; padding: 20px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;~/bin/dropbox.py exclude add ~/Dropbox/MyExclude1 ~/Dropbox/MyExclude2 &lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre style=&quot;background: rgb(245, 245, 245); border-radius: 3px; border: 1px solid rgb(204, 204, 204); color: #333333; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 22px; margin-bottom: 20px; padding: 20px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;~/bin/dropbox.py exclude list &lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre style=&quot;background: rgb(245, 245, 245); border-radius: 3px; border: 1px solid rgb(204, 204, 204); color: #333333; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 22px; margin-bottom: 20px; padding: 20px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;~/bin/dropbox.py help &lt;/span&gt;&lt;span style=&quot;font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;~/bin/dropbox.py status &lt;/span&gt;&lt;span style=&quot;font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace;&quot;&gt;~/bin/dropbox.py start&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;/blockquote&gt;
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-8272829485682002&quot;;
/* 300x250, created 9/11/09 */
google_ad_slot = &quot;2837785210&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usefulcodes.blogspot.com/feeds/5174264775595144963/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5192396795186001384/5174264775595144963' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/5174264775595144963'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/5174264775595144963'/><link rel='alternate' type='text/html' href='http://usefulcodes.blogspot.com/2016/06/dropbox-over-server.html' title='Dropbox over server'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5192396795186001384.post-2631657632363663083</id><published>2016-06-15T15:09:00.002-07:00</published><updated>2016-06-15T15:09:20.707-07:00</updated><title type='text'>Plot LST</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Just a code to plot LST&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Lat &amp;nbsp;= double(hdfread(filewant, &amp;nbsp;&#39;Latitude&#39; ));&lt;br /&gt;
Lon &amp;nbsp;= &amp;nbsp;double(hdfread(filewant, &amp;nbsp;&#39;Longitude&#39; ));&lt;br /&gt;
LST = 0.02* double(hdfread(filewant, &amp;nbsp;&#39;LST&#39; ));&lt;br /&gt;
LST(LST==0)=NaN;&lt;br /&gt;
figure&lt;br /&gt;
&lt;br /&gt;
load coast&lt;br /&gt;
latlim=[floor(min(min(Lat))),ceil(max(max(Lat))) ]; lonlim=[floor(min(min(Lon))),ceil(max(max(Lon))) ];&lt;br /&gt;
ax = worldmap(latlim, lonlim);&lt;br /&gt;
surfacem(Lat, Lon, LST);&lt;br /&gt;
geoshow(lat, long,&#39;Color&#39;, &#39;black&#39; )&lt;br /&gt;
colormap; set(gcf,&#39;Color&#39;,&#39;white&#39;)&lt;br /&gt;
map2 = colormap; map2( 1, : ) = 0; colormap(map2);&lt;br /&gt;
colorbar % saveas(gcf, &#39;plotHDF.png&#39;, &#39;png&#39;) close all&lt;br /&gt;
caxis([ 290 330])&lt;/blockquote&gt;
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-8272829485682002&quot;;
/* 300x250, created 9/11/09 */
google_ad_slot = &quot;2837785210&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usefulcodes.blogspot.com/feeds/2631657632363663083/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5192396795186001384/2631657632363663083' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/2631657632363663083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/2631657632363663083'/><link rel='alternate' type='text/html' href='http://usefulcodes.blogspot.com/2016/06/plot-lst.html' title='Plot LST'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5192396795186001384.post-4612779623823172854</id><published>2016-06-14T15:30:00.000-07:00</published><updated>2016-06-14T15:30:02.074-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="chrome"/><title type='text'>Chrome: Add keyboard shortcut to your favorite website</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div&gt;
This trick works on Google chrome.&amp;nbsp;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Right click on the address bar&lt;/li&gt;
&lt;li&gt;Edit Search Engines&lt;/li&gt;
&lt;li&gt;Scroll to the bottom of the list&lt;/li&gt;
&lt;li&gt;Give the name, keyword (eg. gs: for google scholar), then URL.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
You can put %s in place of query.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-8272829485682002&quot;;
/* 300x250, created 9/11/09 */
google_ad_slot = &quot;2837785210&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;
&lt;script src=&quot;https://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usefulcodes.blogspot.com/feeds/4612779623823172854/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5192396795186001384/4612779623823172854' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/4612779623823172854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/4612779623823172854'/><link rel='alternate' type='text/html' href='http://usefulcodes.blogspot.com/2016/06/chrome-add-keyboard-shortcut-to-your.html' title='Chrome: Add keyboard shortcut to your favorite website'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5192396795186001384.post-8032831120520877952</id><published>2016-06-13T16:51:00.004-07:00</published><updated>2016-06-13T16:53:19.034-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="colorbar"/><category scheme="http://www.blogger.com/atom/ns#" term="matlab"/><title type='text'>Matlab Colorbar: LST</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I think I found a good one! (Sorry intensity, no one prints grayscale pics these days... they just read on-screen).&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
r1 = [1 0];&lt;br /&gt;
g1 = [0 0];&lt;br /&gt;
b1 = &amp;nbsp;[1 1];&lt;br /&gt;
rgb1 = [r1; g1; b1]&#39;;&lt;br /&gt;
rgba = interp1([1 2],rgb1, linspace(1,2,16 ));&lt;br /&gt;
r1 = [0 0];&lt;br /&gt;
g1 = [0 1];&lt;br /&gt;
b1 = &amp;nbsp;[1 1];&lt;br /&gt;
rgb1 = [r1; g1; b1]&#39;;&lt;br /&gt;
rgbb = interp1([1 2],rgb1, linspace(1,2,11 ));&lt;br /&gt;
&lt;br /&gt;
r1 = [0 0];&lt;br /&gt;
g1 = [1 1];&lt;br /&gt;
b1 = &amp;nbsp;[1 0];&lt;br /&gt;
rgb1 = [r1; g1; b1]&#39;;&lt;br /&gt;
rgbc = interp1([1 2],rgb1, linspace(1,2,10));&lt;br /&gt;
&lt;br /&gt;
r1 = [0 1];&lt;br /&gt;
g1 = [1 1];&lt;br /&gt;
b1 = &amp;nbsp;[0 0];&lt;br /&gt;
rgb1 = [r1; g1; b1]&#39;;&lt;br /&gt;
rgbd = interp1([1 2],rgb1, linspace(1,2,11 ));&lt;br /&gt;
&lt;br /&gt;
r1 = [ 1 1];&lt;br /&gt;
g1 = [1 0];&lt;br /&gt;
b1 = &amp;nbsp;[0 0];&lt;br /&gt;
rgb2 = [r1; g1; b1]&#39;;&lt;br /&gt;
rgbe= interp1([1 2],rgb2, linspace(1,2,16));&lt;br /&gt;
&lt;br /&gt;
newNDVI = [rgba;rgbb;rgbc;rgbd;rgbe];&lt;br /&gt;
&lt;br /&gt;
newNDVI= interp1( newNDVI, linspace(1,64,256));&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%&lt;br /&gt;
figure&lt;br /&gt;
plot([1:256],newNDVI(:,1), &#39;ro-&#39;); hold on&lt;br /&gt;
plot([1:256],newNDVI(:,2), &#39;g*-&#39;); &lt;br /&gt;
plot([1:256],newNDVI(:,3), &#39;bd-.&#39;);&lt;br /&gt;
xlim([1 256])&lt;br /&gt;
&lt;br /&gt;
colormap(newNDVI );&lt;br /&gt;
cmap = colormap; % cmap nicely puts colormap into 3 col data&lt;br /&gt;
% colorbar&lt;br /&gt;
caxis([0 1])&lt;br /&gt;
hc = colorbar(&#39;southoutside&#39;);&lt;br /&gt;
set(hc, &#39;FontSize&#39;, 16)&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;axis off; set(gcf,&#39;Color&#39;,&#39;White&#39;)&lt;br /&gt;
&lt;br /&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6HWplIe1gXFW7OwtJZZYUQ6ZqluFZatL0Q6-CnekI25lmmjXD3b6Y0K7-x49_uQ54591v6BngswG344P3cwGu401tFBGaHYSZUIFsvEBTqtgsFNns1BeOZ7TmrRvt7qErTlf1WzDz20q6/s1600/LST_nasa.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6HWplIe1gXFW7OwtJZZYUQ6ZqluFZatL0Q6-CnekI25lmmjXD3b6Y0K7-x49_uQ54591v6BngswG344P3cwGu401tFBGaHYSZUIFsvEBTqtgsFNns1BeOZ7TmrRvt7qErTlf1WzDz20q6/s320/LST_nasa.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
I can append white and or black at the end for distinction, if needed.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;/blockquote&gt;
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-8272829485682002&quot;;
/* 300x250, created 9/11/09 */
google_ad_slot = &quot;2837785210&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usefulcodes.blogspot.com/feeds/8032831120520877952/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5192396795186001384/8032831120520877952' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/8032831120520877952'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/8032831120520877952'/><link rel='alternate' type='text/html' href='http://usefulcodes.blogspot.com/2016/06/matlab-colorbar-lst.html' title='Matlab Colorbar: LST'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6HWplIe1gXFW7OwtJZZYUQ6ZqluFZatL0Q6-CnekI25lmmjXD3b6Y0K7-x49_uQ54591v6BngswG344P3cwGu401tFBGaHYSZUIFsvEBTqtgsFNns1BeOZ7TmrRvt7qErTlf1WzDz20q6/s72-c/LST_nasa.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5192396795186001384.post-3679982938198502051</id><published>2016-06-01T10:02:00.002-07:00</published><updated>2016-06-01T10:02:12.425-07:00</updated><title type='text'>Insert the date and time into the google docs</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This first appeared here ...&amp;nbsp;&lt;a href=&quot;http://ajabgajab.blogspot.com/2015/01/insert-date-and-time-into-google-docs.html&quot;&gt;http://ajabgajab.blogspot.com/2015/01/insert-date-and-time-into-google-docs.html&amp;nbsp;&lt;/a&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;
This is how you insert the date and time to the google docs&lt;br /&gt;&lt;br /&gt;1. Go to the Google document/new document.&lt;br /&gt;2. Go to the Tools/Script Editor, and insert the following script at the bottom of the scripts.&lt;br /&gt;This will create a new menu. You can modify the code to change the appearance of the month/date.&lt;br /&gt;3. See the end note to add automated date entry!&lt;br /&gt;&lt;br /&gt;The code is available below/ at pastebin.&lt;br /&gt;&lt;a href=&quot;http://pastebin.com/QFpTRQ3h&quot; style=&quot;color: #747474; text-decoration: none;&quot;&gt;http://pastebin.com/QFpTRQ3h&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;
&lt;/blockquote&gt;
&lt;br /&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;br /&gt;function onOpen() {&lt;br /&gt;&amp;nbsp; var ui = DocumentApp.getUi();&lt;br /&gt;&amp;nbsp; // Or FormApp or SpreadsheetApp.&lt;br /&gt;&amp;nbsp; ui.createMenu(&#39;Insert Date&#39;)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; .addItem(&#39;Insert Date&#39;, &#39;insertDate&#39;)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; .addToUi();&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function insertDate() {&lt;br /&gt;&amp;nbsp; var cursor = DocumentApp.getActiveDocument().getCursor();&lt;br /&gt;&amp;nbsp; if (cursor) {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; // Attempt to insert text at the cursor position. If insertion returns null,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; // then the cursor&#39;s containing element doesn&#39;t allow text insertions.&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; var d = new Date();&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; var dd = d.getDate();&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; var hrs = d.getHours();&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; var min = d.getMinutes();&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; dd = pad(dd, 2)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; var mm = d.getMonth() + 1; //Months are zero based&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; mm = pad(mm, 2)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; var yyyy = d.getFullYear();&lt;br /&gt;&amp;nbsp; &amp;nbsp; var date = &amp;nbsp;&quot;Date: &quot;+mm + &quot;-&quot; +dd + &quot;-&quot; + yyyy+ &quot;::&quot;+hrs+&quot;:&quot;+min +&quot;\n&quot;;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; var element = cursor.insertText(date);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if (element) {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; element.setBold(true);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; } else {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DocumentApp.getUi().alert(&#39;Cannot insert text at this cursor location.&#39;);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;&amp;nbsp; &amp;nbsp; } else {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; DocumentApp.getUi().alert(&#39;Cannot find a cursor in the document.&#39;);&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;function pad (str, max) {&lt;br /&gt;&amp;nbsp; str = str.toString();&lt;br /&gt;&amp;nbsp; return str.length &amp;lt; max ? pad(&quot;0&quot; + str, max) : str;&lt;br /&gt;}&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot; /&gt;&lt;span style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot;&gt;---&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;center style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot;&gt;
&lt;/center&gt;
&lt;span style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot;&gt;--&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot; /&gt;&lt;br style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot; /&gt;&lt;b style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot;&gt;Note:&lt;/b&gt;&lt;br style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot; /&gt;&lt;span style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot;&gt;If you add the following function call inside the onOpen() function:&lt;/span&gt;&lt;br style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot; /&gt;&lt;span style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot;&gt;&amp;nbsp; insertDate();&lt;/span&gt;&lt;br style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot; /&gt;&lt;span style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot;&gt;Then you will get automated insertion of date and time. Great for logging the daily notes!!!&lt;/span&gt;&lt;br style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot; /&gt;&lt;br /&gt;
&lt;blockquote style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot;&gt;
&lt;/blockquote&gt;
&lt;br style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot; /&gt;
&lt;pre style=&quot;background-color: #e3e5ff; font-size: 15.4px; line-height: 21.56px;&quot;&gt;&lt;/pre&gt;
&lt;br style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot; /&gt;&lt;span style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot;&gt;function onOpen() {&lt;/span&gt;&lt;br style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot; /&gt;&lt;span style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot;&gt;&amp;nbsp; var ui = DocumentApp.getUi();&lt;/span&gt;&lt;br style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot; /&gt;&lt;span style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot;&gt;&amp;nbsp; // Or FormApp or SpreadsheetApp.&lt;/span&gt;&lt;br style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot; /&gt;&lt;span style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot;&gt;&amp;nbsp; ui.createMenu(&#39;Insert Date&#39;)&lt;/span&gt;&lt;br style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot; /&gt;&lt;span style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; .addItem(&#39;Insert Date&#39;, &#39;insertDate&#39;)&lt;/span&gt;&lt;br style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot; /&gt;&lt;span style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; .addToUi();&lt;/span&gt;&lt;br style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot; /&gt;&lt;br style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot; /&gt;&lt;span style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot;&gt;&amp;nbsp; insertDate();&lt;/span&gt;&lt;br style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot; /&gt;&lt;br style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot; /&gt;&lt;span style=&quot;background-color: #e3e5ff; font-family: Georgia, Utopia, &amp;quot;Palatino Linotype&amp;quot;, Palatino, serif; font-size: 15.4px; line-height: 21.56px;&quot;&gt;}&lt;/span&gt;&lt;/blockquote&gt;
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-8272829485682002&quot;;
/* 300x250, created 9/11/09 */
google_ad_slot = &quot;2837785210&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usefulcodes.blogspot.com/feeds/3679982938198502051/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5192396795186001384/3679982938198502051' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/3679982938198502051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/3679982938198502051'/><link rel='alternate' type='text/html' href='http://usefulcodes.blogspot.com/2016/06/insert-date-and-time-into-google-docs.html' title='Insert the date and time into the google docs'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5192396795186001384.post-4286740590909845660</id><published>2016-05-27T16:23:00.001-07:00</published><updated>2016-05-27T16:56:57.451-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="colormap"/><title type='text'>Colormap for NDVI</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Setting up NDVI colorbar can be tricky! You want a nice representation of the vegetation and bare surfaces in the map.&lt;br /&gt;
&lt;br /&gt;
1. I found an easy way would be to flip the default matlab summer color bar upside down!&lt;br /&gt;
colormap(&#39;summer&#39;)&lt;br /&gt;
map2 = (colormap); &lt;br /&gt;
map2 = flipud(map2);&lt;br /&gt;
colormap(map2);&lt;br /&gt;
cmap = colormap;&lt;br /&gt;
It looks like:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAOBWAn27FaPxfBX-wTBkJNW6ZpjIveuthKmB_DWY-ZVwH_qlFZrSUW1iJJIblXX3b2IRM-XSnLxy5t62x3GPkQw0_ioqpjYxSJJDCq_KPtrnXK28GgbCg68_SMpzXXPDpRD2xr4LN3q1A/s1600/NDVIcolorbar2002226.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;36&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAOBWAn27FaPxfBX-wTBkJNW6ZpjIveuthKmB_DWY-ZVwH_qlFZrSUW1iJJIblXX3b2IRM-XSnLxy5t62x3GPkQw0_ioqpjYxSJJDCq_KPtrnXK28GgbCg68_SMpzXXPDpRD2xr4LN3q1A/s320/NDVIcolorbar2002226.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
However, the negatives are not treated nicely. For the first approximation, I could set x&amp;lt;0 == 0.&lt;br /&gt;
&lt;br /&gt;
2. Found a nice one:&lt;br /&gt;
&lt;a href=&quot;https://publiclab.org/notes/cfastie/08-26-2014/new-ndvi-colormap&quot;&gt;https://publiclab.org/notes/cfastie/08-26-2014/new-ndvi-colormap&lt;/a&gt;&lt;br /&gt;
The colorbar is nice, but, I was not much happy with the squeezed RBG dance!&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi154bOMnsDcrnEjItOGYTA_zXYPRWa1t1GYcT7YAPLQ5ilJCyzpAe6miWIil_2rVd56xnMj4LMPjFkiffn7dYg4yP25SWDsQckKRjJIxzaMkxSpVjVZ9Uuv-YVF9EtausRxYEXQGNkaNhx/s1600/fastie_NDVI.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;197&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi154bOMnsDcrnEjItOGYTA_zXYPRWa1t1GYcT7YAPLQ5ilJCyzpAe6miWIil_2rVd56xnMj4LMPjFkiffn7dYg4yP25SWDsQckKRjJIxzaMkxSpVjVZ9Uuv-YVF9EtausRxYEXQGNkaNhx/s320/fastie_NDVI.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9yyPU3jzV8poZoLMF-dEh8LkKTOz6JZjHR2ggmsv0v3ElHvMw_Fgca-0JIYKlV7XzoM5dmgqCAaIBQUNhrOP2u0AEq4I3WSEXndgHCgvNHUIoroxWd93AVA3XZAOONnn2ZwQZ4-C3sxCC/s1600/NDVIcolorbar2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;36&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9yyPU3jzV8poZoLMF-dEh8LkKTOz6JZjHR2ggmsv0v3ElHvMw_Fgca-0JIYKlV7XzoM5dmgqCAaIBQUNhrOP2u0AEq4I3WSEXndgHCgvNHUIoroxWd93AVA3XZAOONnn2ZwQZ4-C3sxCC/s320/NDVIcolorbar2.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
3. Having seen them, I wanted to create my own.&lt;br /&gt;
I combined the inverted summer with the graded b/w scheme. &amp;nbsp;The idea is to set inverted summer for x &amp;gt; 0 with &amp;nbsp;the gray image for x &amp;lt; 0!&lt;br /&gt;
So, I wrote this small piece!&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
r1 = [0 1];&lt;br /&gt;
g1 = [0 1];&lt;br /&gt;
b1 = &amp;nbsp;[0 1];&lt;br /&gt;
rgb1 = [r1; g1; b1]&#39;;&lt;br /&gt;
rgbt = interp1([1 2],rgb1, linspace(1,2,32 ));&lt;br /&gt;
&lt;br /&gt;
r1 = [ 1 0];&lt;br /&gt;
g1 = [1 0.5];&lt;br /&gt;
b1 = &amp;nbsp;[0.4 0.4];&lt;br /&gt;
rgb2 = [r1; g1; b1]&#39;;&lt;br /&gt;
rgbb= interp1([1 2],rgb2, linspace(1,2,32 ));&lt;br /&gt;
&lt;br /&gt;
newNDVI = [rgbt;rgbb];&lt;br /&gt;
&lt;br /&gt;
figure&lt;br /&gt;
colormap(newNDVI );&lt;br /&gt;
cmap = colormap; % cmap nicely puts colormap into 3 col data&lt;br /&gt;
% colorbar&lt;br /&gt;
caxis([-1 1])&lt;br /&gt;
hc = colorbar(&#39;southoutside&#39;);&lt;br /&gt;
set(hc, &#39;FontSize&#39;, 16)&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;axis off; set(gcf,&#39;Color&#39;,&#39;White&#39;)&lt;/blockquote&gt;
You can set that linspace limit to 128, and make 256x3 colormap, making a smooth colorbar.&lt;br /&gt;
The new NDVI colorbar looks like:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtvEUnE5nVxXtods8vLB707A36xPMz-ehobPdLH2_BP5HWmgxsjAATfqSqpowdQC2eWO_ALNL7tGvQXQNVKmDuMgSR42d2HY4PfdjV50BxeAAjNRMwn8PHwyUhhZK7Sb4Ksh8_wAs-ZpgE/s1600/NDVIcolorbar5.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;36&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtvEUnE5nVxXtods8vLB707A36xPMz-ehobPdLH2_BP5HWmgxsjAATfqSqpowdQC2eWO_ALNL7tGvQXQNVKmDuMgSR42d2HY4PfdjV50BxeAAjNRMwn8PHwyUhhZK7Sb4Ksh8_wAs-ZpgE/s320/NDVIcolorbar5.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
The color scheme looks like:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiFTLRsvxmBcOsILlJkLWZGLrJ-C9pOsRlKDn7dU8FiPp5k_Eiop6lmajiY65LuhbSR87yBd8gmjexxz_e5G1ogie6qqmPodEVr8tJ33hHHgDW_WVo-k8Pu3Kw586lWiE7GMZfnOpQC7Dl/s1600/NDVI_colorcoded.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;265&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiFTLRsvxmBcOsILlJkLWZGLrJ-C9pOsRlKDn7dU8FiPp5k_Eiop6lmajiY65LuhbSR87yBd8gmjexxz_e5G1ogie6qqmPodEVr8tJ33hHHgDW_WVo-k8Pu3Kw586lWiE7GMZfnOpQC7Dl/s400/NDVI_colorcoded.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
For the first half, it goes from dark to bright, and then smoothly to green from yellow at the center!&lt;br /&gt;
&lt;br /&gt;
Try it! and let me know if you like this scheme for NDVI!&lt;br /&gt;
Here is a small preview. I changed the lower rgbb matrix to 224x3 arrays which nicely set yellow limit at ~0.2! (&lt;a href=&quot;http://earthobservatory.nasa.gov/Features/MeasuringVegetation/measuring_vegetation_2.php&quot;&gt;some info on NDVI for the cusious minds: http://earthobservatory.nasa.gov/Features/MeasuringVegetation/measuring_vegetation_2.php&lt;/a&gt;)&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqqlVdky9PPVTAg9xTkDS6LJ8ogo4X5ZRDDIbk1Dfn0zL8739TELid2UwK3tQkfZNmaajRhTy3_GZMaX1PQiog1nHQk3tbSuCSN3Eir5feMKG3BcBOYV3Ix1KC6VlCqbD1RP7AxSmXo15t/s1600/corn_field.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqqlVdky9PPVTAg9xTkDS6LJ8ogo4X5ZRDDIbk1Dfn0zL8739TELid2UwK3tQkfZNmaajRhTy3_GZMaX1PQiog1nHQk3tbSuCSN3Eir5feMKG3BcBOYV3Ix1KC6VlCqbD1RP7AxSmXo15t/s400/corn_field.PNG&quot; width=&quot;255&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-8272829485682002&quot;;
/* 300x250, created 9/11/09 */
google_ad_slot = &quot;2837785210&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usefulcodes.blogspot.com/feeds/4286740590909845660/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5192396795186001384/4286740590909845660' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/4286740590909845660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/4286740590909845660'/><link rel='alternate' type='text/html' href='http://usefulcodes.blogspot.com/2016/05/colormap-for-ndvi.html' title='Colormap for NDVI'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAOBWAn27FaPxfBX-wTBkJNW6ZpjIveuthKmB_DWY-ZVwH_qlFZrSUW1iJJIblXX3b2IRM-XSnLxy5t62x3GPkQw0_ioqpjYxSJJDCq_KPtrnXK28GgbCg68_SMpzXXPDpRD2xr4LN3q1A/s72-c/NDVIcolorbar2002226.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5192396795186001384.post-3200561154032006502</id><published>2016-05-27T15:16:00.000-07:00</published><updated>2016-05-27T15:16:17.253-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="colorbar"/><category scheme="http://www.blogger.com/atom/ns#" term="matlab"/><title type='text'>Forcing Matlab colorbar to display climits</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Matlab sometimes can not register the upper and lower limits of the color bar when the figures are saved (eg with export_fig).&amp;nbsp;&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
I found a way around it:&lt;/div&gt;
&lt;div&gt;
instead of setting caxis limit at the exact values, increase/decrease the upper/lower limit&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
caxis([0.94 0.99] )&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
to &amp;gt;&amp;gt; caxis([0.94 0.99001] )&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
This worked for me!&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usefulcodes.blogspot.com/feeds/3200561154032006502/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5192396795186001384/3200561154032006502' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/3200561154032006502'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/3200561154032006502'/><link rel='alternate' type='text/html' href='http://usefulcodes.blogspot.com/2016/05/forcing-matlab-colorbar-to-display.html' title='Forcing Matlab colorbar to display climits'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5192396795186001384.post-1781928910626521895</id><published>2016-05-26T16:36:00.004-07:00</published><updated>2016-05-26T16:36:48.113-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="map"/><title type='text'>Set Lat Lon Limits at the edge of the map</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
It looks nicer when you have the numbers at the edge.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
setm(gca,&#39;fontsize&#39;, 12,&#39;PLabelLocation&#39;,[ylim(1)+0.001, mean(ylim), ylim(2)],&#39;PLineLocation&#39;,[ylim(1)+0.001, mean(ylim), ylim(2)],...&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &#39;PLabelRound&#39;,-3,&#39;MLabelLocation&#39;,[xlim(1), mean(xlim), xlim(2)],&#39;MLineLocation&#39;,[xlim(1), mean(xlim), xlim(2)], &#39;MLabelRound&#39;,-3, ...&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&#39;Grid&#39;,&#39;on&#39;)&lt;/blockquote&gt;
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-8272829485682002&quot;;
/* 300x250, created 9/11/09 */
google_ad_slot = &quot;2837785210&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usefulcodes.blogspot.com/feeds/1781928910626521895/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5192396795186001384/1781928910626521895' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/1781928910626521895'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/1781928910626521895'/><link rel='alternate' type='text/html' href='http://usefulcodes.blogspot.com/2016/05/set-lat-lon-limits-at-edge-of-map.html' title='Set Lat Lon Limits at the edge of the map'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5192396795186001384.post-5392776287358240246</id><published>2016-05-05T10:53:00.002-07:00</published><updated>2016-05-05T14:32:32.905-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="colorbar"/><category scheme="http://www.blogger.com/atom/ns#" term="colormap"/><category scheme="http://www.blogger.com/atom/ns#" term="matlab"/><title type='text'>Colormap Stark #matlab colorbar</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I wanted to have a colormap which had a great degree of contrast, and was not really a rainbow scheme.&lt;br /&gt;
&lt;br /&gt;
I have tried to solve this issue by poking at different colormaps&lt;br /&gt;
&lt;a href=&quot;http://usefulcodes.blogspot.com/2015/06/colormap-hotjet.html&quot;&gt;http://usefulcodes.blogspot.com/2015/06/colormap-hotjet.html&lt;/a&gt;&lt;br /&gt;
(very close, but keeps the rainbow defect flat intensity for the large part in the middle.)&lt;br /&gt;
&lt;a href=&quot;http://usefulcodes.blogspot.com/2015/06/colormap-goofy-matlab.html&quot;&gt;http://usefulcodes.blogspot.com/2015/06/colormap-goofy-matlab.html&lt;/a&gt;&lt;br /&gt;
(looks green and goofy! Did not like it.)&lt;br /&gt;
&lt;a href=&quot;http://usefulcodes.blogspot.com/2015/06/matlab-colormap-rose.html&quot;&gt;http://usefulcodes.blogspot.com/2015/06/matlab-colormap-rose.html&lt;/a&gt;&lt;br /&gt;
(has nice monotonic intensity gradient, but not that beautiful on maps.)&lt;br /&gt;
See the examples:&amp;nbsp;&lt;a href=&quot;http://usefulcodes.blogspot.com/search/label/colormap&quot;&gt;http://usefulcodes.blogspot.com/search/label/colormap&lt;/a&gt;&lt;br /&gt;
I present you a new one! Colormap &quot;&lt;b&gt;stark&lt;/b&gt;&quot;.&lt;br /&gt;
This does have the defect of not linearly increasing the intensity, but does not stay flat in the middle. It has two saddles, allowing the left/right contrast. I like it so far.&lt;br /&gt;
Well, it is inspired from the LST image from MODIS&lt;br /&gt;
&lt;a href=&quot;http://neo.sci.gsfc.nasa.gov/view.php?datasetId=MOD11C1_M_LSTDA&quot;&gt;http://neo.sci.gsfc.nasa.gov/view.php?datasetId=MOD11C1_M_LSTDA&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse: collapse; width: 192px;&quot;&gt;
 &lt;colgroup&gt;&lt;col span=&quot;3&quot; style=&quot;width: 48pt;&quot; width=&quot;64&quot;&gt;&lt;/col&gt;
 &lt;/colgroup&gt;&lt;tbody&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #D7E082; height: 15.0pt; mso-pattern: black none; width: 48pt;&quot; width=&quot;64&quot;&gt;175&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #63BE7B; mso-pattern: black none; width: 48pt;&quot; width=&quot;64&quot;&gt;256&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #65BF7C; mso-pattern: black none; width: 48pt;&quot; width=&quot;64&quot;&gt;255&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #FCBE7B; height: 15.0pt; mso-pattern: black none;&quot;&gt;100&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #6EC17C; mso-pattern: black none;&quot;&gt;249&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #65BF7C; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #FA8F72; height: 15.0pt; mso-pattern: black none;&quot;&gt;50&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #93CC7E; mso-pattern: black none;&quot;&gt;223&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #68C07C; mso-pattern: black none;&quot;&gt;253&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #F8696B; height: 15.0pt; mso-pattern: black none;&quot;&gt;10&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #C1D981; mso-pattern: black none;&quot;&gt;191&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #69C07C; mso-pattern: black none;&quot;&gt;252&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #F8696B; height: 15.0pt; mso-pattern: black none;&quot;&gt;9&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #FEE883; mso-pattern: black none;&quot;&gt;144&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #69C07C; mso-pattern: black none;&quot;&gt;252&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #F86B6B; height: 15.0pt; mso-pattern: black none;&quot;&gt;12&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #FCC47C; mso-pattern: black none;&quot;&gt;106&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #65BF7C; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #F86A6B; height: 15.0pt; mso-pattern: black none;&quot;&gt;11&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #FBAA77; mso-pattern: black none;&quot;&gt;79&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #66BF7C; mso-pattern: black none;&quot;&gt;254&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #F8796E; height: 15.0pt; mso-pattern: black none;&quot;&gt;26&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #FA9573; mso-pattern: black none;&quot;&gt;56&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #66BF7C; mso-pattern: black none;&quot;&gt;254&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #F9806F; height: 15.0pt; mso-pattern: black none;&quot;&gt;34&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F98470; mso-pattern: black none;&quot;&gt;38&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #65BF7C; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #FA8F72; height: 15.0pt; mso-pattern: black none;&quot;&gt;50&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F9806F; mso-pattern: black none;&quot;&gt;34&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #65BF7C; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #FBAA77; height: 15.0pt; mso-pattern: black none;&quot;&gt;79&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F97F6F; mso-pattern: black none;&quot;&gt;33&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #65BF7C; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #FBB078; height: 15.0pt; mso-pattern: black none;&quot;&gt;85&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F97F6F; mso-pattern: black none;&quot;&gt;33&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #65BF7C; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #FCBF7B; height: 15.0pt; mso-pattern: black none;&quot;&gt;101&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F9806F; mso-pattern: black none;&quot;&gt;34&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #65BF7C; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #FEDC81; height: 15.0pt; mso-pattern: black none;&quot;&gt;132&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F9816F; mso-pattern: black none;&quot;&gt;35&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #65BF7C; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #FBEA84; height: 15.0pt; mso-pattern: black none;&quot;&gt;150&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F9826F; mso-pattern: black none;&quot;&gt;36&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #65BF7C; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #D5DF82; height: 15.0pt; mso-pattern: black none;&quot;&gt;177&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F98570; mso-pattern: black none;&quot;&gt;39&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #65BF7C; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #9BCF7F; height: 15.0pt; mso-pattern: black none;&quot;&gt;217&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F9826F; mso-pattern: black none;&quot;&gt;36&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #65BF7C; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #76C47D; height: 15.0pt; mso-pattern: black none;&quot;&gt;243&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F9816F; mso-pattern: black none;&quot;&gt;35&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #65BF7C; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #65BF7C; height: 15.0pt; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F9816F; mso-pattern: black none;&quot;&gt;35&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #A1D07F; mso-pattern: black none;&quot;&gt;213&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #65BF7C; height: 15.0pt; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F9806F; mso-pattern: black none;&quot;&gt;34&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #D7E082; mso-pattern: black none;&quot;&gt;175&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #65BF7C; height: 15.0pt; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F97C6E; mso-pattern: black none;&quot;&gt;30&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #FEE783; mso-pattern: black none;&quot;&gt;143&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #65BF7C; height: 15.0pt; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F9826F; mso-pattern: black none;&quot;&gt;36&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #FDC87D; mso-pattern: black none;&quot;&gt;110&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #65BF7C; height: 15.0pt; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F9806F; mso-pattern: black none;&quot;&gt;34&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #FCB379; mso-pattern: black none;&quot;&gt;88&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #65BF7C; height: 15.0pt; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F97F6F; mso-pattern: black none;&quot;&gt;33&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #FA9D75; mso-pattern: black none;&quot;&gt;65&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #65BF7C; height: 15.0pt; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F98971; mso-pattern: black none;&quot;&gt;44&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F9816F; mso-pattern: black none;&quot;&gt;35&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #65BF7C; height: 15.0pt; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #FBA476; mso-pattern: black none;&quot;&gt;72&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F9816F; mso-pattern: black none;&quot;&gt;35&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #66BF7C; height: 15.0pt; mso-pattern: black none;&quot;&gt;254&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #FCBA7A; mso-pattern: black none;&quot;&gt;95&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F98570; mso-pattern: black none;&quot;&gt;39&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #65BF7C; height: 15.0pt; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #FDCD7E; mso-pattern: black none;&quot;&gt;116&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F98A71; mso-pattern: black none;&quot;&gt;45&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #66BF7C; height: 15.0pt; mso-pattern: black none;&quot;&gt;254&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #FEE282; mso-pattern: black none;&quot;&gt;138&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F98770; mso-pattern: black none;&quot;&gt;41&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #66BF7C; height: 15.0pt; mso-pattern: black none;&quot;&gt;254&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #EDE683; mso-pattern: black none;&quot;&gt;160&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F98B71; mso-pattern: black none;&quot;&gt;46&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #65BF7C; height: 15.0pt; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #CCDD82; mso-pattern: black none;&quot;&gt;183&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F98A71; mso-pattern: black none;&quot;&gt;45&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #65BF7C; height: 15.0pt; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #B5D680; mso-pattern: black none;&quot;&gt;199&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F98B71; mso-pattern: black none;&quot;&gt;46&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #65BF7C; height: 15.0pt; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #A5D17F; mso-pattern: black none;&quot;&gt;210&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F98C71; mso-pattern: black none;&quot;&gt;47&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #68C07C; height: 15.0pt; mso-pattern: black none;&quot;&gt;253&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #90CB7E; mso-pattern: black none;&quot;&gt;225&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F98C71; mso-pattern: black none;&quot;&gt;47&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #66BF7C; height: 15.0pt; mso-pattern: black none;&quot;&gt;254&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #89C97E; mso-pattern: black none;&quot;&gt;230&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #FBA776; mso-pattern: black none;&quot;&gt;75&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #63BE7B; height: 15.0pt; mso-pattern: black none;&quot;&gt;256&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #63BE7B; mso-pattern: black none;&quot;&gt;256&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #FDC87D; mso-pattern: black none;&quot;&gt;110&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;R&lt;/td&gt;
  &lt;td&gt;G&lt;/td&gt;
  &lt;td&gt;B&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0Hd1cF3mzuIP2Uzb2PxQ7rX9QnLRDN8hl_4mqWrz-9lQBH95Cya1qgPJTsDlgolLxruudVglgPlSJVFZ_yPL2JLint-xra3BznYwZzTBkh0KmrTyKoOboekK_jtyQvjQSYezNshUOMIXv/s1600/RGB-intensity.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;254&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0Hd1cF3mzuIP2Uzb2PxQ7rX9QnLRDN8hl_4mqWrz-9lQBH95Cya1qgPJTsDlgolLxruudVglgPlSJVFZ_yPL2JLint-xra3BznYwZzTBkh0KmrTyKoOboekK_jtyQvjQSYezNshUOMIXv/s320/RGB-intensity.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtK-gGLOyna-DosdS-wiEordlnEkr9HRIskorJZuKAHxD82_gX7Pftma1tAhNuIp7mNM_phcTU3GqQkNV_ddv3FmxnRxGn6FhTpvLyabdNNmr55tr_vOoVaEpItlnxL745Wwhz5S9tPQEE/s1600/RGB-colormap.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;239&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtK-gGLOyna-DosdS-wiEordlnEkr9HRIskorJZuKAHxD82_gX7Pftma1tAhNuIp7mNM_phcTU3GqQkNV_ddv3FmxnRxGn6FhTpvLyabdNNmr55tr_vOoVaEpItlnxL745Wwhz5S9tPQEE/s320/RGB-colormap.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
newN = 1:64;&lt;br /&gt;
&lt;br /&gt;
isn = floor(linspace(1,64,36));&lt;br /&gt;
%RGB = [R G B];&lt;br /&gt;
R1 = RGB(:,1);&lt;br /&gt;
G1 = RGB(:,2);&lt;br /&gt;
B1 = RGB(:,3);&lt;br /&gt;
&lt;br /&gt;
Rn = runmean(interp1(isn, R1, newN),2);&lt;br /&gt;
Gn = runmean(interp1(isn, G1, newN),2);&lt;br /&gt;
Bn = runmean(interp1(isn, B1, newN),2);&lt;br /&gt;
&lt;br /&gt;
newC= &amp;nbsp;[Rn&#39;, Gn&#39;, Bn&#39;]./256;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
close all&lt;br /&gt;
figure ;&lt;br /&gt;
plot(newN, Rn, &#39;r-&#39;)&lt;br /&gt;
hold on&lt;br /&gt;
plot(newN, Gn, &#39;G-&#39;)&lt;br /&gt;
plot(newN, Bn, &#39;b-&#39;)&lt;br /&gt;
colormap(newC);&lt;br /&gt;
colorbar(&#39;southoutside&#39;)&lt;br /&gt;
ylim([0 260])&lt;br /&gt;
xlim([1 64])&lt;br /&gt;
legend(&#39;R&#39;, &#39;G&#39;, &#39;B&#39;,&#39;Location&#39;,&#39;southoutside&#39;,&#39;Orientation&#39;,&#39;horizontal&#39;)&lt;br /&gt;
xlabel(&#39;C-index&#39;)&lt;br /&gt;
ylabel(&#39;R,G,B&#39;)&lt;br /&gt;
export_fig([ &#39;RGB-colormap&#39; &amp;nbsp; ],&#39;-jpeg&#39;,&#39;-r250&#39;)&lt;br /&gt;
&lt;br /&gt;
figure;&lt;br /&gt;
plot(newN, sum(newC,2)./3, &#39;r-&#39;)&lt;br /&gt;
ylabel(&#39;Intensity&#39;)&lt;br /&gt;
xlabel(&#39;C-index&#39;)&lt;br /&gt;
xlim([1 64])&lt;br /&gt;
export_fig([ &#39;RGB-intensity&#39; ],&#39;-jpeg&#39;,&#39;-r250&#39;)&lt;/blockquote&gt;
&lt;br /&gt;
Here is an alternate&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse: collapse; width: 192px;&quot;&gt;
 &lt;colgroup&gt;&lt;col span=&quot;3&quot; style=&quot;width: 48pt;&quot; width=&quot;64&quot;&gt;&lt;/col&gt;
 &lt;/colgroup&gt;&lt;tbody&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; class=&quot;xl65&quot; height=&quot;20&quot; style=&quot;background: rgb(215, 224, 130); font-family: Calibri; font-size: 11pt; height: 15pt; width: 48pt;&quot; width=&quot;64&quot;&gt;175&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #63BE7B; mso-pattern: black none; width: 48pt;&quot; width=&quot;64&quot;&gt;256&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #65BF7C; mso-pattern: black none; width: 48pt;&quot; width=&quot;64&quot;&gt;255&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #FCBE7B; height: 15.0pt; mso-pattern: black none;&quot;&gt;100&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #6EC17C; mso-pattern: black none;&quot;&gt;249&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #65BF7C; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #FA8F72; height: 15.0pt; mso-pattern: black none;&quot;&gt;50&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #93CC7E; mso-pattern: black none;&quot;&gt;223&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #68C07C; mso-pattern: black none;&quot;&gt;253&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #F8696B; height: 15.0pt; mso-pattern: black none;&quot;&gt;10&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #C1D981; mso-pattern: black none;&quot;&gt;191&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #69C07C; mso-pattern: black none;&quot;&gt;252&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #F8696B; height: 15.0pt; mso-pattern: black none;&quot;&gt;9&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #FEE883; mso-pattern: black none;&quot;&gt;144&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #69C07C; mso-pattern: black none;&quot;&gt;252&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #F86B6B; height: 15.0pt; mso-pattern: black none;&quot;&gt;12&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #FCC47C; mso-pattern: black none;&quot;&gt;106&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #65BF7C; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #F86A6B; height: 15.0pt; mso-pattern: black none;&quot;&gt;11&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #FBAA77; mso-pattern: black none;&quot;&gt;79&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #66BF7C; mso-pattern: black none;&quot;&gt;254&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #F8796E; height: 15.0pt; mso-pattern: black none;&quot;&gt;26&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #FA9573; mso-pattern: black none;&quot;&gt;56&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #66BF7C; mso-pattern: black none;&quot;&gt;254&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #F9806F; height: 15.0pt; mso-pattern: black none;&quot;&gt;34&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F98470; mso-pattern: black none;&quot;&gt;38&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #65BF7C; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #FA8F72; height: 15.0pt; mso-pattern: black none;&quot;&gt;50&lt;/td&gt;
  &lt;td align=&quot;right&quot; class=&quot;xl67&quot; style=&quot;background: rgb(248, 120, 109); color: #9c6500; font-family: Calibri; font-size: 11pt;&quot;&gt;25&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #65BF7C; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #FBAA77; height: 15.0pt; mso-pattern: black none;&quot;&gt;79&lt;/td&gt;
  &lt;td align=&quot;right&quot; class=&quot;xl67&quot; style=&quot;background: rgb(248, 110, 108); color: #9c6500; font-family: Calibri; font-size: 11pt;&quot;&gt;15&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #65BF7C; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #FBB078; height: 15.0pt; mso-pattern: black none;&quot;&gt;85&lt;/td&gt;
  &lt;td align=&quot;right&quot; class=&quot;xl67&quot; style=&quot;background: rgb(248, 110, 108); color: #9c6500; font-family: Calibri; font-size: 11pt;&quot;&gt;15&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #65BF7C; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #FCBF7B; height: 15.0pt; mso-pattern: black none;&quot;&gt;101&lt;/td&gt;
  &lt;td align=&quot;right&quot; class=&quot;xl67&quot; style=&quot;background: rgb(249, 124, 110); color: #9c6500; font-family: Calibri; font-size: 11pt;&quot;&gt;30&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #65BF7C; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #FEDC81; height: 15.0pt; mso-pattern: black none;&quot;&gt;132&lt;/td&gt;
  &lt;td align=&quot;right&quot; class=&quot;xl67&quot; style=&quot;background: rgb(250, 143, 114); color: #9c6500; font-family: Calibri; font-size: 11pt;&quot;&gt;50&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #65BF7C; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #FBEA84; height: 15.0pt; mso-pattern: black none;&quot;&gt;150&lt;/td&gt;
  &lt;td align=&quot;right&quot; class=&quot;xl67&quot; style=&quot;background: rgb(251, 162, 118); color: #9c6500; font-family: Calibri; font-size: 11pt;&quot;&gt;70&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #65BF7C; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #D5DF82; height: 15.0pt; mso-pattern: black none;&quot;&gt;177&lt;/td&gt;
  &lt;td align=&quot;right&quot; class=&quot;xl67&quot; style=&quot;background: rgb(251, 171, 119); color: #9c6500; font-family: Calibri; font-size: 11pt;&quot;&gt;80&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #65BF7C; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #9BCF7F; height: 15.0pt; mso-pattern: black none;&quot;&gt;217&lt;/td&gt;
  &lt;td align=&quot;right&quot; class=&quot;xl67&quot; style=&quot;background: rgb(252, 190, 123); color: #9c6500; font-family: Calibri; font-size: 11pt;&quot;&gt;100&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #65BF7C; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #76C47D; height: 15.0pt; mso-pattern: black none;&quot;&gt;243&lt;/td&gt;
  &lt;td align=&quot;right&quot; class=&quot;xl66&quot; style=&quot;background: rgb(252, 190, 123); color: #006100; font-family: Calibri; font-size: 11pt;&quot;&gt;100&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #65BF7C; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #65BF7C; height: 15.0pt; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
  &lt;td align=&quot;right&quot; class=&quot;xl66&quot; style=&quot;background: rgb(251, 171, 119); color: #006100; font-family: Calibri; font-size: 11pt;&quot;&gt;80&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #A1D07F; mso-pattern: black none;&quot;&gt;213&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #65BF7C; height: 15.0pt; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
  &lt;td align=&quot;right&quot; class=&quot;xl66&quot; style=&quot;background: rgb(251, 162, 118); color: #006100; font-family: Calibri; font-size: 11pt;&quot;&gt;70&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #D7E082; mso-pattern: black none;&quot;&gt;175&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #65BF7C; height: 15.0pt; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
  &lt;td align=&quot;right&quot; class=&quot;xl66&quot; style=&quot;background: rgb(250, 143, 114); color: #006100; font-family: Calibri; font-size: 11pt;&quot;&gt;50&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #FEE783; mso-pattern: black none;&quot;&gt;143&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #65BF7C; height: 15.0pt; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
  &lt;td align=&quot;right&quot; class=&quot;xl66&quot; style=&quot;background: rgb(249, 124, 110); color: #006100; font-family: Calibri; font-size: 11pt;&quot;&gt;30&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #FDC87D; mso-pattern: black none;&quot;&gt;110&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #65BF7C; height: 15.0pt; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
  &lt;td align=&quot;right&quot; class=&quot;xl66&quot; style=&quot;background: rgb(248, 110, 108); color: #006100; font-family: Calibri; font-size: 11pt;&quot;&gt;15&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #FCB379; mso-pattern: black none;&quot;&gt;88&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #65BF7C; height: 15.0pt; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
  &lt;td align=&quot;right&quot; class=&quot;xl66&quot; style=&quot;background: rgb(248, 120, 109); color: #006100; font-family: Calibri; font-size: 11pt;&quot;&gt;25&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #FA9D75; mso-pattern: black none;&quot;&gt;65&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #65BF7C; height: 15.0pt; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
  &lt;td align=&quot;right&quot; class=&quot;xl66&quot; style=&quot;background: rgb(249, 137, 113); color: #006100; font-family: Calibri; font-size: 11pt;&quot;&gt;44&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F9816F; mso-pattern: black none;&quot;&gt;35&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #65BF7C; height: 15.0pt; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #FBA476; mso-pattern: black none;&quot;&gt;72&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F9816F; mso-pattern: black none;&quot;&gt;35&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #66BF7C; height: 15.0pt; mso-pattern: black none;&quot;&gt;254&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #FCBA7A; mso-pattern: black none;&quot;&gt;95&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F98570; mso-pattern: black none;&quot;&gt;39&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #65BF7C; height: 15.0pt; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #FDCD7E; mso-pattern: black none;&quot;&gt;116&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F98A71; mso-pattern: black none;&quot;&gt;45&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #66BF7C; height: 15.0pt; mso-pattern: black none;&quot;&gt;254&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #FEE282; mso-pattern: black none;&quot;&gt;138&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F98770; mso-pattern: black none;&quot;&gt;41&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #66BF7C; height: 15.0pt; mso-pattern: black none;&quot;&gt;254&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #EDE683; mso-pattern: black none;&quot;&gt;160&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F98B71; mso-pattern: black none;&quot;&gt;46&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #65BF7C; height: 15.0pt; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #CCDD82; mso-pattern: black none;&quot;&gt;183&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F98A71; mso-pattern: black none;&quot;&gt;45&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #65BF7C; height: 15.0pt; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #B5D680; mso-pattern: black none;&quot;&gt;199&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F98B71; mso-pattern: black none;&quot;&gt;46&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #65BF7C; height: 15.0pt; mso-pattern: black none;&quot;&gt;255&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #90CB7E; mso-pattern: black none;&quot;&gt;225&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F98C71; mso-pattern: black none;&quot;&gt;47&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #68C07C; height: 15.0pt; mso-pattern: black none;&quot;&gt;253&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #7AC57D; mso-pattern: black none;&quot;&gt;240&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #F98C71; mso-pattern: black none;&quot;&gt;47&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #66BF7C; height: 15.0pt; mso-pattern: black none;&quot;&gt;254&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #6CC17C; mso-pattern: black none;&quot;&gt;250&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #FBA776; mso-pattern: black none;&quot;&gt;75&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td align=&quot;right&quot; height=&quot;20&quot; style=&quot;background: #63BE7B; height: 15.0pt; mso-pattern: black none;&quot;&gt;256&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #63BE7B; mso-pattern: black none;&quot;&gt;256&lt;/td&gt;
  &lt;td align=&quot;right&quot; style=&quot;background: #FEDA80; mso-pattern: black none;&quot;&gt;129&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td height=&quot;20&quot; style=&quot;height: 15.0pt;&quot;&gt;R&lt;/td&gt;
  &lt;td&gt;G&lt;/td&gt;
  &lt;td&gt;B&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;It adds whiteness in the middle, creating W shaped swing to the green pallets.&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9b5262oUomCsMFVVBFJ7uPSCrKdzxglq_RNx0yDCqY1Q09Ls8PIFZxmxQuy8Ir77j75x0DeYcpCS3S4oNmo8sCbsw9uDdrLQEKtrcrSTcJT7WxtWJFlvAU56OYq7AjPO1eUfUkhYpPKBo/s1600/RGB-colormap-stark2.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;239&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9b5262oUomCsMFVVBFJ7uPSCrKdzxglq_RNx0yDCqY1Q09Ls8PIFZxmxQuy8Ir77j75x0DeYcpCS3S4oNmo8sCbsw9uDdrLQEKtrcrSTcJT7WxtWJFlvAU56OYq7AjPO1eUfUkhYpPKBo/s320/RGB-colormap-stark2.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-8272829485682002&quot;;
/* 300x250, created 9/11/09 */
google_ad_slot = &quot;2837785210&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usefulcodes.blogspot.com/feeds/5392776287358240246/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5192396795186001384/5392776287358240246' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/5392776287358240246'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/5392776287358240246'/><link rel='alternate' type='text/html' href='http://usefulcodes.blogspot.com/2016/05/colormap-stark-matlab-colorbar.html' title='Colormap Stark #matlab colorbar'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0Hd1cF3mzuIP2Uzb2PxQ7rX9QnLRDN8hl_4mqWrz-9lQBH95Cya1qgPJTsDlgolLxruudVglgPlSJVFZ_yPL2JLint-xra3BznYwZzTBkh0KmrTyKoOboekK_jtyQvjQSYezNshUOMIXv/s72-c/RGB-intensity.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5192396795186001384.post-6488353650224488773</id><published>2016-04-21T16:16:00.002-07:00</published><updated>2016-04-21T16:16:24.018-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="map"/><category scheme="http://www.blogger.com/atom/ns#" term="matlab"/><title type='text'>M_Map Examples for matlab mapping</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
There are so many projections to choose from:&lt;br /&gt;
% &amp;nbsp; &amp;nbsp; &amp;nbsp;Stereographic&lt;br /&gt;
% &amp;nbsp; &amp;nbsp; &amp;nbsp;Orthographic&lt;br /&gt;
% &amp;nbsp; &amp;nbsp; &amp;nbsp;Azimuthal Equal-area&lt;br /&gt;
% &amp;nbsp; &amp;nbsp; &amp;nbsp;Azimuthal Equidistant&lt;br /&gt;
% &amp;nbsp; &amp;nbsp; &amp;nbsp;Gnomonic&lt;br /&gt;
% &amp;nbsp; &amp;nbsp; &amp;nbsp;Satellite&lt;br /&gt;
% &amp;nbsp; &amp;nbsp; &amp;nbsp;Albers Equal-Area Conic&lt;br /&gt;
% &amp;nbsp; &amp;nbsp; &amp;nbsp;Lambert Conformal Conic&lt;br /&gt;
% &amp;nbsp; &amp;nbsp; &amp;nbsp;Mercator&lt;br /&gt;
% &amp;nbsp; &amp;nbsp; &amp;nbsp;Miller Cylindrical&lt;br /&gt;
% &amp;nbsp; &amp;nbsp; &amp;nbsp;Equidistant Cylindrical&lt;br /&gt;
% &amp;nbsp; &amp;nbsp; &amp;nbsp;Oblique Mercator&lt;br /&gt;
% &amp;nbsp; &amp;nbsp; &amp;nbsp;Transverse Mercator&lt;br /&gt;
% &amp;nbsp; &amp;nbsp; &amp;nbsp;Sinusoidal&lt;br /&gt;
% &amp;nbsp; &amp;nbsp; &amp;nbsp;Gall-Peters&lt;br /&gt;
% &amp;nbsp; &amp;nbsp; &amp;nbsp;Hammer-Aitoff&lt;br /&gt;
% &amp;nbsp; &amp;nbsp; &amp;nbsp;Mollweide&lt;br /&gt;
% &amp;nbsp; &amp;nbsp; &amp;nbsp;Robinson&lt;br /&gt;
% &amp;nbsp; &amp;nbsp; &amp;nbsp;UTM&lt;br /&gt;
Which one to choose?&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Let me quote: &quot;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;p2.5&quot;&gt;Well, it depends really on how large an area you are mapping. Usually, maps of the whole world are Mercator, although often the Miller Cylindrical projection looks better because it doesn&#39;t emphasize the polar areas as much. Another choice is the Hammer-Aitoff or Mollweide (which has meridians curving together near the poles). Both are equal-area. It&#39;s probably not a good idea to use these projections for maps that don&#39;t have the equator somewhere near the middle. The Robinson projection is not equal-area or conformal, but was the choice of National Geographic (for a while, anyway), and also appears in the IPCC reports.&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;p2.5&quot;&gt;If you are plotting something with a large north/south extent, but not very wide (say, North and South America, or the North and South Atlantic), then the Sinusoidal or Mollweide projections will look pretty good. Another choice is the Transverse Mercator, although that is usually used only for very large-scale maps.&lt;br /&gt; &lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;p2.5&quot;&gt; For smaller areas within one hemisphere or other (say, Australia, the United States, the Mediterranean, the North Atlantic) you might pick a conic projection. The differences between the two available conic projections are subtle, and if you don&#39;t know much about projections it probably won&#39;t make much difference which one you use.&lt;br /&gt; &lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;p2.5&quot;&gt;If you get smaller than that, it doesn&#39;t matter a whole lot which projection you use. One projection I find useful in many cases is the Oblique Mercator, since you can align it along a long (but narrow) coastal area. If map limits along lines of longitude/latitude are OK, use a Transverse Mercator or Conic Projection. The UTM projection is also useful.&lt;br /&gt; &lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;p2.5&quot;&gt;Polar areas are traditionally mapped using a Stereographic projection, since for some reason it looks nice to have a &quot;bullseye&quot; pattern of latitude lines.&lt;/a&gt;&quot;&lt;/blockquote&gt;
https://www.eoas.ubc.ca/~rich/private/mapug.html#p2.5&lt;br /&gt;
&lt;br /&gt;
Here are some of my favs:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;br /&gt;
latlim=[ (min(min(Lat11))), (max(max(Lat11)))];&lt;br /&gt;
lonlim=[ (min(min(Lon11))), (max(max(Lon11)))];figure(1)&lt;br /&gt;
% m_proj(&#39;UTM&#39;,&#39;long&#39;,lonlim,&#39;lat&#39;,latlim);&lt;br /&gt;
% m_proj(&#39;Miller Cylindrical&#39;,&#39;long&#39;,lonlim,&#39;lat&#39;,latlim);&lt;br /&gt;
% m_proj(&#39;Albers Equal-Area Conic&#39;,&#39;long&#39;,lonlim,&#39;lat&#39;,latlim);&lt;br /&gt;
m_proj(&#39;Robinson&#39;,&#39;long&#39;,lonlim,&#39;lat&#39;,latlim);&lt;br /&gt;
% m_proj(&#39;Sinusoidal&#39;,&#39;long&#39;,lonlim,&#39;lat&#39;,latlim);&lt;br /&gt;
&lt;br /&gt;
m_pcolor(Lon11,Lat11,LST11);&lt;br /&gt;
set(gca,&#39;Fontsize&#39;,24)&lt;br /&gt;
shading interp&lt;br /&gt;
m_gshhs_i(&#39;color&#39;,&#39;k&#39;);&lt;br /&gt;
m_grid(&#39;linestyle&#39;,&#39;-.&#39;,&#39;box&#39;,&#39;fancy&#39;,&#39;tickdir&#39;,&#39;in&#39; );&lt;br /&gt;
caxis([310 335])&lt;br /&gt;
colorbar&lt;br /&gt;
set(gcf,&#39;Color&#39;,&#39;White&#39;)&lt;br /&gt;
title(&#39;Robinson&#39;)&lt;br /&gt;
set(gca,&#39;Fontsize&#39;,24)&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/blockquote&gt;
Some examples of the projected MODIS LST data&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFNOZ5XKm1lqVfsA_-Qtwk6wZA8ZGkn66BF5s2IKCRy3K_KBdObCy6-F0lTQ2opiHR4jz4DLIPcTTfvij7Dw_982bXTPkOn5qG3XDPOk9ngVtBvjNqSxmxUXlhWbz9b6dpbBlJWhXNH1Au/s1600/Robinson.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;244&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFNOZ5XKm1lqVfsA_-Qtwk6wZA8ZGkn66BF5s2IKCRy3K_KBdObCy6-F0lTQ2opiHR4jz4DLIPcTTfvij7Dw_982bXTPkOn5qG3XDPOk9ngVtBvjNqSxmxUXlhWbz9b6dpbBlJWhXNH1Au/s320/Robinson.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJbLnt-IhEN8w5HGwEZkWLjhaX0DgIi5zEK9F_Egw2MOxxmnF066L5s0t2xpi2xyFw99QbQjjMN1j4JWHu7LM4YA5aRIrdiWQgBp74ZpcGcoDKvl6MmrPoLBkVay8yi7N__M4xHT8TTQnf/s1600/Miller_Cylindrical.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;238&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJbLnt-IhEN8w5HGwEZkWLjhaX0DgIi5zEK9F_Egw2MOxxmnF066L5s0t2xpi2xyFw99QbQjjMN1j4JWHu7LM4YA5aRIrdiWQgBp74ZpcGcoDKvl6MmrPoLBkVay8yi7N__M4xHT8TTQnf/s320/Miller_Cylindrical.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZlVlME-Di1wHkcbPsByrC1YZdHI3Z1EKX0XEBMvKwL8obHP40Ah_o-RHgk8ZFWQ5_eoecq3dEh2zJ4GDQXJ48jpCZUySoiZw2t-jaqjh6sxaWhVPuzePMqhFPo5ckZ0K8d97MNt-P9QFJ/s1600/Mercator.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;253&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZlVlME-Di1wHkcbPsByrC1YZdHI3Z1EKX0XEBMvKwL8obHP40Ah_o-RHgk8ZFWQ5_eoecq3dEh2zJ4GDQXJ48jpCZUySoiZw2t-jaqjh6sxaWhVPuzePMqhFPo5ckZ0K8d97MNt-P9QFJ/s320/Mercator.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4QJfPqH16uzQeAhyiTQFPQyUUJQgz_tuxI5zCCW3MWY-Im5h1pKsmbe1YXxLPT_ScB_1E6C5EK8T4SNySHQ2M9sCMPCDuh1VE21zz5hS3ABV63LVv5tA9YcHBplPzKzB3Nb-Pc3ly6DlY/s1600/Gall-Peters.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4QJfPqH16uzQeAhyiTQFPQyUUJQgz_tuxI5zCCW3MWY-Im5h1pKsmbe1YXxLPT_ScB_1E6C5EK8T4SNySHQ2M9sCMPCDuh1VE21zz5hS3ABV63LVv5tA9YcHBplPzKzB3Nb-Pc3ly6DlY/s320/Gall-Peters.jpg&quot; width=&quot;314&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNbBTZ7w9qq2e-j3J57fxnA7w5MRsEYvCq1cblVcY-QJzTjXTumxKCHjGE71hfRwYUb7kD10UZUKZnQlIxOWgIJkyDUdefSifteILeJFnHBO0BFBK_1VZel97-1_7jUwjtuXur4ba_Q1wk/s1600/Hammer-Aitoff.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;221&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNbBTZ7w9qq2e-j3J57fxnA7w5MRsEYvCq1cblVcY-QJzTjXTumxKCHjGE71hfRwYUb7kD10UZUKZnQlIxOWgIJkyDUdefSifteILeJFnHBO0BFBK_1VZel97-1_7jUwjtuXur4ba_Q1wk/s320/Hammer-Aitoff.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Native: examples&lt;br /&gt;
https://www.eoas.ubc.ca/~rich/map.html&lt;br /&gt;
&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-8272829485682002&quot;;
/* 300x250, created 9/11/09 */
google_ad_slot = &quot;2837785210&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usefulcodes.blogspot.com/feeds/6488353650224488773/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5192396795186001384/6488353650224488773' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/6488353650224488773'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/6488353650224488773'/><link rel='alternate' type='text/html' href='http://usefulcodes.blogspot.com/2016/04/mmap-examples-for-matlab-mapping.html' title='M_Map Examples for matlab mapping'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFNOZ5XKm1lqVfsA_-Qtwk6wZA8ZGkn66BF5s2IKCRy3K_KBdObCy6-F0lTQ2opiHR4jz4DLIPcTTfvij7Dw_982bXTPkOn5qG3XDPOk9ngVtBvjNqSxmxUXlhWbz9b6dpbBlJWhXNH1Au/s72-c/Robinson.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5192396795186001384.post-7066207033920562170</id><published>2016-04-20T14:01:00.000-07:00</published><updated>2016-04-20T14:01:10.188-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="figure"/><category scheme="http://www.blogger.com/atom/ns#" term="matlab"/><title type='text'>Matlab Plot Latitude and Longitude with degree symbol on the axis label</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Not the complete code, but it does the job.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
close all&lt;br /&gt;
load coast&lt;br /&gt;
cfigure( 40, 20);&lt;br /&gt;
plot(long, lat, &#39;k&#39;)&lt;br /&gt;
grid on&lt;br /&gt;
% s = sprintf(&#39;45%c&#39;, char(176));&lt;br /&gt;
&lt;br /&gt;
set(gca,&#39;XLim&#39;,[-180 180])&lt;br /&gt;
set(gca,&#39;YLim&#39;,[-180/2 180/2])&lt;br /&gt;
set(gca,&#39;XTick&#39;,[-180:40: 180])&lt;br /&gt;
set(gca,&#39;YTick&#39;,[-90:30: 90])&lt;br /&gt;
&lt;br /&gt;
xt=get(gca,&#39;xtick&#39;);&lt;br /&gt;
for k=1:numel(xt);&lt;br /&gt;
xt1{k}=sprintf(&#39;%d°&#39;,xt(k));&lt;br /&gt;
end&lt;br /&gt;
set(gca,&#39;xticklabel&#39;,xt1);&lt;br /&gt;
&lt;br /&gt;
xt=get(gca,&#39;ytick&#39;);&lt;br /&gt;
for k=1:numel(xt);&lt;br /&gt;
xt1{k}=sprintf(&#39;%d°&#39;,xt(k));&lt;br /&gt;
end&lt;br /&gt;
set(gca,&#39;yticklabel&#39;,xt1);&lt;br /&gt;
&lt;br /&gt;
set(gca,&#39;Fontsize&#39;,26)&lt;br /&gt;
&lt;br /&gt;
annotation(&#39;textbox&#39;, [.15 &amp;nbsp;.232 0.16 &amp;nbsp;0.1 ],&#39;EdgeColor&#39;,[ 0 0 0] )&lt;br /&gt;
&lt;br /&gt;
% xlim([-180 180])&lt;br /&gt;
% ylim([-90 90])&lt;br /&gt;
hold on&lt;br /&gt;
plot(longitude(dayyes==0), latitude(dayyes==0), &#39;o&#39;, &#39;MarkerEdgeColor&#39;,&#39;b&#39;,&#39;MarkerSize&#39;,5);&lt;br /&gt;
plot(longitude(dayyes==1),latitude(dayyes==1), &#39;*&#39;, &#39;MarkerEdgeColor&#39;,&#39;r&#39;,&#39;MarkerSize&#39;,6);&lt;br /&gt;
text(-167,-50, &amp;nbsp;sprintf(&#39;* Day Profile &amp;nbsp;&#39; ), &#39;color&#39;, &#39;r&#39;, &#39;FontSize&#39;, 26)&lt;br /&gt;
text(-167,-60, &amp;nbsp;sprintf(&#39;o Night Profile&#39; ), &#39;color&#39;, &#39;b&#39;, &#39;FontSize&#39;, 26)&lt;br /&gt;
% &amp;nbsp; &amp;nbsp;annotation(&#39;textbox&#39;, [-175 &amp;nbsp;-55 20 &amp;nbsp;15 ],&#39;EdgeColor&#39;,[0 0 0] )&lt;br /&gt;
ylabel(&#39;Latitude &#39;, &#39;FontSize&#39;, 26)&lt;br /&gt;
xlabel(&#39;Longitude &#39;, &#39;FontSize&#39;, 26)&lt;br /&gt;
set(gcf,&#39;Color&#39;,&#39;white&#39;)&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-8272829485682002&quot;;
/* 300x250, created 9/11/09 */
google_ad_slot = &quot;2837785210&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usefulcodes.blogspot.com/feeds/7066207033920562170/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5192396795186001384/7066207033920562170' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/7066207033920562170'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/7066207033920562170'/><link rel='alternate' type='text/html' href='http://usefulcodes.blogspot.com/2016/04/matlab-plot-latitude-and-longitude-with.html' title='Matlab Plot Latitude and Longitude with degree symbol on the axis label'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5192396795186001384.post-5964277649111561013</id><published>2016-04-04T15:09:00.000-07:00</published><updated>2016-04-04T15:09:06.837-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="word"/><title type='text'>Readability Statistics in owrd</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
readability features in the word count are interesting one to pass at.&lt;br /&gt;
&lt;br /&gt;
In Word 2013/2010, File&amp;gt;Option&amp;gt;Proofing&lt;br /&gt;
In word 2007, search for proofing option&lt;br /&gt;
&lt;br /&gt;
Then under spelling and grammar section of the display menu, check the &quot;Show readability statistics&quot;.&lt;br /&gt;
This will enable readability statistics.&lt;br /&gt;
&lt;br /&gt;
A usual rule of thumb is that &amp;nbsp;the Flesch-Kincaid Grade (FKG) Level &amp;nbsp;should be around 10-12, and the Flesch Reading Ease should be between 60-70.&lt;br /&gt;
The FKG level is between 1-12, and represents how many years of US school is needed to understand the document. &lt;br /&gt;
There is also passive sentence score. While technical documents may be written with some passive statements, business documents are written with active sentences.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-8272829485682002&quot;;
/* 300x250, created 9/11/09 */
google_ad_slot = &quot;2837785210&quot;;
google_ad_width = 300;
google_ad_height = 250;
//--&gt;
&lt;/script&gt;
&lt;script src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://usefulcodes.blogspot.com/feeds/5964277649111561013/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5192396795186001384/5964277649111561013' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/5964277649111561013'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5192396795186001384/posts/default/5964277649111561013'/><link rel='alternate' type='text/html' href='http://usefulcodes.blogspot.com/2016/04/readability-statistics-in-owrd.html' title='Readability Statistics in owrd'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>