<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi Dennis,
<div class=""><br class="">
</div>
<div class="">Ah yes. That works. </div>
<div class=""><br class="">
</div>
<div class="">Cheers,</div>
<div class="">-Jonathan</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Apr 8, 2021, at 5:55 PM, Dennis Shea <<a href="mailto:shea@ucar.edu" class="">shea@ucar.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class=""><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/sprintf.shtml" class=""><b class="">sprintf</b></a></div>
<div class=""><br class="">
</div>
<div class="">Hopefully, that will work for you.<br class="">
</div>
<br class="">
</div>
<br class="">
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Thu, Apr 8, 2021 at 4:11 AM Buzan, Jonathan via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu" class="">ncl-talk@mailman.ucar.edu</a>> wrote:<br class="">
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hi NCL-Talk,<br class="">
<br class="">
I am attempting to print a variable on a plot, and I am using the decimalPlaces function. However, the results are not applied the same way. Am I doing something wrong?
<br class="">
<br class="">
Cheers,<br class="">
-Jonathan<br class="">
<br class="">
<br class="">
Code snippet:<br class="">
EU_R = decimalPlaces(EU_17(0),2,False)<br class="">
EU_R2 = decimalPlaces(EU_17(1),2,False)<br class="">
EU_B = decimalPlaces(EU_17(2),2,False)<br class="">
EU_M = decimalPlaces(EU_17(3),2,False)<br class="">
print(EU_R)<br class="">
print(EU_R2)<br class="">
print(EU_B)<br class="">
print(EU_M)<br class="">
print(EU_17(3))<br class="">
<br class="">
Results:<br class="">
Variable: EU_R<br class="">
Type: double<br class="">
Total Size: 8 bytes<br class="">
1 values<br class="">
Number of Dimensions: 1<br class="">
Dimensions and sizes: [1]<br class="">
Coordinates: <br class="">
Number Of Attributes: 1<br class="">
_FillValue : 9.969209968386869e+36<br class="">
(0) 0.8100000000000001<br class="">
<br class="">
<br class="">
Variable: EU_R2<br class="">
Type: double<br class="">
Total Size: 8 bytes<br class="">
1 values<br class="">
Number of Dimensions: 1<br class="">
Dimensions and sizes: [1]<br class="">
Coordinates: <br class="">
Number Of Attributes: 1<br class="">
_FillValue : 9.969209968386869e+36<br class="">
(0) 0.67<br class="">
<br class="">
<br class="">
Variable: EU_B<br class="">
Type: double<br class="">
Total Size: 8 bytes<br class="">
1 values<br class="">
Number of Dimensions: 1<br class="">
Dimensions and sizes: [1]<br class="">
Coordinates: <br class="">
Number Of Attributes: 1<br class="">
_FillValue : 9.969209968386869e+36<br class="">
(0) 111.46<br class="">
<br class="">
<br class="">
Variable: EU_M<br class="">
Type: double<br class="">
Total Size: 8 bytes<br class="">
1 values<br class="">
Number of Dimensions: 1<br class="">
Dimensions and sizes: [1]<br class="">
Coordinates: <br class="">
Number Of Attributes: 1<br class="">
_FillValue : 9.969209968386869e+36<br class="">
(0) 0.6899999999999999<br class="">
<br class="">
<br class="">
Variable: EU_17 (subsection)<br class="">
Type: double<br class="">
Total Size: 8 bytes<br class="">
1 values<br class="">
Number of Dimensions: 1<br class="">
Dimensions and sizes: [1]<br class="">
Coordinates: <br class="">
Number Of Attributes: 1<br class="">
_FillValue : 9.969209968386869e+36<br class="">
(0) 0.6903772429834589<br class="">
<br class="">
_______________________________________________<br class="">
ncl-talk mailing list<br class="">
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank" class="">ncl-talk@mailman.ucar.edu</a><br class="">
List instructions, subscriber options, unsubscribe:<br class="">
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank" class="">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br class="">
</blockquote>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>