<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@DengXian";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.m-1142967708843732713gmail-highlight
        {mso-style-name:m_-1142967708843732713gmail-highlight;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.m-1142967708843732713m-1300245139167623613m5930006210116361008hoenzb
        {mso-style-name:m_-1142967708843732713m_-1300245139167623613m_5930006210116361008hoenzb;}
span.m-1142967708843732713m-1300245139167623613m5930006210116361008m-6708397670434253343m-5808586647480170277hoenzb
        {mso-style-name:m_-1142967708843732713m_-1300245139167623613m_5930006210116361008m_-6708397670434253343m_-5808586647480170277hoenzb;}
span.m-1142967708843732713m-1300245139167623613m5930006210116361008m-6708397670434253343m-5808586647480170277m372109147063714032m8302767070546682313gmail-s1
        {mso-style-name:m_-1142967708843732713m_-1300245139167623613m_5930006210116361008m_-6708397670434253343m_-5808586647480170277m_372109147063714032m_8302767070546682313gmail-s1;}
span.m-1142967708843732713m-1300245139167623613m5930006210116361008m-6708397670434253343m-5808586647480170277m372109147063714032m8302767070546682313gmail-s2
        {mso-style-name:m_-1142967708843732713m_-1300245139167623613m_5930006210116361008m_-6708397670434253343m_-5808586647480170277m_372109147063714032m_8302767070546682313gmail-s2;}
p.m-1142967708843732713m-1300245139167623613m5930006210116361008m-6708397670434253343m-5808586647480170277m372109147063714032m8302767070546682313gmail-p1, li.m-1142967708843732713m-1300245139167623613m5930006210116361008m-6708397670434253343m-5808586647480170277m372109147063714032m8302767070546682313gmail-p1, div.m-1142967708843732713m-1300245139167623613m5930006210116361008m-6708397670434253343m-5808586647480170277m372109147063714032m8302767070546682313gmail-p1
        {mso-style-name:m_-1142967708843732713m_-1300245139167623613m_5930006210116361008m_-6708397670434253343m_-5808586647480170277m_372109147063714032m_8302767070546682313gmail-p1;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.m-1142967708843732713m-1300245139167623613m5930006210116361008m-6708397670434253343m-5808586647480170277m372109147063714032m8302767070546682313hoenzb
        {mso-style-name:m_-1142967708843732713m_-1300245139167623613m_5930006210116361008m_-6708397670434253343m_-5808586647480170277m_372109147063714032m_8302767070546682313hoenzb;}
span.EmailStyle28
        {mso-style-type:personal-reply;
        font-family:"Arial",sans-serif;
        color:windowtext;
        font-weight:normal;
        font-style:normal;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-family:"Arial",sans-serif'>Hi Kunal,<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial",sans-serif'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Arial",sans-serif'>I think you really need to read this before you post further questions:<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial",sans-serif'>Mini-Language Reference Manual<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial",sans-serif'><a href="https://www.ncl.ucar.edu/Document/Manuals/language_man.pdf">https://www.ncl.ucar.edu/Document/Manuals/language_man.pdf</a><o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial",sans-serif'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Arial",sans-serif'>It’s really not a good idea to ask others from this forum to debug simple errors/bugs for you. NCL has an easy-to-follow webpage and also excellent example. Please do spend some time to take advantage of them. <o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial",sans-serif'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Arial",sans-serif'>People get a lot of help and comments on how to improve their work efficiencies from this forum. Please help but not ruin it! <o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial",sans-serif'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Arial",sans-serif'>Take care! <o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial",sans-serif'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Arial",sans-serif'>Regards,<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial",sans-serif'>Yuqiang<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial",sans-serif'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'> ncl-talk-bounces@ucar.edu [mailto:ncl-talk-bounces@ucar.edu] <b>On Behalf Of </b>Kunal Bali<br><b>Sent:</b> Friday, March 31, 2017 2:55 PM<br><b>Cc:</b> ncl-talk@ucar.edu<br><b>Subject:</b> Re: [ncl-talk] loop_query<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Thanks Dennis for all the information and the help. <o:p></o:p></p></div><div><p class=MsoNormal><br clear=all><o:p></o:p></p><div><div><div><div><div><div><p class=MsoNormal>Kunal Bali<o:p></o:p></p></div><div><p class=MsoNormal>Research Scholar <o:p></o:p></p></div><div><p class=MsoNormal>Radio & Atmospheric Science Division <o:p></o:p></p></div><div><p class=MsoNormal>CSIR - National Physical Laboratory<o:p></o:p></p></div><div><p class=MsoNormal>New Delhi - 110012<o:p></o:p></p></div><div><p class=MsoNormal>India<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p style='margin:0in;margin-bottom:.0001pt'><span style='font-size:9.0pt;font-family:"Tahoma",sans-serif'><o:p> </o:p></span></p></div></div></div></div></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On Sat, Apr 1, 2017 at 12:05 AM, Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>> wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><div><div><div><div><div><div><div><div><p class=MsoNormal style='margin-bottom:12.0pt'>Variable: data<br>Number of Dimensions: 3<br>Dimensions and sizes: [time | 30] x [latitude | 330] x [longitude | 300]<o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>Dimension numbers: 0 1 2<br><br>-----<o:p></o:p></p></div><p class=MsoNormal>So the following are pointing to the *wrong* dimensions<br><br> lat1d = ndtooned(conform(data,data&latitude,0)) ; 0 is 'time'<br> lon1d = ndtooned(conform(data,data&longitude,1)) ; 1 is 'lat'<br><br>the following is suggested<br><br> lat1d = ndtooned(conform(data,data&latitude,1))<br> lon1d = ndtooned(conform(data,data&longitude,2))<br><br>====<o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>Several manual describe dimension numbering but the following sentence is most succinct<br><br><span class=m-1142967708843732713gmail-highlight>"Dimension nu</span>mbering proceeds from left-to-right with the leftmost dimension equal to 0.{<o:p></o:p></p></div><p class=MsoNormal> (time) ; 0<o:p></o:p></p></div><p class=MsoNormal> (lat) , 0<o:p></o:p></p></div><p class=MsoNormal> (time,npts); time=0 , npts=1<o:p></o:p></p></div><p class=MsoNormal> (time,lat,lon) ; 0, 1, 2<o:p></o:p></p></div><div><p class=MsoNormal> (time,lev,lat,lon); 0, 1, 2, 3<o:p></o:p></p></div><p class=MsoNormal> (nensemble,time, lev,lat,lon) ; 0, 1, 2, 3, 4<o:p></o:p></p><div><div><div><div><div><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p></div></div></div></div></div></div></div><div><div><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On Fri, Mar 31, 2017 at 12:14 PM, Kunal Bali <<a href="mailto:kunal.bali9@gmail.com" target="_blank">kunal.bali9@gmail.com</a>> wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><div><div><div><p class=MsoNormal style='margin-bottom:12.0pt'>I apologize from the deep of my heart. I didn't mean to bother you. <o:p></o:p></p></div><div><p class=MsoNormal>actually<o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>The script is reading all the 30 days files. <br><br>Variable: data<br>Type: float<br>Total Size: 11880000 bytes<br> 2970000 values<br>Number of Dimensions: 3<br>Dimensions and sizes: [time | 30] x [latitude | 330] x [longitude | 300]<br>Coordinates: <br> time: [913824..914520]<br> latitude: [37.95..5.05]<br> longitude: [68.05..97.95]<br>Number Of Attributes: 3<br> long_name : Wildfire flux of Black Carbon<br><br><o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>It showing an error <br><br>fatal:conform: the dimensions sizes of the second argument do not match those indicated by the third argument<br>fatal:["Execute.c":8578]:Execute: Error occurred at or near line 146 in file kunal.ncl<br><br>The error line are<br> lat1d = ndtooned(conform(data,data&latitude,0))<br> lon1d = ndtooned(conform(data,data&longitude,1))<o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>I tried to find to find this answer but I could not find it. I am sorry if i am bothering you again.<o:p></o:p></p><div><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p><div><p class=MsoNormal style='margin-bottom:12.0pt'><br><br><o:p></o:p></p></div></div></div></div><div><p class=MsoNormal><br clear=all><o:p></o:p></p><div><div><div><div><div><div><p class=MsoNormal>Kunal Bali<o:p></o:p></p></div><div><p class=MsoNormal>Research Scholar <o:p></o:p></p></div><div><p class=MsoNormal>Radio & Atmospheric Science Division <o:p></o:p></p></div><div><p class=MsoNormal>CSIR - National Physical Laboratory<o:p></o:p></p></div><div><p class=MsoNormal>New Delhi - 110012<o:p></o:p></p></div><div><p class=MsoNormal>India<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p style='margin:0in;margin-bottom:.0001pt'><span style='font-size:9.0pt;font-family:"Tahoma",sans-serif'><o:p> </o:p></span></p></div></div></div></div></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><div><p class=MsoNormal>On Fri, Mar 31, 2017 at 11:20 PM, Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>> wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><div><div><div><p class=MsoNormal style='margin-bottom:12.0pt'>I still find your question and the code confusing.<o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>It takes time to look at code and determine what is happening. It is your responsibility to pose clear questions and, if appropriate, a clean, minimal script that illustrates the issue(s). We answer questions on a volunteer basis. Our time is valuable too! You must help us help you!<o:p></o:p></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'>Please read the addfiles and adfiles documentation.<br><br><a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/addfiles.shtml" target="_blank">http://www.ncl.ucar.edu/Document/Functions/Built-in/addfiles.shtml</a><br><a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/addfile.shtml" target="_blank">http://www.ncl.ucar.edu/Document/Functions/Built-in/addfile.shtml</a><o:p></o:p></p></div><div><p class=MsoNormal>With addfiles ... please look at examples 1 and 2. <br><br>Note the difference between 'cat' (the default) and 'join' (alternate approach) <o:p></o:p></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p></div><div><p class=MsoNormal>---<o:p></o:p></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'>Create a script that contains *only* this part of your code. <o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>;---Read var1 <br> dir = "/home/kunal/"<br> fnames = systemfunc("ls " + dir + "DAY_*.nc")<br><br> print(fnames)<br> nfil = dimsizes(fnames)<br> print("nfil="+nfil)<o:p></o:p></p></div><div><p class=MsoNormal> print("---")<o:p></o:p></p></div><div><p class=MsoNormal> <br> a = addfiles(fnames,"r")<br> data = a[:]->bcfire(0,:,:) ; only one timestep<o:p></o:p></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'> printVarSummary(data) ; *****look at the structure **** and sizes <o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><pre> DATA = a[:]->bcfire<br> printVarSummary(data) ; *****look at the structure **** <o:p></o:p></pre><pre>DATA should have something like (time,lat,lon) where <o:p></o:p></pre><pre style='margin-bottom:12.0pt'>dimsizes(time) >1<br><br><o:p></o:p></pre><pre> <o:p></o:p></pre><pre style='margin-bottom:12.0pt'><o:p> </o:p></pre><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div></div><div><div><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On Fri, Mar 31, 2017 at 11:01 AM, Kunal Bali <<a href="mailto:kunal.bali9@gmail.com" target="_blank">kunal.bali9@gmail.com</a>> wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><div><div><p class=MsoNormal style='margin-bottom:12.0pt'>Sorry for creating the confusion. <o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'>I changed the script as you suggested me and then run the attached script. But after running this, I am getting the file only of the single day instead of all 30 files separately. <o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><span style='color:#888888'><br clear=all><span class=m-1142967708843732713m-1300245139167623613m5930006210116361008hoenzb><o:p></o:p></span></span></p><div><div><div><div><div><div><p class=MsoNormal><span style='color:#888888'>Kunal Bali</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='color:#888888'>Research Scholar <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='color:#888888'>Radio & Atmospheric Science Division <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='color:#888888'>CSIR - National Physical Laboratory<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='color:#888888'>New Delhi - 110012<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='color:#888888'>India<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='color:#888888'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='color:#888888'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='color:#888888'><o:p> </o:p></span></p></div><div><p style='margin:0in;margin-bottom:.0001pt'><span style='font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#888888'><o:p> </o:p></span></p></div></div></div></div></div></div><div><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On Fri, Mar 31, 2017 at 10:15 PM, Mary Haley <<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>> wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><div><p class=MsoNormal>Kunal,<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>I'm a little confused by what you are asking for. You said you wanted to extract all 30 days of data instantly, which is what the previous "addfiles" example was meant to show. You don't need a loop to extract all the data.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Did you actually try my suggestion of changing your script to use "addfiles" instead of "addfile"? If so, and you are still having a problem, then it would help to see the new version of your script.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Maybe my confusion is with what you want to do with the data after you extract all 30 days of data. Please be more specific if possible.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Thanks,<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>--Mary<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div></div><div><div><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On Thu, Mar 30, 2017 at 10:19 PM, Kunal Bali <<a href="mailto:kunal.bali9@gmail.com" target="_blank">kunal.bali9@gmail.com</a>> wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><div><div><p class=MsoNormal style='margin-bottom:12.0pt'>Dear Mary,<o:p></o:p></p></div><p class=MsoNormal>Thanks for the suggestions. <o:p></o:p></p></div><p class=MsoNormal>But still, it's extracting one file at a time, not extracting all the 30-day files separately of UK and NEP (as mentioned in the script). <span class="m-1142967708843732713m-1300245139167623613m5930006210116361008m-6708397670434253343m-5808586647480170277hoenzb"><span style='color:#888888'><o:p></o:p></span></span></p><div><div><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p></div></div></div><div><p class=MsoNormal><span style='color:#888888'><br clear=all></span><span class="m-1142967708843732713m-1300245139167623613m5930006210116361008m-6708397670434253343m-5808586647480170277hoenzb"><o:p></o:p></span></p><div><div><div><div><div><div><p class=MsoNormal><span style='color:#888888'>Kunal Bali</span><o:p></o:p></p></div><p class=MsoNormal><span style='color:#888888'><o:p> </o:p></span></p><div><p class=MsoNormal><span style='color:#888888'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='color:#888888'><o:p> </o:p></span></p></div><div><p style='margin:0in;margin-bottom:.0001pt'><span style='font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#888888'><o:p> </o:p></span></p></div></div></div></div></div></div><div><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On Fri, Mar 31, 2017 at 3:09 AM, Mary Haley <<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>> wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><div><p class=MsoNormal>Kunal,<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>You should be able to use "addfiles" to open all your files, and then read your data using the special [:] syntax:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><div><p class=MsoNormal><span style='font-family:"Courier New"'> dir = "/home/kunal/"</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'> fnames = systemfunc("ls " + dir + "DAY_*.nc")</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'> a = addfiles(fnames,"r")<br><span class="m-1142967708843732713m-1300245139167623613m5930006210116361008m-6708397670434253343m-5808586647480170277m372109147063714032m8302767070546682313gmail-s1"> data = a[:]</span><span class="m-1142967708843732713m-1300245139167623613m5930006210116361008m-6708397670434253343m-5808586647480170277m372109147063714032m8302767070546682313gmail-s2">-></span><span class="m-1142967708843732713m-1300245139167623613m5930006210116361008m-6708397670434253343m-5808586647480170277m372109147063714032m8302767070546682313gmail-s1">bcfire</span></span><o:p></o:p></p></div></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>For more information see our addfiles examples page:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><a href="http://www.ncl.ucar.edu/Applications/addfiles.shtml" target="_blank">http://www.ncl.ucar.edu/Applications/addfiles.shtml</a><o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>--Mary<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class="m-1142967708843732713m-1300245139167623613m5930006210116361008m-6708397670434253343m-5808586647480170277m372109147063714032m8302767070546682313gmail-p1"><o:p> </o:p></p><p class="m-1142967708843732713m-1300245139167623613m5930006210116361008m-6708397670434253343m-5808586647480170277m372109147063714032m8302767070546682313gmail-p1"><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div></div><div><p class=MsoNormal><o:p> </o:p></p><div><div><div><p class=MsoNormal>On Thu, Mar 30, 2017 at 12:42 PM, Kunal Bali <<a href="mailto:kunal.bali9@gmail.com" target="_blank">kunal.bali9@gmail.com</a>> wrote:<o:p></o:p></p></div></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><div><div><div><p class=MsoNormal style='margin-bottom:12.0pt'>Dear NCL users<br><br><o:p></o:p></p></div><p class=MsoNormal>I have the data of 30 days. I want to extract this data with the loop.The attached script is based on to extract the data of a single day. So it's a tedious job to extract all the 30 days data one by one. So could anyone tell me that how to start the loop in the attached file so the I can get 30 days extracted data instantly. <br><br>Thank You<br><br>Regards<span style='color:#888888'><br clear=all><span class="m-1142967708843732713m-1300245139167623613m5930006210116361008m-6708397670434253343m-5808586647480170277m372109147063714032m8302767070546682313hoenzb"><o:p></o:p></span></span></p><div><div><div><div><div><div><div><div><p class=MsoNormal><span style='color:#888888'>Kunal Bali</span><o:p></o:p></p></div><p class=MsoNormal><span style='color:#888888'><o:p> </o:p></span></p><div><p class=MsoNormal><span style='color:#888888'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='color:#888888'><o:p> </o:p></span></p></div><div><p style='margin:0in;margin-bottom:.0001pt'><span style='font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#888888'><o:p> </o:p></span></p></div></div></div></div></div></div></div></div></div><p class=MsoNormal><o:p> </o:p></p></div></div><p class=MsoNormal style='margin-bottom:12.0pt'>_______________________________________________<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" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><o:p></o:p></p></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div></div></div></div><p class=MsoNormal style='margin-bottom:12.0pt'><br>_______________________________________________<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" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><o:p></o:p></p></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div></div></div></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div></div></div><p class=MsoNormal style='margin-bottom:12.0pt'><br>_______________________________________________<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" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><o:p></o:p></p></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div></div></div></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div></div></div><p class=MsoNormal style='margin-bottom:12.0pt'><br>_______________________________________________<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" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><o:p></o:p></p></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div></div></div></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>