<div dir="ltr">Hi Sundar J,<div><br></div><div>It appears your WRF output files have multiple times per file. The error message is complaining about this line:</div><div><br></div><div>day = <span class="gmail-s1">systemfunc</span>("echo "+times +"|cut -c9-10")<br></div><div><p class="gmail-p1">Since the times variable is an array that has multiple times, the statement can't run. You'll need to do another loop around the code that's parsing the day, month, year, hr values to handle one time value at a time.</p><p class="gmail-p1">do i = 0, numTimesPerFile-1</p><p class="gmail-p1"> day = systemfunc("echo "+ times(i) + "|cut -c9-10")</p><p class="gmail-p1"> ...</p><p class="gmail-p1">end do</p><p class="gmail-p1">Hope this helps,</p><p class="gmail-p1">Bill</p><p class="gmail-p1"><br></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jan 8, 2017 at 2:04 AM, Sundar J <span dir="ltr"><<a href="mailto:wrf.guy@gmail.com" target="_blank">wrf.guy@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"><div><div><div>Hi all,<br><br></div>This is my first try to generate MSLP chart with ncl. With the same data I used to plot mslp using python earlier. Therefore, there is no issue with the wrfout file. <br><br>I am on Ubuntu 6.10 with ncl version 6.3.0 installed (from the repo). I had a script which does the plotting of sea level pressure. Evertime I run the script I complain about the requirement of 'element'. The complete erroe message produced in terminal is:-<br><br> Copyright (C) 1995-2015 - All Rights Reserved<br> University Corporation for Atmospheric Research<br> NCAR Command Language Version 6.3.0<br> The use of this software is governed by a License Agreement.<br> See <a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/</a> for more details.<br><br><br>Variable: times<br>Type: string<br>Total Size: 104 bytes<br> 13 values<br>Number of Dimensions: 1<br>Dimensions and sizes: [13]<br>Coordinates: <br>Number Of Attributes: 2<br> description : times in file<br> _FillValue : missing<br>(0) 2016-03-31_00:00:00<br>(1) 2016-03-31_06:00:00<br>(2) 2016-03-31_12:00:00<br>(3) 2016-03-31_18:00:00<br>(4) 2016-04-01_00:00:00<br>(5) 2016-04-01_06:00:00<br>(6) 2016-04-01_12:00:00<br>(7) 2016-04-01_18:00:00<br>(8) 2016-04-02_00:00:00<br>(9) 2016-04-02_06:00:00<br>(10) 2016-04-02_12:00:00<br>(11) 2016-04-02_18:00:00<br>(12) 2016-04-03_00:00:00<br><br>Variable: times<br>Type: string<br>Total Size: 104 bytes<br> 13 values<br>Number of Dimensions: 1<br>Dimensions and sizes: [13]<br>Coordinates: <br>Number Of Attributes: 2<br> _FillValue : missing<br> description : times in file<br>fatal:Number of elements of dimension (0) of argument (0) is (13) in function (systemfunc), expected (1) elements<br>fatal:["Execute.c":8575]:<wbr>Execute: Error occurred at or near line 50 in file sea-levs.ncl<br><br><br></div>The script I used is attached for your reference. It would be nice if any one can point me in the right direction to solve the issue. I am unable to move forward beyond this issue.<br><br></div>Regards.<br></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>