<div dir="ltr">Hi Beáta,<div><br></div><div>I would suggest copying the taylor_metrics_table.ncl function to the top of your script, and rename it. Then, you can modify it as you like and call it within your main script. </div><div><a href="https://www.ncl.ucar.edu/Applications/Scripts/taylor_metrics_table.ncl">https://www.ncl.ucar.edu/Applications/Scripts/taylor_metrics_table.ncl</a><br></div><div><br></div><div>The line that is causing your issue is this line:<div>gsn_text_ndc(wks,sprintf("%4.3f",values(icase,iseas,im)),ixtbox,iytbox, mv_tRes)     <br><div><br></div><div>Following Michael's suggestion, you could put in an if statement like this:</div><div>if (values(icase,iseas,im).gt.100000) then</div><div>   gsn_text_ndc(wks,sprintf("%4.2g",values(icase,iseas,im)),ixtbox,iytbox, mv_tRes)     </div><div>else</div><div>   gsn_text_ndc(wks,sprintf("%4.3f",values(icase,iseas,im)),ixtbox,iytbox, mv_tRes)     </div><div>end if   </div><div><br></div><div>Hope that helps!</div><div>Adam</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 12, 2017 at 7:17 AM, Beáta Szabó-Takács <span dir="ltr"><<a href="mailto:szabo.b@czechglobe.cz" target="_blank">szabo.b@czechglobe.cz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear Michael,<br>
Thank you for your response. Unfortunately it does not work because the values can be only numeric in taylor_metric_table.ncl.<br>
Best regards,<br>
Beáta<br>
<br>
-----Original Message-----<br>
From: Michael Langguth [mailto:<a href="mailto:mlangguth@uni-bonn.de" target="_blank">mlangguth@uni-bonn.de</a>]<br>
Sent: Tuesday, September 12, 2017 2:32 PM<br>
To: Beáta Szabó-Takács <<a href="mailto:szabo.b@czechglobe.cz" target="_blank">szabo.b@czechglobe.cz</a>>; <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
Subject: Re: [ncl-talk] how can I write large float value with e scientific notation?<br>
<br>
Dear Beáta,<br>
<br>
I suppose, the sprintf-function can help you here. It's a function to convert floats (and doubles) to formatted strings.<br>
For example, an appropriate format for your bias-values may be<br>
<br>
sprintf("%10.5g",bias)<br>
<br>
where the exponential notation is used as long as the precision being defined by the number 5.<br>
<br>
For further examples, you can also consult the attached<br>
link:<br>
<a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/sprintf.shtml" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/Docum<wbr>ent/Functions/Built-in/sprintf<wbr>.shtml</a><br>
<br>
Best regards<br>
Michael<br>
<br>
  On Tue, 12 Sep 2017 11:18:59 +0000<br>
  Beáta Szabó-Takács <<a href="mailto:szabo.b@czechglobe.cz" target="_blank">szabo.b@czechglobe.cz</a>> wrote:<br>
> Dear NCL Users,<br>
> I created a table about precipitation bias values in JJA and DJF with<br>
>taylor_metric_table.ncl. I changed the bias calculation to<br>
> bias    = tmean-rmean in taylor_stats.ncl. I got a very<br>
>large bias value in HIRHAM model in JJA and this value covers the bias<br>
>value in DJF column on the table. I attached the table. The values are<br>
>in float form. Could someone let me know how I can write the large<br>
>float number with scientific notation? I mean if the value is e.g<br>
>larger than 100000 it will be written 1e5.<br>
> Thank you for your help in advance!<br>
> Beáta<br>
<br>
______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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/mailma<wbr>n/listinfo/ncl-talk</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail-m_4547829293881008021gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist,  </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/<wbr>asphilli/</a>   </font></span><span><font color="#888888"><a href="tel:(303)%20497-1726" value="+13034971726" target="_blank">303-497-1726</a> </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</div></div></div></div>