<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_ym19_1_1506879709687_2410"><span id="yui_3_16_0_ym19_1_1506879709687_5873">Dear all, </span></div><div id="yui_3_16_0_ym19_1_1506879709687_2410" dir="ltr"><span id="yui_3_16_0_ym19_1_1506879709687_5885">I have a 3 output TEXT files (shown below), each for Mar, Apr and May which I have made into one by using cat command. This code fetches the Level of 17, 30 and 40 dbz. </span></div><div id="yui_3_16_0_ym19_1_1506879709687_2410" dir="ltr"><span id="yui_3_16_0_ym19_1_1506879709687_5977">My NCL code runs fine when individual file in given as input to the code but gives an error with the inpt file which has 27320 lines)</span></div><div id="yui_3_16_0_ym19_1_1506879709687_2410" dir="ltr"><span id="yui_3_16_0_ym19_1_1506879709687_9356">the code is attached and the Error is shown below</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_6018"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_6018">Variable: Dimsize</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_6019">Type: integer</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_6020">Total Size: 4 bytes</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_6021"> 1 values</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_6022">Number of Dimensions: 1</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_6023">Dimensions and sizes:<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1506879709687_6024"> </span>[1]</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_6025">Coordinates: </div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_6026">(0)<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1506879709687_6027"> </span>27320</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_6028">fatal:NclMalloc Failed:[errno=12]</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_6029">fatal:["Execute.c":8578]:Execute: Error occurred at or near line 9041 in file /home/aditya/geeta/ncl/lib/ncarg/nclscripts/csm/contributed.ncl</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_6030"><br id="yui_3_16_0_ym19_1_1506879709687_6031"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_6032">fatal:["Execute.c":8578]:Execute: Error occurred at or near line 22 in file ht.v38.ncl</div><div id="yui_3_16_0_ym19_1_1506879709687_2410" dir="ltr"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_6033"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_6033">any help would be great. </div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_6033"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_6033">One sample line from the input file is shown here, March has 14072 lines, April 7237, May 6010 lines</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_6033"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_10999">Start 2A25.20080301.58642.7.HDF 6117 6539</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_11000">dimensions 9246 49</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_11001">New Cell</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_11002">6229,26, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,17.7, 0.0,16.5,17.8,19.8,17.8, 0.0,15.0,15.0,15.1, 0.0,15.1, 0.0,16.6, 0.0, 0.0,17.9, 0.0, 0.0,19.0, 0.0, 0.0,15.3, 0.0,15.3,15.3, 0.0, 0.0, 0.0,15.4, 0.0, 0.0, 0.0, 0.0,18.2,15.5, 0.0,15.6, 0.0, 0.0,19.3,15.6, 0.0,18.4,18.4,15.8,15.8,15.8, 0.0,17.4,15.9, 0.0,16.0, 0.0,16.1, 0.0,17.6, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_11003">New Cell</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_11004">6233,30, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,17.9, 0.0, 0.0,16.7,17.9,17.9,19.0, 0.0,16.8, 0.0,19.0, 0.0,16.8, 0.0, 0.0,16.9, 0.0, 0.0, 0.0, 0.0,15.4,17.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,15.6,15.6, 0.0, 0.0,17.1,17.1, 0.0,17.2, 0.0,17.3,15.8,18.5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,18.7,16.2,17.6, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_11005">New Cell</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_11006">6358,47, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,16.9, 0.0, 0.0,16.9,21.6,23.9,23.0,22.6,23.2,22.3, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_11007">New Cell</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_11008">6361,48, 0.0, 0.0,16.5,14.9, 0.0,14.9,19.9,18.9,19.9,15.0, 0.0, 0.0,15.0,20.0,18.0, 0.0,15.1,21.6,16.7,16.7,16.7, 0.0,15.1,15.2,18.0,15.2,16.8, 0.0,15.2,18.1,16.8,16.8, 0.0,15.2,16.9, 0.0,18.1,15.3,18.1,17.0,18.3, 0.0,15.5, 0.0, 0.0,19.4,17.1,15.6, 0.0,18.4,19.4, 0.0, 0.0,15.6,15.6,18.5, 0.0,17.2, 0.0,17.2,15.7,18.5,15.7, 0.0, 0.0,19.0,15.7, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_11009">New Cell</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_11010">6362,42, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,16.3, 0.0,19.1,20.1,20.2, 0.0,18.4,17.7, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_11010"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_11010"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_11010"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_11010"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_11010">My output looks like</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_14298">Copyright (C) 1995-2014 - All Rights Reserved</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_14299"> NCAR Command Language Version 6.2.1</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_14300">Total Size: 4 bytes</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_14301"> 1 values</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_14302">Number of Dimensions: 1</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_14303">Dimensions and sizes: [1]</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_14304">(0) 6011</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_14305">warning:asciiread: End of file reached and only (6011) elements were read from the file, filling remaining elements with the default missing value for the requested type</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_14306">^M(0) START</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_14307">^M(0) 18.5 55 0 0 0 0 1 25</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_14308">^M(0) 17.4 16 31.7 32 40 50 14 350</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_14309">^M(0) 24.4 56 30.3 58 0 0 7 175</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_14310">^M(0) 21.3 45 30 52 40.2 59 53 1325</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_14311">^M(0) 17.6 65 0 0 0 0 1 25</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_14312">^M(0) 18.8 46 31.3 50 40 60 7 175</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_14313">^M(0) 18.1 60 30.7 66 0 0 1 25</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_14313"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_14313"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_14313">The second problem is that I am unable to write the <b id="yui_3_16_0_ym19_1_1506879709687_19322">output into a file,</b> Probably that is why I am getting ^M characters which are getting difficult in handling in further NCL codes. </div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_14313"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_14313">When I run this code, a lot of Warning messages keep coming. I am running the code like this</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_14313"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_14313">(0)<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1506879709687_17667"> </span>21.4 70 30.5 75 0 0 2 50</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_17668">warning:stringtofloat: a bad value was passed; input strings must contain numeric digits, replacing with missing value</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_17669">warning:stringtofloat: a bad value was passed; input strings must contain numeric digits, replacing with missing value</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_17670">warning:stringtofloat: a bad value was passed; input strings must contain numeric digits, replacing with missing value</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_17671">In order to suppress the warning, I am ruiing the code like this. </div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_17671"><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_19314"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_19314">aditya@agniilap:~/geeta/ncl/ReadHDF-2A25$ ../bin/ncl ht.v38.ncl | grep [0-9] >out1</div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_19315"><br id="yui_3_16_0_ym19_1_1506879709687_19316"></div></div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_17671"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_14313"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_14313">Pls help me solve these issues. </div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_14313"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1506879709687_14313">thanks </div><div class="signature" id="yui_3_16_0_ym19_1_1506879709687_2518">Geeta.</div></div></body></html>