<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:10pt;color:#2672EC;background-color:#FFFFFF;font-family:Arial,Helvetica,sans-serif;">
<p></p>
<div>Hi All,<br>
<br>
I tried the below script but got following error:<br>
<br>
<span style="color: rgb(255, 0, 0);">fatal:Cannot create triangular mesh: supply additional resources or build with Triangle package</span><br>
<span style="color: rgb(255, 0, 0);">fatal:ContourPlotDraw: draw error</span><br>
<span style="color: rgb(255, 0, 0);">fatal:ContourPlotDraw: draw error</span><br>
<span style="color: rgb(255, 0, 0);">fatal:ContourPlotDraw: draw error</span><br>
<span style="color: rgb(255, 0, 0);">fatal:PlotManagerDraw: error in plot draw</span><br>
<span style="color: rgb(255, 0, 0);">fatal:_NhlPlotManagerDraw: Draw error</span><br>
</div>
<br>
###################################################################################################<br>
script i used is:<br>
<br>
<div>load &quot;/usr/share/ncarg/nclscripts/csm/gsn_code.ncl&quot;<br>
load &quot;/usr/share/ncarg/nclscripts/csm/gsn_csm.ncl&quot;<br>
load &quot;/usr/share/ncarg/nclscripts/csm/contributed.ncl&quot;<br>
<br>
begin <br>
<br>
File = asciiread(&quot;tir1.txt&quot;,(/53248,3/),&quot;double&quot;)<br>
<br>
&nbsp;pv =File(:,2) ; last column<br>
&nbsp;lon=File(:,0) ; first column<br>
&nbsp;lat=File(:,1) ; second column<br>
<br>
wks = gsn_open_wks(&quot;png&quot;,&quot;tir1&quot;) &nbsp;<br>
&nbsp;res=True<br>
<br>
&nbsp;res@gsnDraw&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = True<br>
&nbsp; res@gsnFrame&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = True<br>
&nbsp; res@gsnAddCyclic&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = False<br>
&nbsp; res@gsnStringFontHeightF = 0.015<br>
&nbsp; res@cnFillOn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = True&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; turn on color fill<br>
&nbsp; res@cnFillMode = &quot;RasterFill&quot;<br>
&nbsp; res@trGridType = &quot;TriangularMesh&quot;<br>
&nbsp; res@cnRasterSmoothingOn = False <br>
&nbsp; res@gsnMaximize&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = True&nbsp;&nbsp;&nbsp;&nbsp; ; maximize plot in frame<br>
&nbsp; res@mpOutlineOn&nbsp;&nbsp; = True&nbsp;&nbsp; ; Use outlines from shapefile<br>
&nbsp; res@mpFillOn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = False<br>
&nbsp; res@cnLinesOn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = False&nbsp;&nbsp;&nbsp; ; turn off contour lines<br>
&nbsp; res@cnLineLabelsOn&nbsp;&nbsp;&nbsp; = False&nbsp;&nbsp;&nbsp; ; turn off line labels<br>
res@cnLevelSelectionMode = &quot;ExplicitLevels&quot;<br>
&nbsp; res@cnLevels&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = (/180,190,200,210,220,230,240,250,260,270,280,290,300,310/) ;&nbsp;&nbsp; 14 contour values<br>
&nbsp; res@cnFillPalette&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = (/&quot;Grey100&quot;,&quot;BlueViolet&quot;,&quot;Blue4&quot;,&quot;Blue2&quot;,&quot;Cornflowerblue&quot;,&quot;darkslategray1&quot;,&quot;Cyan&quot;\<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;,&quot;chartreuse&quot;,&quot;darkgreen&quot;,&quot;Yellow&quot;\ &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;; 15 contour colors<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ,&quot;Orange&quot;,&quot;darkorange4&quot;, &quot;palevioletred1&quot;,&quot;orangered&quot;&nbsp;&nbsp;&nbsp; \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ,&quot;Red3&quot; /)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br>
<br>
&nbsp; res@lbLabelBarOn &nbsp;&nbsp; &nbsp;= True<br>
&nbsp; res@lbOrientation&nbsp;&nbsp; = &quot;Vertical&quot;<br>
&nbsp;res@sfXArray = lon<br>
&nbsp;res@sfYArray = lat<br>
&nbsp;res@mpLimitMode&nbsp; = &quot;LatLon&quot;<br>
&nbsp;res@mpMaxLonF&nbsp;&nbsp;&nbsp; = max(lon)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br>
&nbsp;res@mpMinLonF&nbsp;&nbsp;&nbsp; = min(lon)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br>
&nbsp;res@mpMinLatF&nbsp;&nbsp;&nbsp; = min(lat)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br>
&nbsp;res@mpMaxLatF&nbsp;&nbsp;&nbsp; = max(lat)<br>
&nbsp;res@pmTickMarkDisplayMode &nbsp;&nbsp; &nbsp;= &quot;Always&quot;<br>
<br>
<br>
&nbsp;plot = gsn_csm_contour_map(wks,pv,res)<br>
<br>
end</div>
<br>
<p></p>
regards<br>
Amit<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Guido Cioni &lt;guidocioni@gmail.com&gt;<br>
<b>Sent:</b> Tuesday, September 6, 2016 5:13 PM<br>
<b>To:</b> Amit Kumar<br>
<b>Cc:</b> ncl-talk@ucar.edu<br>
<b>Subject:</b> Re: [ncl-talk] Issue with ploting of irregular txt/nc file</font>
<div>&nbsp;</div>
</div>
<div>Dear Amit,&nbsp;<br class="">
You can plot a text file without converting it to a nc file, which could cause errors. Just use the function
<font class="" face="Menlo">asciiread</font> and then assign the values correctly before plotting. Below is an example (only relevant commands are reported):
<div class=""><br class="">
</div>
<div class=""><font class="" face="Menlo">; read the data (you have to specify number of rows and columns, here are assumed</font></div>
<div class=""><font class="" face="Menlo">; to be lon | lat | value (pv)</font></div>
<div class=""><font class="" face="Menlo"><br class="">
</font></div>
<div class="">
<div class=""><font class="" face="Menlo">&nbsp;File = asciiread (&quot;data_pv.txt&quot;,(/245220,3/),&quot;double&quot;)</font></div>
<div class=""><font class="" face="Menlo"><br class="">
</font></div>
<div class=""><font class="" face="Menlo">&nbsp;pv =File(:,2) ; last column</font></div>
<div class=""><font class="" face="Menlo">&nbsp;lon=File(:,0) ; first column</font></div>
<div class=""><font class="" face="Menlo">&nbsp;lat=File(:,1) ; second column</font></div>
<div class=""><font class="" face="Menlo"><br class="">
</font></div>
<div class=""><font class="" face="Menlo">&nbsp;Res=True</font></div>
<div class=""><font class="" face="Menlo">&nbsp;Res@sfXArray = lon</font></div>
<div class=""><font class="" face="Menlo">&nbsp;Res@sfYArray = lat</font></div>
<div class=""><font class="" face="Menlo"><br class="">
</font></div>
<div class=""><font class="" face="Menlo">&nbsp;Res@mpLimitMode &nbsp;= &quot;LatLon&quot;</font></div>
<div class=""><font class="" face="Menlo">&nbsp;Res@mpMaxLonF &nbsp; &nbsp;= max(lon) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</font></div>
<div class=""><font class="" face="Menlo">&nbsp;Res@mpMinLonF &nbsp; &nbsp;= min(lon) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</font></div>
<div class=""><font class="" face="Menlo">&nbsp;Res@mpMinLatF &nbsp; &nbsp;= min(lat) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</font></div>
<div class=""><font class="" face="Menlo">&nbsp;Res@mpMaxLatF &nbsp; &nbsp;= max(lat)</font></div>
<div class=""><font class="" face="Menlo"><br class="">
</font></div>
<div class=""><font class="" face="Menlo">&nbsp;plot = gsn_csm_contour_map(wks,pv,Res)</font></div>
<div class="">
<div class="" style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<br class="Apple-interchange-newline">
Guido Cioni</div>
<div class="" style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<a id="LPlnk393719" href="http://guidocioni.altervista.org" class="">http://guidocioni.altervista.org</a>&nbsp;</div>
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 06 Sep 2016, at 10:03, Amit Kumar &lt;<a href="mailto:amitkumar.777@hotmail.com" class="">amitkumar.777@hotmail.com</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div id="divtagdefaultwrapper" class="" style="font-size:10pt; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; color:rgb(38,114,236); background-color:rgb(255,255,255); font-family:Arial,Helvetica,sans-serif">
<p class="" style="margin-top:0px; margin-bottom:0px"></p>
<div class="">Hi all,<br class="">
<br class="">
I'm trying to plot a text file containing three columns lon , lat, value using ncl.<br class="">
<br class="">
First I converted my text file to nc using CDO. The nc file is like:<br class="">
<br class="">
##################################################################################<br class="">
<br class="">
<div class="">Variable: f<br class="">
Type: file<br class="">
filename:&nbsp;&nbsp; &nbsp;tir1<br class="">
path:&nbsp;&nbsp; &nbsp;tir1.nc<br class="">
&nbsp;&nbsp; file global attributes:<br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CDI : Climate Data Interface version ?? (<a href="http://mpimet.mpg.de/cdi" class="">http://mpimet.mpg.de/cdi</a>)<br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Conventions : CF-1.4<br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; history : Tue Sep 06 11:56:42 2016: cdo -f nc input,my_gridfile tir1.nc<br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CDO : Climate Data Operators version 1.7.0 (<a href="http://mpimet.mpg.de/cdo" class="">http://mpimet.mpg.de/cdo</a>)<br class="">
&nbsp;&nbsp; dimensions:<br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ncells = 53248<br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; time = 1&nbsp; // unlimited<br class="">
&nbsp;&nbsp; variables:<br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; double lon ( ncells )<br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; standard_name :&nbsp;&nbsp; &nbsp;longitude<br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; units :&nbsp;&nbsp; &nbsp;degrees_east<br class="">
<br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; double lat ( ncells )<br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; standard_name :&nbsp;&nbsp; &nbsp;latitude<br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; units :&nbsp;&nbsp; &nbsp;degrees_north<br class="">
<br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; double time ( time )<br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; standard_name :&nbsp;&nbsp; &nbsp;time<br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; units :&nbsp;&nbsp; &nbsp;hours since 0-0-0 00:00:00<br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; calendar :&nbsp;&nbsp; &nbsp;proleptic_gregorian<br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; axis :&nbsp;&nbsp; &nbsp;T<br class="">
<br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; float var1 ( time, ncells )<br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; grid_type :&nbsp;&nbsp; &nbsp;unstructured<br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; coordinates :&nbsp;&nbsp; &nbsp;lat lon<br class="">
###################################################################################<br class="">
<br class="">
</div>
but I'm getting following errors:<br class="">
<br class="">
<span class="" style="color:rgb(255,0,0)">fatal:ScalarFieldInitialize: Insufficient number of elements in sfDataArray</span><br class="">
<span class="" style="color:rgb(255,0,0)">fatal:Unable to initialize layer-Can't Create</span><br class="">
<span class="" style="color:rgb(255,0,0)">fatal:Unable to access object with id:-4</span><br class="">
<span class="" style="color:rgb(255,0,0)">fatal:PID #-4 can't be found in NhlSetValues</span><br class="">
<span class="" style="color:rgb(255,0,0)">fatal:Unable to access object with id:-4</span><br class="">
<span class="" style="color:rgb(255,0,0)">warning:Unable to add DataItem &quot;(null)&quot; to DataList &quot;cnScalarFieldData&quot;</span><br class="">
<span class="" style="color:rgb(255,0,0)">fatal:CompileDataList:DataList has no valid members</span><br class="">
</div>
<p class="" style="margin-top:0px; margin-bottom:0px"></p>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">######################################################################################</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">my script is :</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<p class="" style="margin-top:0px; margin-bottom:0px"></p>
<div class="">load &quot;/usr/share/ncarg/nclscripts/csm/gsn_code.ncl&quot;<br class="">
load &quot;/usr/share/ncarg/nclscripts/csm/gsn_csm.ncl&quot;<br class="">
load &quot;/usr/share/ncarg/nclscripts/csm/contributed.ncl&quot;<br class="">
<br class="">
<br class="">
<br class="">
begin<br class="">
;---read in zonal winds<br class="">
&nbsp; a &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;= addfile(&quot;/home/amit/Desktop/tir1.nc&quot;,&quot;r&quot;)<br class="">
<br class="">
&nbsp; filename = &quot;/media/amit/E/India_shapefile/State_bound(Satmet).shp&quot;<br class="">
<br class="">
&nbsp; ;filename = &quot;/media/amit/E/India_shapefile/Districtbound(Satmet).shp&quot;<br class="">
<br class="">
<br class="">
&nbsp; var &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;= doubletofloat(a-&gt;var1)<br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br class="">
lat &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;=&nbsp; a-&gt;lat<br class="">
lon &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;=&nbsp; a-&gt;lon<br class="">
<br class="">
<br class="">
&nbsp; wks = gsn_open_wks(&quot;png&quot;,&quot;TIR1&quot;)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; send graphics to PNG file<br class="">
<br class="">
&nbsp; res&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = True&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; plot mods desired<br class="">
&nbsp; res@cnFillOn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = True&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; turn on color fill<br class="">
&nbsp; res@cnLinesOn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = False<br class="">
&nbsp; res@gsnMaximize&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = True&nbsp;&nbsp;&nbsp;&nbsp; ; maximize plot in frame<br class="">
&nbsp; res@gsnDraw&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = False<br class="">
&nbsp; res@gsnFrame&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = False<br class="">
<br class="">
&nbsp; res@mpOutlineOn&nbsp;&nbsp; = False&nbsp;&nbsp; ; Use outlines from shapefile<br class="">
&nbsp; res@mpFillOn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = False &nbsp;<br class="">
&nbsp; res@cnFillMode = &quot;RasterFill&quot;<br class="">
&nbsp; res@trGridType = &quot;TriangularMesh&quot;<br class="">
&nbsp; res@cnRasterSmoothingOn = False<span class="Apple-converted-space">&nbsp;</span><br class="">
<br class="">
res@cnLevelSelectionMode = &quot;ExplicitLevels&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br class="">
&nbsp; res@cnLevels&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = (/190,220,240,250,260,265,270,275,280,285,290,300,320,360/) ;&nbsp;&nbsp; ; 14 contour values<br class="">
&nbsp; res@cnFillPalette&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = (/&quot;Grey&quot;,&quot;BlueViolet&quot;,&quot;Blue4&quot;,&quot;Blue2&quot;,&quot;Cornflowerblue&quot;,&quot;darkslategray1&quot;,&quot;Cyan&quot;\<br class="">
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;,&quot;chartreuse&quot;,&quot;khaki1&quot;,&quot;Yellow&quot;\ &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;; 15 contour colors<br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ,&quot;Orange&quot;,&quot;darkorange4&quot;, &quot;hotpink&quot;&nbsp;&nbsp;&nbsp; \<br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ,&quot;Red&quot;,&quot;Black&quot; /)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br class="">
<br class="">
res@tiMainString&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &quot;TIR1 Plot&quot;<br class="">
&nbsp; res@tiMainFontHeightF = 0.016<span class="Apple-converted-space">&nbsp;</span><br class="">
&nbsp; res@gsnAddCyclic&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = False<br class="">
&nbsp; res@lbOrientation&nbsp;&nbsp; = &quot;Vertical&quot;<br class="">
<br class="">
&nbsp; res@sfXArray &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = lon<br class="">
&nbsp; res@sfYArray&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;=&nbsp; lat<br class="">
<br class="">
<br class="">
res@mpMinLonF &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;= 68.0<br class="">
res@mpMaxLonF &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;= 98.0<br class="">
res@mpMinLatF &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;= 0.0<br class="">
res@mpMaxLatF &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;= 38.0<br class="">
<br class="">
res@pmTickMarkDisplayMode &nbsp;&nbsp; &nbsp;= &quot;Always&quot;<br class="">
<br class="">
res@tiXAxisString&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;= &quot;Longitude&quot;<br class="">
res@tiYAxisString&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;= &quot;Lattitude&quot;<br class="">
<br class="">
res@tiXAxisFontHeightF &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;= 0.02<br class="">
res@tiYAxisFontHeightF &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;= 0.02<span class="Apple-converted-space">&nbsp;</span><br class="">
<br class="">
res@gsnStringFontHeightF &nbsp;&nbsp; &nbsp;= 0.005 &nbsp;<br class="">
<br class="">
&nbsp; plot = gsn_csm_contour_map(wks,var, res)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; create plot<br class="">
<br class="">
;---Resource list for shapefile outlines<br class="">
&nbsp;plres&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = True<br class="">
&nbsp;plres@gsLineColor&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &quot;black&quot;<br class="">
&nbsp;plres@gsLineThicknessF&nbsp; = &quot;1.5&quot;<br class="">
&nbsp;dumstr&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; = unique_string(&quot;poly&quot;)<br class="">
&nbsp;<span class="Apple-converted-space">&nbsp;</span><br class="">
&nbsp;id = gsn_add_shapefile_polylines(wks,plot,filename,plres)<br class="">
<br class="">
&nbsp;draw(plot)<br class="">
&nbsp; frame(wks)<br class="">
<br class="">
end</div>
####################################################################################################################<br class="">
<p class="" style="margin-top:0px; margin-bottom:0px"></p>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
</div>
<span class="" style="font-family:Helvetica; font-size:13px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; float:none; display:inline!important">_______________________________________________</span><br class="" style="font-family:Helvetica; font-size:13px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:13px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; float:none; display:inline!important">ncl-talk
 mailing list</span><br class="" style="font-family:Helvetica; font-size:13px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<a href="mailto:ncl-talk@ucar.edu" class="" style="font-family:Helvetica; font-size:13px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">ncl-talk@ucar.edu</a><br class="" style="font-family:Helvetica; font-size:13px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:13px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; float:none; display:inline!important">List
 instructions, subscriber options, unsubscribe:</span><br class="" style="font-family:Helvetica; font-size:13px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" class="" style="font-family:Helvetica; font-size:13px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</div>
</body>
</html>