<span style="font-weight: bold; color: rgb(102, 0, 204);">Hello charles... Look it is your script and i added something:</span><br><span style="font-weight: bold;">'reinit'</span><br style="font-weight: bold;"><span style="font-weight: bold;">
'open /usr/local/WRFV2_Tutorial/WPS/DOMAINS/Venezuela/postprd/wrfnmm_d01_24.ctl'</span><br style="font-weight: bold;"><span style="font-weight: bold;">'set gxout shaded'</span><br style="font-weight: bold;">
<span style="font-weight: bold;">'d apcpsfc'</span><br style="font-weight: bold;"><br style="font-weight: bold;"><span style="font-weight: bold;">'q dims'</span><br style="font-weight: bold;"><span style="font-weight: bold;">
rec=sublin(result,2)</span><br style="font-weight: bold;"><span style="font-weight: bold;">Imax=subwrd(rec,13)</span><br style="font-weight: bold;"><span style="font-weight: bold;">say 'Imax 'Imax</span><br style="font-weight: bold;">
<br style="font-weight: bold;"><span style="font-weight: bold;">rec=sublin(result,3)</span><br style="font-weight: bold;"><span style="font-weight: bold;">Jmax=subwrd(rec,13)</span><br style="font-weight: bold;"><span style="font-weight: bold;">
say 'Jmax 'Jmax</span><br style="font-weight: bold;"><span style="font-weight: bold;"> </span><br style="font-weight: bold;"><span style="font-weight: bold;">rc = write('/root/Desktop/tests_xy2w_1.txt','i j lonval latval var')
</span><br style="font-weight: bold;"><br style="font-weight: bold;"><span style="font-weight: bold;">i=1</span><br style="font-weight: bold;"><span style="font-weight: bold;"> while ( i <= Imax )</span><br style="font-weight: bold;">
<span style="font-weight: bold;"> j=1</span><br style="font-weight: bold;"><span style="font-weight: bold;"> while ( j <= Jmax )</span><br style="font-weight: bold;"><span style="font-weight: bold;"> 'q gr2w 'i' 'j
</span><br style="font-weight: bold;"><span style="font-weight: bold;"> rec = sublin(result,1)</span><br style="font-weight: bold;"><span style="font-weight: bold;">say 'result' result</span><br style="font-weight: bold;">
<span style="font-weight: bold;"> lonv = subwrd(rec,3)</span><br style="font-weight: bold;"><span style="font-weight: bold;"> latv = subwrd(rec,6)</span><br style="font-weight: bold;"><span style="font-weight: bold;">
say ''i' 'j' 'lonv' 'latv</span><br style="font-weight: bold;"><span style="font-weight: bold;"> lonval = math_format('%6.3f',lonv)</span><br style="font-weight: bold;">
<span style="font-weight: bold;"> latval = math_format('%6.3f',latv)</span><br style="font-weight: bold;"><span style="font-weight: bold;"> 'set y 'j</span><br style="font-weight: bold;"><span style="font-weight: bold;">
'set x 'i</span><br style="font-weight: bold;"><span style="font-weight: bold;"> 'd apcpsfc'</span><br style="font-weight: bold;"><span style="font-weight: bold;"> var = subwrd(result,4)
</span><br style="font-weight: bold;"><span style="font-weight: bold;"> rc = write('/root/Desktop/test_xy2w_1.txt',''i' 'j' 'lonval' 'latval' 'var'')</span>
<br style="font-weight: bold;"><span style="font-weight: bold;"> </span><br style="font-weight: bold;"><span style="font-weight: bold;"> j=j+1</span><br style="font-weight: bold;"><span style="font-weight: bold;">
endwhile</span><br style="font-weight: bold;"><span style="font-weight: bold;"> i=i+1</span><br style="font-weight: bold;"><span style="font-weight: bold;"> endwhile</span><br style="font-weight: bold;"><span style="font-weight: bold;">
rc = close('/root/Desktop/test_xy2w_1.txt')</span><br><br><span style="font-weight: bold; color: rgb(102, 0, 204);">But if you continue here reading the following, it is when the script is writting, then in a point (not the end) it gives me a error (Segmentation fault), i know that this means that it doesn't have memory:
</span><br style="font-weight: bold; color: rgb(102, 0, 204);"><br>resultLon = -67.488 Lat = 3.552<br><br>55 37 -67.488 3.552<br>resultLon = -67.488 Lat = 3.648<br><br>55 38 -67.488 3.648<br>resultLon = -67.488 Lat = 3.744
<br><br>55 39 -67.488 3.744<br>resultLon = -67.488 Lat = 3.84<br><br>55 40 -67.488 3.84<br>resultLon = -67.488 Lat = 3.936<br><br>55 41 -67.488 3.936<br>resultLon = -67.488 Lat = 4.032<br><br>55 42 -67.488 4.032<br>resultLon = -
67.488 Lat = 4.128<br><br>55 43 -67.488 4.128<br>resultLon = -67.488 Lat = 4.224<br><br>55 44 -67.488 4.224<br>resultLon = -67.488 Lat = 4.32<br><br>55 45 -67.488 4.32<br>resultLon = -67.488 Lat = 4.416<br><br>55 46 -
67.488 4.416<br>resultLon = -67.488 Lat = 4.512<br><br>55 47 -67.488 4.512<br>resultLon = -67.488 Lat = 4.608<br><br>55 48 -67.488 4.608<br>resultLon = -67.488 Lat = 4.704<br><br>55 49 -67.488 4.704<br>resultLon = -67.488
Lat = 4.8<br><br>55 50 -67.488 4.8<br>resultLon = -67.488 Lat = 4.896<br><br>55 51 -67.488 4.896<br>resultLon = -67.488 Lat = 4.992<br><br>55 52 -67.488 4.992<br>resultLon = -67.488 Lat = 5.088<br><br>55 53 -67.488 5.088
<br>resultLon = -67.488 Lat = 5.184<br><br>55 54 -67.488 5.184<br>resultLon = -67.488 Lat = 5.28<br><br>55 55 -67.488 5.28<br>resultLon = -67.488 Lat = 5.376<br><br>55 56 -67.488 5.376<br>resultLon = -67.488 Lat = 5.472
<br><br>55 57 -67.488 5.472<br>resultLon = -67.488 Lat = 5.568<br><br>55 58 -67.488 5.568<br>resultLon = -67.488 Lat = 5.664<br><br>55 59 -67.488 5.664<br>resultLon = -67.488 Lat = 5.76<br><br>55 60 -67.488 5.76<br>resultLon = -
67.488 Lat = 5.856<br><br>55 61 -67.488 5.856<br>resultLon = -67.488 Lat = 5.952<br><br>55 62 -67.488 5.952<br>resultLon = -67.488 Lat = 6.048<br><br>55 63 -67.488 6.048<br>resultLon = -67.488 Lat = 6.144<br><br>55 64 -
67.488 6.144<br>resultLon = -67.488 Lat = 6.24<br><br>55 65 -67.488 6.24<br>resultLon = -67.488 Lat = 6.336<br><br>55 66 -67.488 6.336<br>resultLon = -67.488 Lat = 6.432<br><br>55 67 -67.488 6.432<br>resultLon = -67.488
Lat = 6.528<br><br>55 68 -67.488 6.528<br>resultLon = -67.488 Lat = 6.624<br><br>55 69 -67.488 6.624<br>resultLon = -67.488 Lat = 6.72<br><br>55 70 -67.488 6.72<br>resultLon = -67.488 Lat = 6.816<br><br>55 71 -67.488
6.816<br>resultLon = -67.488 Lat = 6.912<br><br>55 72 -67.488 6.912<br>resultLon = -67.488 Lat = 7.008<br><br>55 73 -67.488 7.008<br>resultLon = -67.488 Lat = 7.104<br><br>55 74 -67.488 7.104<br>resultLon = -67.488 Lat =
7.2<br><br>55 75 -67.488 7.2<br>resultLon = -67.488 Lat = 7.296<br><br>55 76 -67.488 7.296<br>resultLon = -67.488 Lat = 7.392<br><br>55 77 -67.488 7.392<br>resultLon = -67.488 Lat = 7.488<br><br>55 78 -67.488 7.488<br>
resultLon = -67.488 Lat = 7.584<br><br>55 79 -67.488 7.584<br>resultLon = -67.488 Lat = 7.68<br><br>55 80 -67.488 7.68<br>resultLon = -67.488 Lat = 7.776<br><br>55 81 -67.488 7.776<br>resultLon = -67.488 Lat = 7.872<br>
<br>55 82 -67.488 7.872<br>resultLon = -67.488 Lat = 7.968<br><br>55 83 -67.488 7.968<br>resultLon = -67.488 Lat = 8.064<br><br>55 84 -67.488 8.064<br>resultLon = -67.488 Lat = 8.16<br><br>55 85 -67.488 8.16<br>resultLon = -
67.488 Lat = 8.256<br><br>55 86 -67.488 8.256<br>resultLon = -67.488 Lat = 8.352<br><br>55 87 -67.488 8.352<br>resultLon = -67.488 Lat = 8.448<br><br>55 88 -67.488 8.448<br>resultLon = -67.488 Lat = 8.544<br><br>55 89 -
67.488 8.544<br>resultLon = -67.488 Lat = 8.64<br><br>55 90 -67.488 8.64<br>resultLon = -67.488 Lat = 8.736<br><br>55 91 -67.488 8.736<br>resultLon = -67.488 Lat = 8.832<br><br>55 92 -67.488 8.832<br>resultLon = -67.488
Lat = 8.928<br><br>55 93 -67.488 8.928<br>resultLon = -67.488 Lat = 9.024<br><br>55 94 -67.488 9.024<br>resultLon = -67.488 Lat = 9.12<br><br>55 95 -67.488 9.12<br>resultLon = -67.488 Lat = 9.216<br><br>55 96 -67.488
9.216<br>resultLon = -67.488 Lat = 9.312<br><br>55 97 -67.488 9.312<br>resultLon = -67.488 Lat = 9.408<br><br>55 98 -67.488 9.408<br>resultLon = -67.488 Lat = 9.504<br><br>55 99 -67.488 9.504<br>resultLon = -67.488 Lat =
9.6<br><br>55 100 -67.488 9.6<br>resultLon = -67.488 Lat = 9.696<br><br>55 101 -67.488 9.696<br>resultLon = -67.488 Lat = 9.792<br><br>55 102 -67.488 9.792<br>resultLon = -67.488 Lat = 9.888<br><br>55 103 -67.488 9.888
<br>resultLon = -67.488 Lat = 9.984<br><br>55 104 -67.488 9.984<br>resultLon = -67.488 Lat = 10.08<br><br>55 105 -67.488 10.08<br>resultLon = -67.488 Lat = 10.176<br><br>55 106 -67.488 10.176<br>resultLon = -67.488 Lat =
10.272<br><br>55 107 -67.488 10.272<br>resultLon = -67.488 Lat = 10.368<br><br>55 108 -67.488 10.368<br>resultLon = -67.488 Lat = 10.464<br><br>55 109 -67.488 10.464<br>resultLon = -67.488 Lat = 10.56<br><br>55 110 -67.488
10.56<br>resultLon = -67.488 Lat = 10.656<br><br>55 111 -67.488 10.656<br>resultLon = -67.488 Lat = 10.752<br><br>55 112 -67.488 10.752<br>resultLon = -67.488 Lat = 10.848<br><br>55 113 -67.488 10.848<br>resultLon = -
67.488 Lat = 10.944<br><br>55 114 -67.488 10.944<br>resultLon = -67.488 Lat = 11.04<br><br>55 115 -67.488 11.04<br>resultLon = -67.488 Lat = 11.136<br><br>55 116 -67.488 11.136<br>resultLon = -67.488 Lat = 11.232<br><br>
55 117 -67.488 11.232<br>resultLon = -67.488 Lat = 11.328<br><br>55 118 -67.488 11.328<br>resultLon = -67.488 Lat = 11.424<br><br>55 119 -67.488 11.424<br>resultLon = -67.488 Lat = 11.52<br><br>55 120 -67.488 11.52<br>
resultLon = -67.488 Lat = 11.616<br><br>55 121 -67.488 11.616<br>resultLon = -67.488 Lat = 11.712<br><br>55 122 -67.488 11.712<br>resultLon = -67.488 Lat = 11.808<br><br>55 123 -67.488 11.808<br>resultLon = -67.392 Lat =
0.096<br><br>56 1 -67.392 0.096<br>resultLon = -67.392 Lat = 0.192<br><br>56 2 -67.392 0.192<br>resultLon = -67.392 Lat = 0.288<br><br>56 3 -67.392 0.288<br>resultLon = -67.392 Lat = 0.384<br><br>56 4 -67.392 0.384<br>
resultLon = -67.392 Lat = 0.48<br><br>56 5 -67.392 0.48<br>resultLon = -67.392 Lat = 0.576<br><br>56 6 -67.392 0.576<br>resultLon = -67.392 Lat = 0.672<br><br>56 7 -67.392 0.672<br>resultLon = -67.392 Lat = 0.768<br><br>
56 8 -67.392 0.768<br>resultLon = -67.392 Lat = 0.864<br><br>56 9 -67.392 0.864<br>resultLon = -67.392 Lat = 0.96<br><br>56 10 -67.392 0.96<br>resultLon = -67.392 Lat = 1.056<br><br>56 11 -67.392 1.056<br>resultLon = -
67.392 Lat = 1.152<br><br>56 12 -67.392 1.152<br>resultLon = -67.392 Lat = 1.248<br><br>56 13 -67.392 1.248<br>resultLon = -67.392 Lat = 1.344<br><br>56 14 -67.392 1.344<br>resultLon = -67.392 Lat = 1.44<br><br>56 15 -
67.392 1.44<br>resultLon = -67.392 Lat = 1.536<br><br>56 16 -67.392 1.536<br>resultLon = -67.392 Lat = 1.632<br><br>56 17 -67.392 1.632<br>resultLon = -67.392 Lat = 1.728<br><br>56 18 -67.392 1.728<br>resultLon = -67.392
Lat = 1.824<br><br>56 19 -67.392 1.824<br>resultLon = -67.392 Lat = 1.92<br><br>56 20 -67.392 1.92<br>resultLon = -67.392 Lat = 2.016<br><br>56 21 -67.392 2.016<br>resultLon = -67.392 Lat = 2.112<br><br>56 22 -67.392
2.112<br>resultLon = -67.392 Lat = 2.208<br><br>56 23 -67.392 2.208<br>resultLon = -67.392 Lat = 2.304<br><br>56 24 -67.392 2.304<br>resultLon = -67.392 Lat = 2.4<br><br>56 25 -67.392 2.4<br>resultLon = -67.392 Lat =
2.496<br><br>56 26 -67.392 2.496<br>resultLon = -67.392 Lat = 2.592<br><br>56 27 -67.392 2.592<br>resultLon = -67.392 Lat = 2.688<br><br>56 28 -67.392 2.688<br>resultLon = -67.392 Lat = 2.784<br><br>56 29 -67.392 2.784
<br>resultLon = -67.392 Lat = 2.88<br><br>56 30 -67.392 2.88<br>resultLon = -67.392 Lat = 2.976<br><br>56 31 -67.392 2.976<br>resultLon = -67.392 Lat = 3.072<br><br>56 32 -67.392 3.072<br>resultLon = -67.392 Lat = 3.168
<br><br>56 33 -67.392 3.168<br>resultLon = -67.392 Lat = 3.264<br><br>56 34 -67.392 3.264<br>resultLon = -67.392 Lat = 3.36<br><br>56 35 -67.392 3.36<br>resultLon = -67.392 Lat = 3.456<br><br>56 36 -67.392 3.456<br>resultLon = -
67.392 Lat = 3.552<br><br>56 37 -67.392 3.552<br>resultLon = -67.392 Lat = 3.648<br><br>56 38 -67.392 3.648<br>resultLon = -67.392 Lat = 3.744<br><br>56 39 -67.392 3.744<br>resultLon = -67.392 Lat = 3.84<br><br>56 40 -
67.392 3.84<br>resultLon = -67.392 Lat = 3.936<br><br>56 41 -67.392 3.936<br>resultLon = -67.392 Lat = 4.032<br><br>56 42 -67.392 4.032<br>resultLon = -67.392 Lat = 4.128<br><br>56 43 -67.392 4.128<br>resultLon = -67.392
Lat = 4.224<br><br>56 44 -67.392 4.224<br>resultLon = -67.392 Lat = 4.32<br><br>56 45 -67.392 4.32<br>resultLon = -67.392 Lat = 4.416<br><br>56 46 -67.392 4.416<br>resultLon = -67.392 Lat = 4.512<br><br>56 47 -67.392
4.512<br>resultLon = -67.392 Lat = 4.608<br><br>56 48 -67.392 4.608<br>resultLon = -67.392 Lat = 4.704<br><br>56 49 -67.392 4.704<br>resultLon = -67.392 Lat = 4.8<br><br>56 50 -67.392 4.8<br>resultLon = -67.392 Lat =
4.896<br><br>56 51 -67.392 4.896<br>resultLon = -67.392 Lat = 4.992<br><br>56 52 -67.392 4.992<br>resultLon = -67.392 Lat = 5.088<br><br>56 53 -67.392 5.088<br>resultLon = -67.392 Lat = 5.184<br><br>56 54 -67.392 5.184
<br>resultLon = -67.392 Lat = 5.28<br><br>56 55 -67.392 5.28<br>resultLon = -67.392 Lat = 5.376<br><br>56 56 -67.392 5.376<br>resultLon = -67.392 Lat = 5.472<br><br>56 57 -67.392 5.472<br>resultLon = -67.392 Lat = 5.568
<br><br>56 58 -67.392 5.568<br>resultLon = -67.392 Lat = 5.664<br><br>56 59 -67.392 5.664<br>resultLon = -67.392 Lat = 5.76<br><br>56 60 -67.392 5.76<br>resultLon = -67.392 Lat = 5.856<br><br>56 61 -67.392 5.856<br>resultLon = -
67.392 Lat = 5.952<br><br>56 62 -67.392 5.952<br>resultLon = -67.392 Lat = 6.048<br><br>56 63 -67.392 6.048<br>resultLon = -67.392 Lat = 6.144<br><br>56 64 -67.392 6.144<br>resultLon = -67.392 Lat = 6.24<br><br>56 65 -
67.392 6.24<br>resultLon = -67.392 Lat = 6.336<br><br>56 66 -67.392 6.336<br>resultLon = -67.392 Lat = 6.432<br><br>56 67 -67.392 6.432<br>resultLon = -67.392 Lat = 6.528<br><br>56 68 -67.392 6.528<br>resultLon = -67.392
Lat = 6.624<br><br>56 69 -67.392 6.624<br>resultLon = -67.392 Lat = 6.72<br><br>56 70 -67.392 6.72<br>resultLon = -67.392 Lat = 6.816<br><br>56 71 -67.392 6.816<br>resultLon = -67.392 Lat = 6.912<br><br>56 72 -67.392
6.912<br>resultLon = -67.392 Lat = 7.008<br><br>56 73 -67.392 7.008<br>resultLon = -67.392 Lat = 7.104<br><br>56 74 -67.392 7.104<br><span style="font-weight: bold;">Segmentation fault</span><br>[root@precision ~]# gradsc
<br><br style="color: rgb(102, 0, 204);"><span style="font-weight: bold; color: rgb(102, 0, 204);">The new part of the script writes the values of the variable that i want to plot, in add to the x y lon lat...</span><br style="font-weight: bold; color: rgb(102, 0, 204);">
<span style="font-weight: bold; color: rgb(102, 0, 204);">can you help me, again please???</span><br clear="all"><br>-- <br>Ing. Rafael E. Mundaray M.