<div dir="ltr"><div>Unfortunately, the numbers [eg:CO2, Ch4, C5C8] in the leftmost column create an issue that readAscciTable is not designed to handle.<br></div><div><br></div><div><br></div><div>CO2                 1686     1489     1647     1643     1703     1585<br>CO                    63      127       88       93      210      102<br>CH4                 1.94     5.96     3.36     5.07     20.8     5.82<br>...</div><div>C5H8               0.039     0.15    0.099     0.13     1.38     0.38</div><div><br></div><div>readAsciiTable wants to treat  these embedded numbers as data values. Hence, you must explicitly extract the values.</div><div><br></div><div>Please read the documentation of the functions used.<br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 9, 2019 at 3:22 AM Karin Meier-Fleischer via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Adriana,<br>
<br>
have a look at the readAsciiTable function examples <br>
<a href="http://ncl.ucar.edu/Document/Functions/Contributed/readAsciiTable.shtml" rel="noreferrer" target="_blank">http://ncl.ucar.edu/Document/Functions/Contributed/readAsciiTable.shtml</a>.<br>
<br>
-Karin<br>
<br>
Am 09.09.19 um 11:05 schrieb Adriana via ncl-talk:<br>
> Hi everyone<br>
> I am writing because I have the following table:<br>
> #<br>
> # SPECIE            SAVA     BORF     TEMF     DEFO     PEAT AGRI<br>
> #           ----------------------------------------------------<br>
> DM                  1000     1000     1000     1000     1000 1000<br>
> C                488.273  464.989  489.416  491.751  570.055 480.352<br>
> CO2                 1686     1489     1647     1643     1703 1585<br>
> CO                    63      127       88       93      210 102<br>
> CH4                 1.94     5.96     3.36     5.07     20.8 5.82<br>
> NMHC                 3.4      8.4      8.4      1.7      1.7 9.9<br>
> H2                   1.7     2.03     2.03     3.36     3.36 2.59<br>
> NOx                  3.9      0.9     1.92     2.55        1 3.11<br>
> N2O                  0.2     0.41     0.16      0.2      0.2 0.1<br>
> PM2.5               7.17     15.3     12.9      9.1      9.1 6.26<br>
> TPM                  8.5     17.6     17.6       13       13 12.4<br>
> TPC                    3     10.1     10.1     5.24     6.06 3.05<br>
> OC                  2.62      9.6      9.6     4.71     6.02 2.3<br>
> BC                  0.37      0.5      0.5     0.52     0.04 0.75<br>
> SO2                 0.48      1.1      1.1      0.4      0.4 0.4<br>
> C2H6                0.66     1.79     0.63     0.71     0.71 0.91<br>
> CH3OH               1.18     2.82     1.74     2.43     8.46 3.29<br>
> C2H5OH             0.024    0.055      0.1    0.037    0.037 0.035<br>
> C3H8                 0.1     0.44     0.22    0.126    0.126 0.28<br>
> C2H2                0.24     0.18     0.26     0.44     0.06 0.27<br>
> C2H4                0.82     1.42     1.17     1.06     2.57 1.46<br>
> C3H6                0.79     1.13     0.61     0.64     3.05 0.68<br>
> C5H8               0.039     0.15    0.099     0.13     1.38 0.38<br>
><br>
><br>
> and I would like to read the variables from my txt file. I mean crate <br>
> a variable x(species, values)<br>
> however I don't realize how to do it, I was trying with some different <br>
> examples provides in the web page, but doesn't work.<br>
><br>
> I really appreciate any help.<br>
><br>
> Thank you in advance.<br>
><br>
> Adriana<br>
><br>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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/mailman/listinfo/ncl-talk</a></blockquote></div>