<div dir="ltr">Hi Muhammed:<div><br></div><div>Aren't the paths /media....?</div><div><br></div><div>You wrote media without the /</div><div><br></div><div>Barry</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 21, 2016 at 9:09 AM, Muhammad Omer Mughal <span dir="ltr"><<a href="mailto:m.mughal1@postgrad.curtin.edu.au" target="_blank">m.mughal1@postgrad.curtin.edu.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div id="m_-5878151939402306021divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi Bary </p>
<p><br>
</p>
<p><b style="font-family:tahoma;font-size:13px"> The file paths are </b></p>
<p><b style="font-family:tahoma;font-size:13px"><br>
</b></p>
<p><b style="font-family:tahoma;font-size:13px">media/mughal/Seagate/ECMWF_<wbr>WRF_RUNS2/run6/wrfout_d04*</b><br>
</p>
<p><b style="font-family:tahoma;font-size:13px">media/mughal/Seagate/ECMWF_<wbr>WRF_RUNS2/run7/wrfout_d04*</b><br>
</p>
<p><b style="font-family:tahoma;font-size:13px"><b style="font-family:tahoma;font-size:13px">media/mughal/Seagate/ECMWF_<wbr>WRF_RUNS2/run8/wrfout_d04*</b><br>
</b></p>
<p><b style="font-family:tahoma;font-size:13px"><b style="font-family:tahoma;font-size:13px"><b style="font-family:tahoma;font-size:13px">media/mughal/Seagate/ECMWF_<wbr>WRF_RUNS2/run6/wrfout_d04*</b><br>
</b></b></p>
<p><br>
</p>
<p>Please let me know how to fix the error. I would be grateful to you for your help.</p><span class="">
<p><br>
</p>
<p><br>
</p>
<div id="m_-5878151939402306021Signature">
<div id="m_-5878151939402306021divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px"><b><br>
</b></div>
<div style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15.4545450210571px;margin:0px;background-color:rgb(255,255,255)">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font face="Arial Bold" size="2" color="#1F497D"><span style="font-size:11pt">Muhammad Omer Mughal</span></font></span></font></div>
<div style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15.4545450210571px;margin:0px;background-color:rgb(255,255,255)">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font face="Arial Bold" size="2" color="#1F497D"><span style="font-size:11pt">MSc BSc Mechanical Engineering</span></font><font face="Arial,sans-serif" size="1" color="#1F497D"><span style="font-size:8pt"><br>
</span></font><font face="Arial Bold" size="2" color="#AB8303"><span style="font-size:9pt">PhD Research Scholar</span></font></span></font></div>
<div style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15.4545450210571px;margin:0px;background-color:rgb(255,255,255)">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font face="Arial Bold" size="2" color="#AB8303"><span style="font-size:9pt">Remote Sensing and Satellite Research Group</span></font></span></font></div>
<div style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15.4545450210571px;margin:0px;background-color:rgb(255,255,255)">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font face="Arial Bold" size="2" color="#AB8303"><span style="font-size:9pt">Department of Imaging and Applied Physics</span></font><font face="Arial Bold" size="2" color="#AB8303"><span style="font-size:9pt"><br>
Curtin University</span></font><font face="Arial Bold" size="2" color="#AB8303"><span style="font-size:9pt"><br>
</span></font><font face="Calibri,sans-serif" size="2" color="#1F497D"><span style="font-size:11pt"><br>
</span></font><font face="Arial Bold" size="2" color="#1F497D"><span style="font-size:9pt">Curtin University</span></font><font face="Arial Bold" size="2" color="#1F497D"><span style="font-size:9pt"><br>
</span></font><font face="Arial Bold" size="2" color="#AB8303"><span style="font-size:9pt">Tel |</span></font><font face="Arial Bold" size="2" color="#1F497D"><span style="font-size:9pt"> </span></font><font face="Arial,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt">+61
8 9266 7962</span></font><font face="Calibri,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt"> </span></font><font face="Calibri,sans-serif" size="1" color="#1F497D"><span style="font-size:7pt"><br>
</span></font><font face="Arial Bold" size="2" color="#AB8303"><span style="font-size:9pt">Fax |</span></font><font face="Arial Bold" size="2" color="#1F497D"><span style="font-size:9pt"> </span></font><font face="Arial,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt">+61
8 9266 2377</span></font><font face="Arial,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt"><br>
</span></font><font face="Arial Bold" size="2" color="#AB8303"><span style="font-size:9pt">Mobile |</span></font><font face="Calibri,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt"> </span></font><font face="Arial,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt">0470 237 525</span></font><font face="Calibri,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt"> </span></font><font face="Calibri,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt"><br>
</span></font><font face="Calibri,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt"><br>
</span></font><font face="Arial Bold" size="2" color="#AB8303"><span style="font-size:9pt">Email |</span></font><font face="Calibri,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt"> </span></font><a href="mailto:m.lynch@curtin.edu.au" id="m_-5878151939402306021LPNoLP" target="_blank"><font face="Arial,sans-serif" size="2"><span style="font-size:9pt">m.mughal1@postgrad.curtin.<wbr>edu.au</span></font></a><font face="Arial,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt"> </span></font><font face="Arial,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt"><br>
</span></font><font face="Arial Bold" size="2" color="#AB8303"><span style="font-size:9pt">Web |</span></font><font face="Calibri,sans-serif" size="2" color="#AB8303"><span style="font-size:9pt"> </span></font><a href="http://curtin.edu.au/" id="m_-5878151939402306021LPNoLP" target="_blank"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Arial,sans-serif" size="2"><span style="font-size:9pt">http://curtin.edu.au</span></font></span></font></a><font face="Arial,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt"><br>
</span></font><font face="Calibri,sans-serif" size="1" color="#1F497D"><span style="font-size:7pt"><br>
</span></font></span></font></div>
<div style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15.4545450210571px;margin:0px;background-color:rgb(255,255,255)">
<font face="Calibri,sans-serif" size="1" color="#1F497D"><span style="font-size:6pt"></span></font><font face="Arial,sans-serif" size="1" color="#1F497D"><span style="font-size:6pt">Curtin University is a trademark of Curtin University of Technology. </span></font><br>
</div>
<div style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15.4545450210571px;margin:0px;background-color:rgb(255,255,255)">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font face="Arial,sans-serif" size="1" color="#1F497D"><span style="font-size:6pt">CRICOS Provider Code 00301J (WA), 02637B (NSW)</span></font></span></font></div>
<div style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15.4545450210571px;margin:0px;background-color:rgb(255,255,255)">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font face="Arial,sans-serif" size="1" color="#1F497D"><span style="font-size:6pt"><br>
</span></font></span></font></div>
<div style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15.4545450210571px;margin:0px;background-color:rgb(255,255,255)">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font face="Arial,sans-serif" size="1" color="#1F497D"><span style="font-size:6pt"><br>
</span></font></span></font></div>
</div>
</div>
</div>
</span></div>
<hr style="display:inline-block;width:98%">
<div id="m_-5878151939402306021divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>><br>
<b>Sent:</b> Friday, 21 October 2016 1:51:27 PM<br>
<b>To:</b> Muhammad Omer Mughal<br>
<b>Cc:</b> Dennis Shea; <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><div><div class="h5"><br>
<b>Subject:</b> Re: [ncl-talk] Script for multiple directories and multiple locations</div></div></font>
<div> </div>
</div><div><div class="h5">
<div>
<div dir="ltr">Dear Muhammad:
<div><br>
</div>
<div>The error indicates that the program is not finding the file.</div>
<div><br>
</div>
<div>If you ls -ltr <b style="font-size:13px;color:rgb(0,0,0);font-family:tahoma">/media/mughal/Seagate/<wbr>ECMWF_WRF_RUNS2/run6wrfout_d</b></div>
<div><b style="font-size:13px;color:rgb(0,0,0);font-family:tahoma"><br>
</b></div>
<div><span style="font-size:13px;color:rgb(0,0,0);font-family:tahoma">do you see the file?</span></div>
<div><span style="font-size:13px;color:rgb(0,0,0);font-family:tahoma"><br>
</span></div>
<div><span style="font-size:13px;color:rgb(0,0,0);font-family:tahoma">My guess is no.</span></div>
<div><span style="font-size:13px;color:rgb(0,0,0);font-family:tahoma"><br>
</span></div>
<div><span style="font-size:13px;color:rgb(0,0,0);font-family:tahoma">So, the anser to your question is how to set your NCL code to indicate the correct path and file. </span></div>
<div><span style="font-size:13px;color:rgb(0,0,0);font-family:tahoma"><br>
</span></div>
<div><span style="font-size:13px;color:rgb(0,0,0);font-family:tahoma">What are the path directories and file names you want to read?</span></div>
<div><span style="font-size:13px;color:rgb(0,0,0);font-family:tahoma"><br>
</span></div>
<div><span style="font-size:13px;color:rgb(0,0,0);font-family:tahoma">Barry</span></div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Oct 21, 2016 at 7:03 AM, Muhammad Omer Mughal <span dir="ltr">
<<a href="mailto:m.mughal1@postgrad.curtin.edu.au" target="_blank">m.mughal1@postgrad.curtin.<wbr>edu.au</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div id="m_-5878151939402306021m_-6058372929680603233divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi Dennis </p>
<p><br>
</p>
<p>I have made the changes in the attached script. I am getting the following error. Can you or any one at NCL select a solution to my problem.</p>
<p><br>
</p>
<div id="m_-5878151939402306021m_-6058372929680603233Signature">
<div id="m_-5878151939402306021m_-6058372929680603233divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px"><b>
<div>Variable: dirWRF<br>
Type: string<br>
Total Size: 32 bytes<br>
4 values<br>
Number of Dimensions: 1<br>
Dimensions and sizes: [4]<br>
Coordinates: <br>
(0) /media/mughal/Seagate/ECMWF_WR<wbr>F_RUNS2/run6<br>
(1) /media/mughal/Seagate/ECMWF_WR<wbr>F_RUNS2/run7<br>
(2) /media/mughal/Seagate/ECMWF_WR<wbr>F_RUNS2/run8<br>
(3) /media/mughal/Seagate/ECMWF_WR<wbr>F_RUNS2/run9<br>
fatal:["FileSupport.c":2859]:_<wbr>NclVerifyFile: Requested file </media/mughal/Seagate/ECMWF_W<wbr>RF_RUNS2/run6wrfout_d04*> or </media/mughal/Seagate/ECMWF_W<wbr>RF_RUNS2/run6wrfout_d> does not exist<br>
<br>
fatal:["FileSupport.c":3052]:(<wbr>/media/mughal/Seagate/ECMWF_WR<wbr>F_RUNS2/run6wrfout_d04*) has no file extension, can't determine type of file to open<br>
fatal:["FileSupport.c":2859]:_<wbr>NclVerifyFile: Requested file </media/mughal/Seagate/ECMWF_W<wbr>RF_RUNS2/run7wrfout_d04*> or </media/mughal/Seagate/ECMWF_W<wbr>RF_RUNS2/run7wrfout_d> does not exist<br>
<br>
fatal:["FileSupport.c":3052]:(<wbr>/media/mughal/Seagate/ECMWF_WR<wbr>F_RUNS2/run7wrfout_d04*) has no file extension, can't determine type of file to open<br>
fatal:["FileSupport.c":2859]:_<wbr>NclVerifyFile: Requested file </media/mughal/Seagate/ECMWF_W<wbr>RF_RUNS2/run8wrfout_d04*> or </media/mughal/Seagate/ECMWF_W<wbr>RF_RUNS2/run8wrfout_d> does not exist<br>
<br>
fatal:["FileSupport.c":3052]:(<wbr>/media/mughal/Seagate/ECMWF_WR<wbr>F_RUNS2/run8wrfout_d04*) has no file extension, can't determine type of file to open<br>
fatal:["FileSupport.c":2859]:_<wbr>NclVerifyFile: Requested file </media/mughal/Seagate/ECMWF_W<wbr>RF_RUNS2/run9wrfout_d04*> or </media/mughal/Seagate/ECMWF_W<wbr>RF_RUNS2/run9wrfout_d> does not exist<br>
<br>
fatal:["FileSupport.c":3052]:(<wbr>/media/mughal/Seagate/ECMWF_WR<wbr>F_RUNS2/run9wrfout_d04*) has no file extension, can't determine type of file to open<br>
fatal:No valid instance of variable Times found in file list<br>
fatal:["Execute.c":7743]:Execu<wbr>te: Error occurred at or near line 2177 in file $NCARG_ROOT/lib/ncarg/nclscrip<wbr>ts/wrf/WRFUserARW.ncl<br>
<br>
fatal:["Execute.c":7743]:Execu<wbr>te: Error occurred at or near line 18 in file wrf_script_r4</div>
<br>
</b></div>
<span>
<div style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15.4545450210571px;margin:0px;background-color:rgb(255,255,255)">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font face="Arial Bold" size="2" color="#1F497D"><span style="font-size:11pt">Muhammad Omer Mughal</span></font></span></font></div>
<div style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15.4545450210571px;margin:0px;background-color:rgb(255,255,255)">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font face="Arial Bold" size="2" color="#1F497D"><span style="font-size:11pt">MSc BSc Mechanical Engineering</span></font><font face="Arial,sans-serif" size="1" color="#1F497D"><span style="font-size:8pt"><br>
</span></font><font face="Arial Bold" size="2" color="#AB8303"><span style="font-size:9pt">PhD Research Scholar</span></font></span></font></div>
<div style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15.4545450210571px;margin:0px;background-color:rgb(255,255,255)">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font face="Arial Bold" size="2" color="#AB8303"><span style="font-size:9pt">Remote Sensing and Satellite Research Group</span></font></span></font></div>
<div style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15.4545450210571px;margin:0px;background-color:rgb(255,255,255)">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font face="Arial Bold" size="2" color="#AB8303"><span style="font-size:9pt">Department of Imaging and Applied Physics</span></font><font face="Arial Bold" size="2" color="#AB8303"><span style="font-size:9pt"><br>
Curtin University</span></font><font face="Arial Bold" size="2" color="#AB8303"><span style="font-size:9pt"><br>
</span></font><font face="Calibri,sans-serif" size="2" color="#1F497D"><span style="font-size:11pt"><br>
</span></font><font face="Arial Bold" size="2" color="#1F497D"><span style="font-size:9pt">Curtin University</span></font><font face="Arial Bold" size="2" color="#1F497D"><span style="font-size:9pt"><br>
</span></font><font face="Arial Bold" size="2" color="#AB8303"><span style="font-size:9pt">Tel |</span></font><font face="Arial Bold" size="2" color="#1F497D"><span style="font-size:9pt"> </span></font><font face="Arial,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt">+61
8 9266 7962</span></font><font face="Calibri,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt"> </span></font><font face="Calibri,sans-serif" size="1" color="#1F497D"><span style="font-size:7pt"><br>
</span></font><font face="Arial Bold" size="2" color="#AB8303"><span style="font-size:9pt">Fax |</span></font><font face="Arial Bold" size="2" color="#1F497D"><span style="font-size:9pt"> </span></font><font face="Arial,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt">+61
8 9266 2377</span></font><font face="Arial,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt"><br>
</span></font><font face="Arial Bold" size="2" color="#AB8303"><span style="font-size:9pt">Mobile |</span></font><font face="Calibri,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt"> </span></font><font face="Arial,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt">0470 237 525</span></font><font face="Calibri,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt"> </span></font><font face="Calibri,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt"><br>
</span></font><font face="Calibri,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt"><br>
</span></font><font face="Arial Bold" size="2" color="#AB8303"><span style="font-size:9pt">Email |</span></font><font face="Calibri,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt"> </span></font><a href="mailto:m.lynch@curtin.edu.au" id="m_-5878151939402306021m_-6058372929680603233LPNoLP" target="_blank"><font face="Arial,sans-serif" size="2"><span style="font-size:9pt">m.mughal1@postgrad.curtin.ed<wbr>u.au</span></font></a><font face="Arial,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt"> </span></font><font face="Arial,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt"><br>
</span></font><font face="Arial Bold" size="2" color="#AB8303"><span style="font-size:9pt">Web |</span></font><font face="Calibri,sans-serif" size="2" color="#AB8303"><span style="font-size:9pt"> </span></font><a href="http://curtin.edu.au/" id="m_-5878151939402306021m_-6058372929680603233LPNoLP" target="_blank"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Arial,sans-serif" size="2"><span style="font-size:9pt">http://curtin.edu.au</span></font></span></font></a><font face="Arial,sans-serif" size="2" color="#1F497D"><span style="font-size:9pt"><br>
</span></font><font face="Calibri,sans-serif" size="1" color="#1F497D"><span style="font-size:7pt"><br>
</span></font></span></font></div>
<div style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15.4545450210571px;margin:0px;background-color:rgb(255,255,255)">
<font face="Calibri,sans-serif" size="1" color="#1F497D"><span style="font-size:6pt"></span></font><font face="Arial,sans-serif" size="1" color="#1F497D"><span style="font-size:6pt">Curtin University is a trademark of Curtin University of Technology. </span></font><br>
</div>
<div style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15.4545450210571px;margin:0px;background-color:rgb(255,255,255)">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font face="Arial,sans-serif" size="1" color="#1F497D"><span style="font-size:6pt">CRICOS Provider Code 00301J (WA), 02637B (NSW)</span></font></span></font></div>
<div style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15.4545450210571px;margin:0px;background-color:rgb(255,255,255)">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font face="Arial,sans-serif" size="1" color="#1F497D"><span style="font-size:6pt"><br>
</span></font></span></font></div>
<div style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15.4545450210571px;margin:0px;background-color:rgb(255,255,255)">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font face="Arial,sans-serif" size="1" color="#1F497D"><span style="font-size:6pt"><br>
</span></font></span></font></div>
</span></div>
</div>
</div>
</div>
<span>
<hr style="display:inline-block;width:98%">
<div id="m_-5878151939402306021m_-6058372929680603233divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>><br>
<b>Sent:</b> Thursday, 20 October 2016 1:38:49 AM<br>
<b>To:</b> Muhammad Omer Mughal<br>
<b>Cc:</b> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
<b>Subject:</b> Re: [ncl-talk] Script for multiple directories and multiple locations</font>
<div> </div>
</div>
</span>
<div>
<div class="m_-5878151939402306021h5">
<div>
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>The question is not clear (... a least to me...)<br>
<br>
---<br>
6 ; Make a list of all files we are interested in<br>
7 DATADir = "./"<br>
8 FILES = systemfunc (" ls -1 " + DATADir + "wrfout_d04* ")<br>
---<br>
<br>
<a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/systemfunc.shtml" target="_blank">http://www.ncl.ucar.edu/Docume<wbr>nt/Functions/Built-in/systemfu<wbr>nc.shtml</a><br>
</div>
Look at Example 6<br>
<br>
---<br>
</div>
Other options based on the Example 6 which has directories a1, a2, ..., a20<br>
<br>
DATADir = "/Some/dir/with/WRF/data/"<br>
cmd = "find " + DATADir + "a* -type d -print" <br>
dirWRF = systemfunc(cmd)<br>
</div>
<div>print(dirWRF)<br>
</div>
<div><br>
</div>
n_dirWRF = dimsizes(dirWRF)<br>
<br>
</div>
do n=0,n_dirWRF- 1 ; loop over directories<br>
</div>
<div><br>
f = addfiles(dirWrf(n)+"wrfout_d04<wbr>*nc", "r")<br>
:<br>
</div>
end do<br>
<br>
</div>
=====<br>
<br>
</div>
dirWRF = str_split(systemfunc("echo "+ DATADir), " /")<br>
</div>
print(dirWRF)<br>
<br>
=====<br>
</div>
You can experiment<br>
<div>
<div>
<div>
<div>
<div>
<div>
<div><br>
<div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Oct 17, 2016 at 9:12 PM, Muhammad Omer Mughal <span dir="ltr">
<<a href="mailto:m.mughal1@postgrad.curtin.edu.au" target="_blank">m.mughal1@postgrad.curtin.edu<wbr>.au</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 id="m_-5878151939402306021m_-6058372929680603233m_-3736560129715140567divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi </p>
<p><br>
</p>
<p>Kindly see the attached script</p>
<p><br>
</p>
<p>On the line number 7 I need to add multiple directories containing the wrfoutdo4 file and </p>
<p><br>
</p>
<p>on line number 26 I need want to write a loop that can change locations one by one and for each location gives the output as wind speed. </p>
<p>I would be grateful for your help and support.</p>
<p><br>
</p>
<div id="m_-5878151939402306021m_-6058372929680603233m_-3736560129715140567Signature">
<div id="m_-5878151939402306021m_-6058372929680603233m_-3736560129715140567divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px"><b><br>
</b></div>
<div style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15.4545450210571px;margin:0px;background-color:rgb(255,255,255)">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font face="Arial Bold" color="#1F497D" size="2"><span style="font-size:11pt">Muhammad Omer Mughal</span></font></span></font></div>
<div style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15.4545450210571px;margin:0px;background-color:rgb(255,255,255)">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font face="Arial Bold" color="#1F497D" size="2"><span style="font-size:11pt">MSc BSc Mechanical Engineering</span></font><font face="Arial,sans-serif" color="#1F497D" size="1"><span style="font-size:8pt"><br>
</span></font><font face="Arial Bold" color="#AB8303" size="2"><span style="font-size:9pt">PhD Research Scholar</span></font></span></font></div>
<div style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15.4545450210571px;margin:0px;background-color:rgb(255,255,255)">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font face="Arial Bold" color="#AB8303" size="2"><span style="font-size:9pt">Remote Sensing and Satellite Research Group</span></font></span></font></div>
<div style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15.4545450210571px;margin:0px;background-color:rgb(255,255,255)">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font face="Arial Bold" color="#AB8303" size="2"><span style="font-size:9pt">Department of Imaging and Applied Physics</span></font><font face="Arial Bold" color="#AB8303" size="2"><span style="font-size:9pt"><br>
Curtin University</span></font><font face="Arial Bold" color="#AB8303" size="2"><span style="font-size:9pt"><br>
</span></font><font face="Calibri,sans-serif" color="#1F497D" size="2"><span style="font-size:11pt"><br>
</span></font><font face="Arial Bold" color="#1F497D" size="2"><span style="font-size:9pt">Curtin University</span></font><font face="Arial Bold" color="#1F497D" size="2"><span style="font-size:9pt"><br>
</span></font><font face="Arial Bold" color="#AB8303" size="2"><span style="font-size:9pt">Tel |</span></font><font face="Arial Bold" color="#1F497D" size="2"><span style="font-size:9pt"> </span></font><font face="Arial,sans-serif" color="#1F497D" size="2"><span style="font-size:9pt">+61
8 9266 7962</span></font><font face="Calibri,sans-serif" color="#1F497D" size="2"><span style="font-size:9pt"> </span></font><font face="Calibri,sans-serif" color="#1F497D" size="1"><span style="font-size:7pt"><br>
</span></font><font face="Arial Bold" color="#AB8303" size="2"><span style="font-size:9pt">Fax |</span></font><font face="Arial Bold" color="#1F497D" size="2"><span style="font-size:9pt"> </span></font><font face="Arial,sans-serif" color="#1F497D" size="2"><span style="font-size:9pt">+61
8 9266 2377</span></font><font face="Arial,sans-serif" color="#1F497D" size="2"><span style="font-size:9pt"><br>
</span></font><font face="Arial Bold" color="#AB8303" size="2"><span style="font-size:9pt">Mobile |</span></font><font face="Calibri,sans-serif" color="#1F497D" size="2"><span style="font-size:9pt"> </span></font><font face="Arial,sans-serif" color="#1F497D" size="2"><span style="font-size:9pt">0470 237 525</span></font><font face="Calibri,sans-serif" color="#1F497D" size="2"><span style="font-size:9pt"> </span></font><font face="Calibri,sans-serif" color="#1F497D" size="2"><span style="font-size:9pt"><br>
</span></font><font face="Calibri,sans-serif" color="#1F497D" size="2"><span style="font-size:9pt"><br>
</span></font><font face="Arial Bold" color="#AB8303" size="2"><span style="font-size:9pt">Email |</span></font><font face="Calibri,sans-serif" color="#1F497D" size="2"><span style="font-size:9pt"> </span></font><a href="mailto:m.lynch@curtin.edu.au" id="m_-5878151939402306021m_-6058372929680603233m_-3736560129715140567LPNoLP" target="_blank"><font face="Arial,sans-serif" size="2"><span style="font-size:9pt">m.mughal1@postgrad.curtin.ed<wbr>u.au</span></font></a><font face="Arial,sans-serif" color="#1F497D" size="2"><span style="font-size:9pt"> </span></font><font face="Arial,sans-serif" color="#1F497D" size="2"><span style="font-size:9pt"><br>
</span></font><font face="Arial Bold" color="#AB8303" size="2"><span style="font-size:9pt">Web |</span></font><font face="Calibri,sans-serif" color="#AB8303" size="2"><span style="font-size:9pt"> </span></font><a href="http://curtin.edu.au/" id="m_-5878151939402306021m_-6058372929680603233m_-3736560129715140567LPNoLP" target="_blank"><font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Arial,sans-serif" size="2"><span style="font-size:9pt">http://curtin.edu.au</span></font></span></font></a><font face="Arial,sans-serif" color="#1F497D" size="2"><span style="font-size:9pt"><br>
</span></font><font face="Calibri,sans-serif" color="#1F497D" size="1"><span style="font-size:7pt"><br>
</span></font></span></font></div>
<div style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15.4545450210571px;margin:0px;background-color:rgb(255,255,255)">
<font face="Calibri,sans-serif" color="#1F497D" size="1"><span style="font-size:6pt"></span></font><font face="Arial,sans-serif" color="#1F497D" size="1"><span style="font-size:6pt">Curtin University is a trademark of Curtin University of Technology. </span></font><br>
</div>
<div style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15.4545450210571px;margin:0px;background-color:rgb(255,255,255)">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font face="Arial,sans-serif" color="#1F497D" size="1"><span style="font-size:6pt">CRICOS Provider Code 00301J (WA), 02637B (NSW)</span></font></span></font></div>
<div style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15.4545450210571px;margin:0px;background-color:rgb(255,255,255)">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font face="Arial,sans-serif" color="#1F497D" size="1"><span style="font-size:6pt"><br>
</span></font></span></font></div>
<div style="color:rgb(33,33,33);font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif;font-size:15.4545450210571px;margin:0px;background-color:rgb(255,255,255)">
<font face="Times New Roman,serif" size="3"><span style="font-size:12pt"><font face="Arial,sans-serif" color="#1F497D" size="1"><span style="font-size:6pt"><br>
</span></font></span></font></div>
</div>
</div>
</div>
</div>
</div>
<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>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
<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>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="m_-5878151939402306021gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">Barry H. Lynn, Ph.D
<div>
<div>Senior Lecturer,</div>
<div>
<div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)">
<span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)">
<span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)">
</div>
<span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)">
<span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div>
</div>
<div><span style="color:rgb(136,136,136)"><br>
</span></div>
<div>C.E.O, Weather It Is, LTD<br>
Weather and Climate Focus<br>
<a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>
Jerusalem, Israel<br>
Local: 02 930 9525<br>
Cell: 054 7 231 170<br>
Int-IS: x972 2 930 9525<br>
US <a href="tel:914%20432%203108" value="+19144323108" target="_blank">914 432 3108</a><br>
</div>
</div>
</div>
</div>
</div>
</div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br>US 914 432 3108<br></div></div></div>
</div>