<div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Maud,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thank you for providing a script that was ready to go.<br></div><div class="gmail_default" style="font-size:small"><span style="background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div class="gmail_default" style="font-size:small">I'm not sure what's going on with the native NCL map tickmark labels. I'll create a ticket on this.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Meanwhile, there's a possible work-around, and that is to use a custom procedure for setting the labels yourself. This procedure basically uses gsn_text_ndc under the hood to take a lat/lon value, convert it to NDC coordinates, and then use gsn_text_ndc to draw the label.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">This procedure is used in example mptick_9.ncl at:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/mptick.shtml#ex9">http://www.ncl.ucar.edu/Applications/mptick.shtml#ex9</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">I've included the procedure in your script, and then made a few changes to make sure the X and Y axis strings and the subtitles at the top don't run into the tickmark labels.</div><div class="gmail_default"><br></div><div class="gmail_default">Note that I chose to label all four sides of the plot. If you don't want this, simply comment any one of these lines to move the one you don't want:</div><div class="gmail_default"><br></div><div class="gmail_default"><div class="gmail_default"> tmres@tmYLValues = ispan(70,82,1)</div><div class="gmail_default"> tmres@tmXBValues = ispan(-101,-52,3)</div><div class="gmail_default"> tmres@tmYRValues = ispan(70,82,1)</div><div class="gmail_default"> tmres@tmXTValues = ispan(-150,-50,5)'</div></div><div class="gmail_default"><br></div><div class="gmail_default">See attached. You should double-check that the labels look correct!</div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div><div class="gmail_default"><br></div><div class="gmail_default"><br></div><div class="gmail_default" style="font-size:small"><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 28, 2018 at 1:03 PM, Maud Leriche <span dir="ltr"><<a href="mailto:Maud.Leriche@aero.obs-mip.fr" target="_blank">Maud.Leriche@aero.obs-mip.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hello everybody,<div><br></div><div>With one of my student, we possibly found a bug in ncl (6.5.0). </div><div>We want to plot the orography of our domain simulation on a map. We are using the MesoNH model (<a href="http://mesonh.aero.obs-mip.fr/mesonh54/" target="_blank">http://mesonh.aero.obs-mip.<wbr>fr/mesonh54/</a>, 5.4.1) with a polar projection defined with :</div><div>Latitude at the centre of the domain (LAT0) = 78.5°N</div><div>Longitude of the centre of the domain (LON0) = -86.41°O</div><div>Parameter of the conformal projection (RPK) = 1 (corresponding to stereographic polar projection)</div><div><br></div><div>The graph obtained from our ncl script doesn’t indicate the latitude on the Y axis. Instead the Y axis indicates longitude. </div><div><br></div><div>We think that the problem comes to ncl because if the conformal projection parameter is inferior to 0.72, the plot is right but if this parameter is > 0.71, ncl doesn’t indicate the latitude on the Y axis.</div><div><br></div><div>The tar file containing our ncl script, the netcdf file output of our simulation and the obtained plot can be downloaded here:</div><div><a href="https://framadrop.org/r/uKKEspjOMJ#DWaQaXTd2jhmXGXuJpz85vVjfgWJB2HqSFZTdZR09Qc=" target="_blank">https://framadrop.org/r/<wbr>uKKEspjOMJ#<wbr>DWaQaXTd2jhmXGXuJpz85vVjfgWJB2<wbr>HqSFZTdZR09Qc=</a></div><div><br></div><div>Below is the obtained plot using a RPK = 0.71.</div><div><br></div><div>Many thanks in advance for your help.</div><div><br></div><div>Regards,</div><div><br></div><div>Maud</div><div><br><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">Maud LERICHE</div><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">Chargée de recherche CNRS - HDR</div><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">Laboratoire d’Aérologie (LA) - France<br>Chercheuse invitée<br>Centre pour l’étude et la simulation du climat </div><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">à l’échelle régionale (ESCER) - PK 7630</div><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">Université du Québec à Montréal<br>Case postale 8888, succursale Centre-Ville<br>Montréal (Québec) Canada<br>H3C 3P8</div></div>
</div>
</div><img name="m_7314963334762260038_RPK071.png" id="m_7314963334762260038FF101568-432A-4BDC-9AD1-28D54C31D9FE" height="480" width="480" src="cid:97193442-B911-4A5D-8C7D-8400E0E3AB36"><div></div><br><div></div></div><br>______________________________<wbr>_________________<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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>