<div dir="ltr"><div><div><div><div>Are you saying you are having trouble coming up with the right filename expression?<br><br></div>What about something like:<br><br>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>MXLDEPTH.1440x720.[0-9][0-9][0-9][0-9]0[3-5]*.nc # MAM<br>MXLDEPTH.1440x720.[0-9][0-9][0-9][0-9]0[6-8]*.nc # JJA<br></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><br></div>Its kind of crude and there are likely better ways, but I think that works.<br><br></div>Rick<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 11, 2018 at 11:54 PM, Wickramage Chathurika <span dir="ltr"><<a href="mailto:wickramagechathurika@rocketmail.com" target="_blank">wickramagechathurika@rocketmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:13px"><div>Hello,</div><div><br></div><div><br></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);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif"><br></span></div><div><span style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif">for that I have used;</span></div><div><br></div><div><div>diri="/mnt/g/Ocean/ECCO2/<wbr>MXLDEPTH/"</div><div>fili=systemfunc("cd "+diri+" ;ls MXLDEPTH.1440x720.*.nc")</div></div><div><br></div><div>"warning:_NclOpenFile: Can not open file <*.nc>; file format not supported or file is corrupted"<br></div><div><br></div><div>if I add only one-month data, it runs properly and gives the output. for that I have used;</div><div><br></div><div><div>diri="/mnt/g/Ocean/ECCO2/<wbr>MXLDEPTH/"</div><div>fili=systemfunc("cd "+diri+" ;ls MXLDEPTH.1440x720.201106*.nc")</div><div><br></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></div><div><div><div style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif">diri="/mnt/g/Ocean/ECCO2/<wbr>MXLDEPTH/"</div><div style="color:rgb(0,0,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif">fili=systemfunc("cd "+diri+" ;ls MXLDEPTH.1440x720.*06*.nc")</div></div></div><br></div><div><div> <div>(1141) <a href="http://MXLDEPTH.1440x720.20111006.nc" target="_blank">MXLDEPTH.1440x720.20111006.nc</a></div><div>(1142) <a href="http://MXLDEPTH.1440x720.20111106.nc" target="_blank">MXLDEPTH.1440x720.20111106.nc</a></div><div>(1143) <a href="http://MXLDEPTH.1440x720.20111206.nc" target="_blank">MXLDEPTH.1440x720.20111206.nc</a></div><div>(1144) <a href="http://MXLDEPTH.1440x720.20120106.nc" target="_blank">MXLDEPTH.1440x720.20120106.nc</a></div><div>(1145) <a href="http://MXLDEPTH.1440x720.20120206.nc" target="_blank">MXLDEPTH.1440x720.20120206.nc</a></div><div>(1146) <a href="http://MXLDEPTH.1440x720.20120306.nc" target="_blank">MXLDEPTH.1440x720.20120306.nc</a></div><div>(1147) <a href="http://MXLDEPTH.1440x720.20120406.nc" target="_blank">MXLDEPTH.1440x720.20120406.nc</a></div><div>(1148) <a href="http://MXLDEPTH.1440x720.20120506.nc" target="_blank">MXLDEPTH.1440x720.20120506.nc</a></div><div>(1149) <a href="http://MXLDEPTH.1440x720.20120601.nc" target="_blank">MXLDEPTH.1440x720.20120601.nc</a></div><div>(1150) <a href="http://MXLDEPTH.1440x720.20120602.nc" target="_blank">MXLDEPTH.1440x720.20120602.nc</a></div><div>(1151) <a href="http://MXLDEPTH.1440x720.20120603.nc" target="_blank">MXLDEPTH.1440x720.20120603.nc</a></div><div>(1152) <a href="http://MXLDEPTH.1440x720.20120604.nc" target="_blank">MXLDEPTH.1440x720.20120604.nc</a></div><div>(1153) <a href="http://MXLDEPTH.1440x720.20120605.nc" target="_blank">MXLDEPTH.1440x720.20120605.nc</a></div><div>(1154) <a href="http://MXLDEPTH.1440x720.20120606.nc" target="_blank">MXLDEPTH.1440x720.20120606.nc</a></div><div>(1155) <a href="http://MXLDEPTH.1440x720.20120607.nc" target="_blank">MXLDEPTH.1440x720.20120607.nc</a></div><div>(1156) <a href="http://MXLDEPTH.1440x720.20120608.nc" target="_blank">MXLDEPTH.1440x720.20120608.nc</a></div><div>(1157) <a href="http://MXLDEPTH.1440x720.20120609.nc" target="_blank">MXLDEPTH.1440x720.20120609.nc</a></div><div>(1158) <a href="http://MXLDEPTH.1440x720.20120610.nc" target="_blank">MXLDEPTH.1440x720.20120610.nc</a></div><div>(1159) <a href="http://MXLDEPTH.1440x720.20120611.nc" target="_blank">MXLDEPTH.1440x720.20120611.nc</a></div><div>(1160) <a href="http://MXLDEPTH.1440x720.20120612.nc" target="_blank">MXLDEPTH.1440x720.20120612.nc</a></div><div>(1161) <a href="http://MXLDEPTH.1440x720.20120613.nc" target="_blank">MXLDEPTH.1440x720.20120613.nc</a></div><div>(1162) <a href="http://MXLDEPTH.1440x720.20120614.nc" target="_blank">MXLDEPTH.1440x720.20120614.nc</a></div><div>(1163) <a href="http://MXLDEPTH.1440x720.20120615.nc" target="_blank">MXLDEPTH.1440x720.20120615.nc</a></div><div>(1164) <a href="http://MXLDEPTH.1440x720.20120616.nc" target="_blank">MXLDEPTH.1440x720.20120616.nc</a></div><div>(1165) <a href="http://MXLDEPTH.1440x720.20120617.nc" target="_blank">MXLDEPTH.1440x720.20120617.nc</a></div><div>(1166) <a href="http://MXLDEPTH.1440x720.20120618.nc" target="_blank">MXLDEPTH.1440x720.20120618.nc</a></div><div>(1167) <a href="http://MXLDEPTH.1440x720.20120619.nc" target="_blank">MXLDEPTH.1440x720.20120619.nc</a></div><div>(1168) <a href="http://MXLDEPTH.1440x720.20120620.nc" target="_blank">MXLDEPTH.1440x720.20120620.nc</a></div><div>(1169) <a href="http://MXLDEPTH.1440x720.20120621.nc" target="_blank">MXLDEPTH.1440x720.20120621.nc</a></div><div>(1170) <a href="http://MXLDEPTH.1440x720.20120622.nc" target="_blank">MXLDEPTH.1440x720.20120622.nc</a></div><div>(1171) <a href="http://MXLDEPTH.1440x720.20120623.nc" target="_blank">MXLDEPTH.1440x720.20120623.nc</a></div><div>(1172) <a href="http://MXLDEPTH.1440x720.20120624.nc" target="_blank">MXLDEPTH.1440x720.20120624.nc</a></div><div>(1173) <a href="http://MXLDEPTH.1440x720.20120625.nc" target="_blank">MXLDEPTH.1440x720.20120625.nc</a></div><div>(1174) <a href="http://MXLDEPTH.1440x720.20120626.nc" target="_blank">MXLDEPTH.1440x720.20120626.nc</a></div><div>(1175) <a href="http://MXLDEPTH.1440x720.20120627.nc" target="_blank">MXLDEPTH.1440x720.20120627.nc</a></div><div>(1176) <a href="http://MXLDEPTH.1440x720.20120628.nc" target="_blank">MXLDEPTH.1440x720.20120628.nc</a></div><div>(1177) <a href="http://MXLDEPTH.1440x720.20120629.nc" target="_blank">MXLDEPTH.1440x720.20120629.nc</a></div><div>(1178) <a href="http://MXLDEPTH.1440x720.20120630.nc" target="_blank">MXLDEPTH.1440x720.20120630.nc</a></div><div>(1179) <a href="http://MXLDEPTH.1440x720.20120706.nc" target="_blank">MXLDEPTH.1440x720.20120706.nc</a></div><div>(1180) <a href="http://MXLDEPTH.1440x720.20120806.nc" target="_blank">MXLDEPTH.1440x720.20120806.nc</a></div><div>(1181) <a href="http://MXLDEPTH.1440x720.20120906.nc" target="_blank">MXLDEPTH.1440x720.20120906.nc</a></div><div>(1182) <a href="http://MXLDEPTH.1440x720.20121006.nc" target="_blank">MXLDEPTH.1440x720.20121006.nc</a></div><div>(1183) <a href="http://MXLDEPTH.1440x720.20121106.nc" target="_blank">MXLDEPTH.1440x720.20121106.nc</a></div><div>(1184) <a href="http://MXLDEPTH.1440x720.20121206.nc" target="_blank">MXLDEPTH.1440x720.20121206.nc</a></div><br></div>The variable summary for one file is,</div><div><br></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></div><div><br></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></div><div>Thank you so much</div><div><br></div><div>Kind regards,</div><div>Chathu</div><div class="m_-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">..............................<wbr>..........</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><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>