<div dir="ltr"><div class="gmail_default" style="font-size:small">Noelia,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You should be able to set the four values with:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style=""><div class="gmail_default" style=""> res@mpMinLatF = 30</div><div class="gmail_default" style=""> res@mpMaxLatF = 65</div><div class="gmail_default" style=""><br></div><div class="gmail_default" style=""> res@mpMinLonF = -15</div><div class="gmail_default" style=""> res@mpMaxLonF = 30</div><div class="gmail_default" style=""><br></div><div class="gmail_default" style="">Here's a small code that creates just the map:</div><div class="gmail_default" style=""><br></div><div class="gmail_default" style=""><div class="gmail_default"> wks = gsn_open_wks("x11","lcmask")</div><div class="gmail_default"><br></div><div class="gmail_default"> res = True</div><div class="gmail_default"> res@gsnMaximize = True</div><div class="gmail_default"><br></div><div class="gmail_default"> res@mpProjection = "LambertConformal"</div><div class="gmail_default"> res@mpMinLatF = 30</div><div class="gmail_default"> res@mpMaxLatF = 65</div><div class="gmail_default"> res@mpMinLonF = -15</div><div class="gmail_default"> res@mpMaxLonF = 30</div><div class="gmail_default"><br></div><div class="gmail_default"> res@gsnMaskLambertConformal = True</div><div class="gmail_default"> res@mpGridAndLimbOn = True</div><div class="gmail_default"><br></div><div class="gmail_default"> plot = gsn_csm_map(wks,res)</div><div class="gmail_default"><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 20, 2016 at 4:55 AM, Noelia otero <span dir="ltr"><<a href="mailto:noeli1680@gmail.com" target="_blank">noeli1680@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I am doing a panel plot from datasets with regular grid, and so far I was using mercator projection.</div><div>I was trying to change the projection to lambert conformal projection, but I'm having some problems to make ir rigth (I was wondering if it's possible to change the projection). </div><div>Besides, my plot also shows significant levels, so I am defining two plots:<br></div><div><br></div><div><div> ;Defining plots attributes</div><div> res = True</div><div> res@gsnAddCyclic = False</div><div> res@gsnMaximize = True</div><div> res@gsnDraw = False</div><div> res@gsnFrame = False</div><div> res@lbLabelBarOn = False</div><div><br></div><div> ; Try with LamConf proj.</div><div> res@mpProjection = "LambertConformal"; choose projection</div><div> res@mpFillOn = False ; turn off map fill</div><div> res@mpMinLatF = min(lat) ; min lat to mask</div><div> res@mpMaxLatF = max(lat) ; max lat to mask</div><div><br></div><div> res@mpMinLonF = min(lon) ; min lon to mask</div><div> res@mpMaxLonF = max(lon) ; max lon to mask</div><div><br></div><div> res@gsnMaskLambertConformal = True ; turn on lc masking</div><div> res@gsnMaskLambertConformalOutlineOn = False ; turns off outline</div><div><br></div></div><div><br></div><div> ;Significant plot</div><div><br></div><div><div> res2 = True</div><div> res2@gsnAddCyclic = False</div><div> res2@gsnDraw = False</div><div> res2@gsnFrame = False</div><div> res2@cnLevelSelectionMode = "ManualLevels"</div><div> res2@cnMinLevelValF = 0.00</div><div> res2@cnMaxLevelValF = 1.05</div><div> res2@cnLevelSpacingF = 0.01</div><div> res2@cnFillOn = False</div><div> res2@cnInfoLabelOn = False</div><div> res2@cnLinesOn = False ; do not draw contour lines</div><div> res2@cnLineLabelsOn = False</div><div><br></div><div> ;defining also projection???</div><div> ; res2@mpProjection = "LambertConformal"; choose projection</div><div> ; res2@gsnMaskLambertConformal = True ; turn on lc masking</div><div> ; res2@gsnMaskLambertConformalOutlineOn = False ; turns off outline</div><div><br></div><div><br></div><div> opt = True</div><div> opt@gsnShadeFillType = "pattern"</div><div> opt@gsnShadeLow = 7</div><div> plot2 = gsn_csm_contour(wks,prob,res2)</div><div> plot2= gsn_contour_shade(plot2,0.05,-999,opt)</div><div> plot = gsn_csm_contour_map_ce(wks,ave_diff({20:80},{-30:40}),res)</div><div><br></div><div> overlay(plot,plot2)</div></div><div> </div><div><br></div><div><br></div><div>My main questions are:</div><div><br></div><div>- Let's say that my grid is defined from -15W,30E and 30N, 65N. How should I define the properties in the main plot res?? Because I am having problemswhen using:</div><div><div> res@mpMinLatF = min(lat) ; min lat to mask</div><div> res@mpMaxLatF = max(lat) ; max lat to mask</div></div><div><br></div><div> Instead, I tried with higher values..but I am not sure actually, how it's working.</div><div><br></div><div>-Secondly, for the significant plot (res2), do I have to define mpMinLatF, mpMaxLatF...etc..as well?? </div><div><br></div><div>I would appreciate any suggestion.</div><div>Many thanks in advance</div><span class="HOEnZb"><font color="#888888"><div><br></div><div> Noelia</div><div><br></div><div><br></div></font></span></div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>