[ncl-talk] Sub: Extracting a specific column...

Adv advita6 at gmail.com
Sun Oct 18 14:24:30 MDT 2015


Hi NCL users,
I would like to extract a specific column from the text file. Could someone
help me?

Thank you
Adv

my code look like this... begin
;***************************************************
;s=new((/1,12/),float,"No_FillValue")
z1 = asciiread("ao1961-2005.asc",-1,"float")
print(z1)
xreshape = reshape(z1,(/1,5/))
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151018/389e6022/attachment.html 
-------------- next part --------------

    -1.506    0.621    0.341   -0.237    0.157    0.837   -0.108    0.013    0.815    0.203   -0.010   -1.668
     1.645   -0.358   -2.848    1.169    0.068    0.287   -0.927    0.152   -0.056   -0.016   -1.112   -0.711
    -3.311   -1.721    0.724   -0.348    0.771   -0.585   -0.303   -0.625    0.083    1.069   -0.419   -1.178
     0.385   -0.575   -0.558    0.663    1.174    0.142    0.734   -1.207   -0.227    0.342   -0.344   -0.246
    -1.046   -2.084   -0.905    0.568   -0.153    0.038   -0.510   -0.255   -0.698    0.394   -1.341    0.163
    -3.232   -1.438   -0.911   -1.837    1.124    0.408    0.011   -0.945    0.011   -1.077    0.111   -1.401
    -0.576    1.180    1.967    1.700    0.127    0.647    0.259   -0.293    0.133    1.299    0.334   -0.347
    -0.409   -2.154    1.741    0.328   -0.241    0.420   -0.836   -0.671   -1.009   -1.013   -2.183   -0.783
    -2.967   -3.114   -1.582    0.438   -0.720   -0.348    0.410   -0.782   -0.083    0.098    0.326   -1.856
    -2.412   -1.325   -2.084    0.302    0.531    0.875    0.139   -0.263    0.030    0.098    0.378   -0.399
    -0.163   -0.922   -1.091   -0.583    0.679   -0.668   -0.578    0.818    0.153    1.185    0.419    0.824
     0.166   -0.195   -0.141    1.007    0.140   -0.049   -0.553   -0.082   -0.920    0.392   -0.380    1.238
     1.232    0.786    0.537   -1.126    0.073    0.531    0.270    0.313    0.114    0.337    0.002   -0.181
     0.232   -0.489   -0.746    0.309   -0.507   -0.048    0.390   -0.533   -0.136   -1.024   -0.435    0.556
     1.595    0.194    0.151    0.409   -0.614   -0.323    0.345    0.130    1.278    0.138    0.619    1.290
     0.034    1.656    0.587    0.440    0.060    0.328   -0.325    0.559   -0.743   -0.804   -0.087   -2.074
    -3.767   -2.010    0.344    1.329    0.104   -0.226   -0.492   -1.412    0.586   -0.009    0.605   -0.240
    -0.347   -3.014    0.502   -0.967    0.059    0.635   -0.604   -0.354   -0.099    0.895    2.470   -0.980
    -2.233   -0.697   -0.814   -1.157   -0.250    0.933    0.039   -0.684   -0.046   -1.243    0.475    1.295
    -2.066   -0.934   -1.433   -0.419   -1.155    0.721   -0.622   -0.185    0.313   -0.521   -1.361   -0.057
    -0.116   -0.332   -1.645    0.430    0.180   -0.438    0.561   -0.244   -1.040   -1.167   -0.188   -1.216
    -0.883    0.974    1.074    1.454   -0.209   -1.180    0.005    0.362    0.558   -0.211    0.661    0.967
     1.359   -1.806   -0.567   -0.738   -0.441    0.313    0.131    1.098    0.167    1.369   -0.688    0.186
     0.905   -0.303   -2.386   -0.284    0.479    0.007    0.019    0.466   -0.413   -0.270   -0.966    0.446
    -2.806   -1.440    0.551    0.652   -0.432   -0.347   -0.390   -0.001    0.114    1.035   -1.218   -1.948
    -0.568   -2.904    1.931    0.103    0.367    0.535   -0.008   -0.826   -0.023    1.425    0.926    0.060
    -1.148   -1.473   -1.746    0.387    0.325   -0.710   -0.466   -0.836    0.287   -0.080   -0.536   -0.534
     0.265   -1.066   -0.197   -0.561   -0.846    0.061   -0.143    0.255    1.039    0.032   -0.035    1.679
     3.106    3.279    1.530   -0.250    0.889    0.345    0.866    0.551    0.703    0.991    0.034   -0.644
     1.001    3.402    2.990    1.879    0.943    0.304   -0.296   -0.180   -0.210    0.660    0.521    1.277
     0.723   -0.876   -0.527    0.530    0.486   -0.115   -0.188    0.797   -0.112   -0.252    0.285    1.613
     0.550    1.122    0.984   -0.521    1.341   -0.302    0.191    0.535   -0.640   -0.366    0.717    1.627
     3.495    0.184    0.764   -0.435   -1.607   -0.520   -0.511   -0.393   -0.361   -0.565    1.002   -0.104
    -0.288   -0.862    1.881    0.225   -0.115    1.606    0.351    0.828   -0.084    0.174    1.779    0.894
    -0.154    1.429    0.393   -0.963   -0.891   -0.112   -0.217    0.544   -0.549    0.075   -0.723   -2.127
    -1.200    0.163   -1.483   -1.525   -0.226    0.497    0.715    0.125   -1.140    0.183    0.136   -1.721
    -0.457    1.889    1.091    0.324   -0.961   -0.815   -0.431    0.121    0.195   -0.700   -0.661   -0.071
    -2.081   -0.183   -0.254   -0.038    0.429   -0.711   -0.212    0.650   -1.050    0.294   -1.449    1.353
     0.110    0.482   -1.492    0.284    0.226    0.707   -0.002   -0.672    0.059   -0.006    0.611    1.043
     1.270    1.076   -0.451   -0.279    0.969    0.586   -0.649    0.144    0.395    0.317   -1.581   -2.354
    -0.959   -0.622   -1.687    0.906    0.452   -0.015   -0.031    0.521   -0.707    0.707    0.819   -1.322
     1.381    1.304    0.902    0.748    0.401    0.573    0.328   -0.229   -0.043   -1.489   -1.425   -1.592
    -0.472    0.128    0.933   -0.178    1.017   -0.102    0.075   -0.280    0.467   -0.670    0.642    0.265
    -1.686   -1.528    0.318   -0.409   -0.094   -0.236   -0.201   -0.720    0.855   -0.515    0.678    1.230
     0.356   -1.271   -1.348   -0.046   -0.763   -0.383   -0.030    0.026    0.802    0.030    0.228   -2.104


More information about the ncl-talk mailing list