<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Sprechblasentext Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
span.SprechblasentextZchn
        {mso-style-name:"Sprechblasentext Zchn";
        mso-style-priority:99;
        mso-style-link:Sprechblasentext;
        font-family:"Tahoma","sans-serif";}
span.E-MailFormatvorlage19
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">i want to plot a grid based plot, including an contour overlay. The grid based plot is drawn in Stereographic projection using mpProjection = "Stereographic" and plot = gsn_csm_map(wks,res). On top of this map I want
to add a contour-plot showing if changes are significant or not. <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Unfortunately both plots do not use the same projection.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">But if I use resNatVar@mpProjection = "Stereographic" I get the information: warning:mpProjection is not a valid resource in ..<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I have added the source-code part and an example plot.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">What can I do?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks in advance<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Frank <br>
<br>
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> ;************************************************<br>
; create plot<br>
wtype = "png"<br>
wtype@wkWidth = 970 ; Set the pixel size of image.<br>
wtype@wkHeight = 1000 ; Set the pixel size of image.<br>
wks = gsn_open_wks(wtype,"test") <br>
;************************************************<br>
res = True <br>
res@gsnMaximize = True<br>
res@gsnDraw = False<br>
res@gsnFrame = False<br>
res@mpProjection = "Stereographic"<br>
res@mpCenterLatF = 50 ; Centered over Germany<br>
res@mpCenterLonF = 10 ; Centered over Germany<br>
res@mpLimitMode = "Corners" ; choose range of map<br>
res@mpLeftCornerLatF = 55.8<br>
res@mpLeftCornerLonF = 2.6<br>
res@mpRightCornerLatF = 45.1<br>
res@mpRightCornerLonF = 19.5<br>
res@mpGridLatSpacingF = 2<br>
res@mpGridLonSpacingF = 2<br>
res@mpOutlineDrawOrder = "PostDraw" ; draw continental outline last<br>
res@mpFillDrawOrder = "PreDraw"<br>
res@mpDataBaseVersion = "HighRes" ; use finer database<br>
res@mpOutlineBoundarySets = "National"<br>
res@mpFillOn = False ; turns off continent gray<br>
res@mpLeftAngleF = 7<br>
res@mpRightAngleF = 8<br>
res@mpBottomAngleF = 6<br>
res@mpTopAngleF = 8<br>
res@mpMinLatF = 10.0<br>
res@pmTickMarkDisplayMode = "Always" ; Nicer tickmark labels<br>
res@mpGridAndLimbOn = True ; Turn on lat/lon grid<br>
res@mpGridLineDashPattern = 2 ; Dashed lines<br>
res@tmXTOn = False ; turn tickmarks of<br>
res@tmXBOn = False ; turn tickmarks of<br>
res@tmYLOn = False ; turn tickmarks of<br>
res@tmYROn = False ; turn tickmarks of<br>
res@gsnLeftString = ""<br>
;************************************************<br>
; Plot will just be created, and not drawn yet.<br>
plot = gsn_csm_map(wks,res) ; Create plot<br>
;************************************************<br>
; adding color definition<br>
cmap = RGBtoCmap("/kp/kp06/VisTool/data/konstdat/Farben_rgb_temp.dat")<br>
gsn_define_colormap(wks,cmap) <br>
;************************************************<br>
; adding map<br>
res@cnFillOn = True ; color Fill <br>
res@cnFillMode = "RasterFill" ; Raster Mode<br>
res@cnLinesOn = False ; Turn off contour lines<br>
res@cnLevelSelectionMode = "ManualLevels"<br>
res@cnMinLevelValF = -90.0 ; min contour level<br>
res@cnMaxLevelValF = 90.0 ; max contour level<br>
res@cnLevelSpacingF = 20.0 ; contour spacing<br>
res@cnLabelBarEndStyle = "ExcludeOuterBoxes" ; no additional ColorBoxes<br>
res@gsnAddCyclic = False ; regional data: not cyclic<br>
;************************************************<br>
; Plot will just be created, and not drawn yet.<br>
plot = gsn_csm_contour_map(wks,u,res)<br>
;************************************************<br>
; add Info robust signal<br>
resNatVar = True <br>
resNatVar@gsnMaximize = True<br>
resNatVar@gsnDraw = False<br>
resNatVar@gsnFrame = False <br>
resNatVar@gsnLeftString = "" <br>
resNatVar@lbLabelBarOn = False<br>
resNatVar@cnFillOn = True ; color Fill <br>
resNatVar@cnLinesOn = False ; Turn off contour lines<br>
resNatVar@cnLevelSelectionMode = "AutomaticLevels"<br>
resNatVar@cnFillMode = "AreaFill" ; Raster Mode <br>
resNatVar@cnFillPattern = 17 <br>
resNatVar@cnFillBackgroundColor = -1<br>
resNatVar@cnInfoLabelOn = False<br>
resNatVar@cnLineLabelsOn = False<br>
resNatVar@cnMonoFillColor = True<br>
resNatVar@cnConstFEnableFill = True<br>
resNatVar@cnConstFLabelOn = False<br>
resNatVar@cnFillColor = "black"<br>
;************************************************<br>
; Plot will just be created, and not drawn yet.<br>
plot1 = gsn_csm_contour(wks,u1,resNatVar) <br>
overlay(plot,plot1) <br>
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:DE"><img width="751" height="729" id="Grafik_x0020_1" src="cid:image001.png@01D0614F.B2E6B880"></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
</div>
</body>
</html>