<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Gaeun,<br>
<br>
please send your replies always to ncl-talk so everyone who is
interested in can follow.<br>
<br>
You have to set <br>
<br>
<font color="#3333ff"><tt> res4@mpFillOn = True</tt></font><br>
<br>
because you want to fill the map area of Myanmar.<br>
<br>
If I run the following short script no error occurs:<br>
<br>
<font color="#3333ff"><tt>begin</tt><tt><br>
</tt><tt> wks =
gsn_open_wks("png","plot_country_fill_area_by_name")</tt><tt><br>
</tt><tt></tt><tt><br>
</tt><tt> res = True</tt><tt> </tt><tt><br>
</tt><tt> res@pmTickMarkDisplayMode = "Always" ;-- turn on
map tickmarks</tt><tt><br>
</tt><tt> res@mpDataSetName = "Earth..4" ;-- new
database</tt><tt><br>
</tt><tt> res@mpDataBaseVersion = "MediumRes" ;-- Medium
resolution database</tt><tt><br>
</tt><tt> res@mpOutlineOn = True ;-- turn on
map outlines</tt><tt><br>
</tt><tt> res@mpFillOn = True ;-- turn on
map fill</tt><tt><br>
</tt><tt> res@mpOutlineBoundarySets = "National" ;-- draw only
national bounds</tt><tt><br>
</tt><tt> res@mpLandFillColor = "white" ;-- set map
land fill to white</tt><tt><br>
</tt><tt> res@mpFillAreaSpecifiers = (/"Myanmar"/) ;-- fill
listed states</tt><tt><br>
</tt><tt> res@mpSpecifiedFillColors = (/"red"/) ;-- use
generated color array</tt><tt><br>
</tt><tt><br>
</tt><tt> map = gsn_csm_map(wks,res) ;-- create the map</tt><tt><br>
</tt><tt>end</tt></font><br>
<br>
Bye,<br>
Karin<br>
<br>
<br>
<div class="moz-cite-prefix">Am 06.09.16 um 16:20 schrieb 김가은:<br>
</div>
<blockquote
cite="mid:CACySN+vKjLw8NrUb_1f-7=9h3yyH_rw-OYe5XDxVYp72ffJxqw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Dear Karin</div>
<div><br>
</div>
<div>Thanks for your advice Karin!</div>
<div><br>
</div>
<div>but the thing is if I set the resource like this:</div>
<div><br>
</div>
<div> res4@mpFillOn = False<br>
;res4@mpOutlineOn = True<br>
res4@mpDataBaseVersion = "MediumRes"<br>
res4@mpDataSetName = "Earth..4"<br>
;res4@mpOutlineBoundarySets = "National"</div>
<div><br>
</div>
<div>I keep getting segmentation fault :(</div>
<div><span><span>is there any wrong with this?</span></span></div>
<div><span><span><br>
</span></span></div>
<div>Regards,</div>
<div>Gaeun</div>
<span>
<p><br>
</p>
<span>
<p><br>
</p>
<div><br>
</div>
</span></span></div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2016-09-06 15:20 GMT+09:00 Karin
Meier-Fleischer <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:meier-fleischer@dkrz.de" target="_blank">meier-fleischer@dkrz.de</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="-ms-word-wrap: break-word;">Hi Gaeun,
<div><br>
</div>
<div>you have to set the mpDataBaseVersion resource to
Ncarg4_1 or the alias MediumRes when </div>
<div>accessing the MapPlot database Earth..4. See </div>
<div><a moz-do-not-send="true"
href="http://www.ncl.ucar.edu/Document/HLUs/Classes/MapPlotData4_1_earth_4.shtml"
target="_blank">http://www.ncl.ucar.edu/<wbr>Document/HLUs/Classes/<wbr>MapPlotData4_1_earth_4.shtml</a></div>
<div><br>
</div>
<div>Insert the following line to your script </div>
<div><br>
</div>
<div><font face="Courier New" color="#0042aa">
res3@mpDataBaseVersion = "MediumRes"</font></div>
<div><br>
</div>
<div><br>
</div>
<div>Bye,</div>
<div>Karin</div>
<div><br>
</div>
<div><br>
<div>
<blockquote type="cite">
<div>
<div class="h5">
<div>Am 06.09.2016 um 03:11 schrieb 김가은 <<a
moz-do-not-send="true"
href="mailto:gaeun.kim0921@gmail.com"
target="_blank">gaeun.kim0921@gmail.com</a>>:</div>
<br>
</div>
</div>
<div>
<div>
<div class="h5">
<div dir="ltr">Hi, me again. always thanks for
your big help.
<div><br>
</div>
<div>I'm trying to present data only over
Myanmar territory </div>
<div>like this example : <a
moz-do-not-send="true"
href="https://www.ncl.ucar.edu/Applications/Images/mask_4_lg.png"
target="_blank">https://www.ncl.ucar.edu/<wbr>Applications/Images/mask_4_lg.<wbr>png</a></div>
<div><br>
</div>
<div>and this is what I've done:</div>
<div><br>
</div>
<div>
<div>;---- Source for plot (Myanmar)</div>
<div> fill_specs = (/"water", "Land"/)</div>
<div> mask_specs = (/"Myanmar"/)</div>
<div> </div>
<div> res3
= res</div>
<div> </div>
<div> res3@mpDataSetName
= "Earth..4"</div>
<div> res3@mpFillBoundarySets
= "NoBoundaries"</div>
<div> res3@mpFillAreaSpecifiers
= fill_specs</div>
<div> res3@mpSpecifiedFillColors
= (/7,2/)</div>
<div><br>
</div>
<div> res3@mpAreaMaskingOn
= 1</div>
<div> res3@mpMaskAreaSpecifiers
= mask_specs </div>
<div><br>
</div>
<div> res3@mpMinLonF
= 90 ;123 ;25 Horn of Africa</div>
<div> res3@mpMaxLonF
= 105 ;132 ;53</div>
<div> res3@mpMinLatF
= 0 ;32 ;-10</div>
<div> res3@mpMaxLatF
= 30 ;45 ;20</div>
<div>;---- Source for Panel </div>
<div> pres3
= pres</div>
<div> pres3@txString = "Total
Precipitation of ICON (40km) over
Myanmar"</div>
<div> </div>
<div>;---- Draw panel plot (Myanmar)</div>
<div> res3@gsnCenterString =
"SEP 2016"</div>
<div> plot_3(0) =
gsn_csm_contour_map_ce(wks,<wbr>Total_p(0,:,:),res3)</div>
<div> res3@gsnCenterString =
"OCT 2016"</div>
<div> plot_3(1) =
gsn_csm_contour_map_ce(wks,<wbr>Total_p(1,:,:),res3)</div>
<div> res3@gsnCenterString =
"NOV 2016"</div>
<div> plot_3(2) =
gsn_csm_contour_map_ce(wks,<wbr>Total_p(2,:,:),res3)</div>
<div> res3@gsnCenterString =
"SON 2016"</div>
<div> plot_3(3) =
gsn_csm_contour_map_ce(wks,<wbr>Total_p(3,:,:),res3)</div>
<div> </div>
<div> gsn_panel(wks,plot_3,(/2,2/),<wbr>pres3)</div>
</div>
<div><br>
</div>
<div>the result is ...</div>
<div>
<div>warning:<wbr>MapV40DHUpdateDrawList:
invalid boundary specification string:
"myanmar"</div>
<div>warning:<wbr>MapV40DHUpdateDrawList:
invalid boundary specification string:
"myanmar"</div>
<div>warning:<wbr>MapV40DHUpdateDrawList:
invalid boundary specification string:
"myanmar"</div>
<div>warning:<wbr>MapV40DHUpdateDrawList:
invalid boundary specification string:
"myanmar"</div>
</div>
<div><br>
</div>
<div>could anyone give me an advice?</div>
<div><br>
</div>
<div>Regards,</div>
<div>Gaeun</div>
<div><br>
</div>
</div>
</div>
</div>
______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a moz-do-not-send="true"
href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options,
unsubscribe:<br>
<a moz-do-not-send="true"
href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk"
target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
</div>
</blockquote>
</div>
<br>
<div>
<div
style="color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal">
<div
style="color:rgb(0,0,0);text-transform:none;line-height:normal;text-indent:0px;letter-spacing:normal;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;word-spacing:0px;white-space:normal">
<div
style="color:rgb(0,0,0);text-transform:none;line-height:normal;text-indent:0px;letter-spacing:normal;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;word-spacing:0px;white-space:normal">
<div
style="color:rgb(0,0,0);text-transform:none;line-height:normal;text-indent:0px;letter-spacing:normal;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;word-spacing:0px;white-space:normal">
<div
style="color:rgb(0,0,0);text-transform:none;line-height:normal;text-indent:0px;letter-spacing:normal;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;word-spacing:0px;white-space:normal"><span
style="border-collapse:separate;border-spacing:0px">
<div style="-ms-word-wrap: break-word;"><span
style="text-transform:none;line-height:normal;text-indent:0px;letter-spacing:normal;font-family:Helvetica;font-variant:normal;word-spacing:0px;white-space:normal;border-collapse:separate;border-spacing:0px">
<div style="-ms-word-wrap:
break-word;"><span
style="color:rgb(0,0,0);text-transform:none;line-height:normal;text-indent:0px;letter-spacing:normal;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;word-spacing:0px;white-space:normal;border-collapse:separate;border-spacing:0px">
<div style="-ms-word-wrap:
break-word;"><br>
</div>
</span></div>
</span></div>
</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Dipl. Geophys. Karin Meier-Fleischer
Visualization, NCL
Application Support
Deutsches Klimarechenzentrum GmbH (DKRZ)
Bundesstrasse 45a - D20146 Hamburg - Germany
Phone: +49 (0)40 460094 126
Fax: +49 (0)40 460094 270
E-Mail: <a class="moz-txt-link-abbreviated" href="mailto:meier-fleischer@dkrz.de">meier-fleischer@dkrz.de</a>
URL: <a class="moz-txt-link-abbreviated" href="http://www.dkrz.de">www.dkrz.de</a>
Geschäftsführer: Prof. Dr. Thomas Ludwig
Sitz der Gesellschaft: Hamburg
Amtsgericht Hamburg HRB 39784
</pre>
</body>
</html>