<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div><div>Thank you so much Rick</div><div><br></div><div>Kind regards,</div><div>Chathu</div><div><br></div><div class="ydp7572f793signature"><div style="font-size:small;"><blockquote style="margin:0 0 0 40px;border:none;padding:0px;"><span style="font-style:italic;font-size:medium;">........................................</span></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px;"><span style="font-style:italic;font-size:medium;"><br></span></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px;"><br></blockquote></div></div></div>
            
            <div id="yahoo_quoted_2374594855" class="yahoo_quoted">
                <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                    
                    <div>
                        On Tuesday, 13 March 2018, 00:27:52 GMT+8, Rick Brownrigg <brownrig@ucar.edu> wrote:
                    </div>
                    <div><br></div>
                    <div><br></div>
                    <div><div id="yiv6087897341"><div><div dir="ltr"><div><div><div><div>Are you saying you are having trouble coming up with the right filename expression?<br clear="none"><br clear="none"></div>What about something like:<br clear="none"><br clear="none">ls MXLDEPTH.1440x720.[0-9][0-9][0-9][0-9]12*.nc  MXLDEPTH.1440x720.[0-9][0-9][0-9][0-9]0[1-2]*.nc    # DJF, all years<br clear="none">MXLDEPTH.1440x720.[0-9][0-9][0-9][0-9]0[3-5]*.nc    # MAM<br clear="none">MXLDEPTH.1440x720.[0-9][0-9][0-9][0-9]0[6-8]*.nc    # JJA<br clear="none"></div>MXLDEPTH.1440x720.[0-9][0-9][0-9][0-9]09*.nc  MXLDEPTH.1440x720.[0-9][0-9][0-9][0-9]1[0-1]*.nc    # SON<br clear="none"><br clear="none"></div>Its kind of crude and there are likely better ways, but I think that works.<br clear="none"><br clear="none"></div>Rick<br clear="none"></div><div class="yiv6087897341gmail_extra"><br clear="none"><div class="yiv6087897341gmail_quote">On Sun, Mar 11, 2018 at 11:54 PM, Wickramage Chathurika <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:wickramagechathurika@rocketmail.com" target="_blank" href="mailto:wickramagechathurika@rocketmail.com">wickramagechathurika@rocketmail.com</a>></span> wrote:<br clear="none"><blockquote class="yiv6087897341gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv6087897341yqt4955737394" id="yiv6087897341yqt84976"><div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div>Hello,</div><div><br clear="none"></div><div><br clear="none"></div><div>I have 7671 (21 years) Mixlayer depth files with dimensions, time, lat and lon. I want to extract mix layer depth data for "JJA". but I cannot read such amount of files at once and give errors;</div><div><span style="color:rgb(0,0,0);"><br clear="none"></span></div><div><span style="color:rgb(0,0,0);">for that I have used;</span></div><div><br clear="none"></div><div><div>diri="/mnt/g/Ocean/ECCO2/ MXLDEPTH/"</div><div>fili=systemfunc("cd "+diri+" ;ls MXLDEPTH.1440x720.*.nc")</div></div><div><br clear="none"></div><div>"warning:_NclOpenFile: Can not open file <*.nc>; file format not supported or file is corrupted"<br clear="none"></div><div><br clear="none"></div><div>if I add only one-month data, it runs properly and gives the output. for that I have used;</div><div><br clear="none"></div><div><div>diri="/mnt/g/Ocean/ECCO2/ MXLDEPTH/"</div><div>fili=systemfunc("cd "+diri+" ;ls MXLDEPTH.1440x720.201106*.nc")</div><div><br clear="none"></div><div>And one more thing, when I try to use only the 21 years June data, It gives not only June data but other months data also (the part of the printed output has been displayed below). for that I have used;</div><div><br clear="none"></div><div><div><div style="color:rgb(0,0,0);">diri="/mnt/g/Ocean/ECCO2/ MXLDEPTH/"</div><div style="color:rgb(0,0,0);">fili=systemfunc("cd "+diri+" ;ls MXLDEPTH.1440x720.*06*.nc")</div></div></div><br clear="none"></div><div><div> <div>(1141)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20111006.nc">MXLDEPTH.1440x720.20111006.nc</a></div><div>(1142)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20111106.nc">MXLDEPTH.1440x720.20111106.nc</a></div><div>(1143)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20111206.nc">MXLDEPTH.1440x720.20111206.nc</a></div><div>(1144)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120106.nc">MXLDEPTH.1440x720.20120106.nc</a></div><div>(1145)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120206.nc">MXLDEPTH.1440x720.20120206.nc</a></div><div>(1146)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120306.nc">MXLDEPTH.1440x720.20120306.nc</a></div><div>(1147)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120406.nc">MXLDEPTH.1440x720.20120406.nc</a></div><div>(1148)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120506.nc">MXLDEPTH.1440x720.20120506.nc</a></div><div>(1149)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120601.nc">MXLDEPTH.1440x720.20120601.nc</a></div><div>(1150)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120602.nc">MXLDEPTH.1440x720.20120602.nc</a></div><div>(1151)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120603.nc">MXLDEPTH.1440x720.20120603.nc</a></div><div>(1152)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120604.nc">MXLDEPTH.1440x720.20120604.nc</a></div><div>(1153)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120605.nc">MXLDEPTH.1440x720.20120605.nc</a></div><div>(1154)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120606.nc">MXLDEPTH.1440x720.20120606.nc</a></div><div>(1155)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120607.nc">MXLDEPTH.1440x720.20120607.nc</a></div><div>(1156)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120608.nc">MXLDEPTH.1440x720.20120608.nc</a></div><div>(1157)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120609.nc">MXLDEPTH.1440x720.20120609.nc</a></div><div>(1158)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120610.nc">MXLDEPTH.1440x720.20120610.nc</a></div><div>(1159)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120611.nc">MXLDEPTH.1440x720.20120611.nc</a></div><div>(1160)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120612.nc">MXLDEPTH.1440x720.20120612.nc</a></div><div>(1161)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120613.nc">MXLDEPTH.1440x720.20120613.nc</a></div><div>(1162)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120614.nc">MXLDEPTH.1440x720.20120614.nc</a></div><div>(1163)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120615.nc">MXLDEPTH.1440x720.20120615.nc</a></div><div>(1164)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120616.nc">MXLDEPTH.1440x720.20120616.nc</a></div><div>(1165)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120617.nc">MXLDEPTH.1440x720.20120617.nc</a></div><div>(1166)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120618.nc">MXLDEPTH.1440x720.20120618.nc</a></div><div>(1167)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120619.nc">MXLDEPTH.1440x720.20120619.nc</a></div><div>(1168)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120620.nc">MXLDEPTH.1440x720.20120620.nc</a></div><div>(1169)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120621.nc">MXLDEPTH.1440x720.20120621.nc</a></div><div>(1170)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120622.nc">MXLDEPTH.1440x720.20120622.nc</a></div><div>(1171)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120623.nc">MXLDEPTH.1440x720.20120623.nc</a></div><div>(1172)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120624.nc">MXLDEPTH.1440x720.20120624.nc</a></div><div>(1173)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120625.nc">MXLDEPTH.1440x720.20120625.nc</a></div><div>(1174)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120626.nc">MXLDEPTH.1440x720.20120626.nc</a></div><div>(1175)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120627.nc">MXLDEPTH.1440x720.20120627.nc</a></div><div>(1176)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120628.nc">MXLDEPTH.1440x720.20120628.nc</a></div><div>(1177)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120629.nc">MXLDEPTH.1440x720.20120629.nc</a></div><div>(1178)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120630.nc">MXLDEPTH.1440x720.20120630.nc</a></div><div>(1179)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120706.nc">MXLDEPTH.1440x720.20120706.nc</a></div><div>(1180)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120806.nc">MXLDEPTH.1440x720.20120806.nc</a></div><div>(1181)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20120906.nc">MXLDEPTH.1440x720.20120906.nc</a></div><div>(1182)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20121006.nc">MXLDEPTH.1440x720.20121006.nc</a></div><div>(1183)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20121106.nc">MXLDEPTH.1440x720.20121106.nc</a></div><div>(1184)  <a rel="nofollow" shape="rect" target="_blank" href="http://MXLDEPTH.1440x720.20121206.nc">MXLDEPTH.1440x720.20121206.nc</a></div><br clear="none"></div>The variable summary for one file is,</div><div><br clear="none"></div><div><div>Variable: mix</div><div>Type: float</div><div>Total Size: 560 bytes</div><div>            140 values</div><div>Number of Dimensions: 2</div><div>Dimensions and sizes:   [TIME | 1] x [LONGITUDE_T | 140]</div><div>Coordinates:</div><div>            TIME: [2507.5..2507.5]</div><div>            LONGITUDE_T: [45.125..79.875]</div><div>Number Of Attributes: 6</div><div>  missing_value :       -9.9999998e+22</div><div>  FillValue :   -9.9999998e+22</div><div>  long_name :   Mixed layer depth, dT=.8degC density criterion</div><div>  units :       m</div><div>  LATITUDE_T :  -0.125</div><div>  _FillValue :  1e+20</div><br clear="none"></div><div><br clear="none"></div><div>I want to plot the mix layer depth climatology for seasons wise ( DJF,MAM,JJA,SON). Please help me to solve this problem and I stuck here so long time. Any help appriciate in advance. I have tried so may methods up to now, but nothing work properly.</div><div><br clear="none"></div><div>Thank you so much</div><div><br clear="none"></div><div>Kind regards,</div><div>Chathu</div><div class="yiv6087897341m_-8952795293476370495ydp4148571fsignature"><div style="font-size:small;"><blockquote style="margin:0 0 0 40px;border:none;padding:0px;"><span style="font-style:italic;font-size:medium;">.............................. ..........</span></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px;"><span style="font-style:italic;font-size:medium;"><br clear="none"></span></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px;"><br clear="none"></blockquote></div></div></div></div></div><br clear="none">______________________________ _________________<br clear="none">
ncl-talk mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:ncl-talk@ucar.edu" target="_blank" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br clear="none">
List instructions, subscriber options, unsubscribe:<br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/ mailman/listinfo/ncl-talk</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"></div></div></div></div>
                </div>
            </div></div></body></html>