[ncl-talk] sub: read ascii file
Dennis Shea
shea at ucar.edu
Mon Mar 29 20:33:41 MDT 2021
*http://www.ncl.ucar.edu/Applications/read_ascii.shtml*
<http://www.ncl.ucar.edu/Applications/read_ascii.shtml>
*has many examples*
720 1440
-89.8750 -89.6250 -89.3750 -89.1250 -88.8750
-88.6250
-88.3750 -88.1250 -87.8750 -87.6250 -87.3750
-87.1250
-86.8750 -86.6250 -86.3750 -86.1250 -85.8750
-85.6250
[snip]
----
one header line; 6 columns
*http://www.ncl.ucar.edu/Document/Functions/Contributed/readAsciiTable.shtml*
<http://www.ncl.ucar.edu/Document/Functions/Contributed/readAsciiTable.shtml>
*See Example 1*
ncol = 6
nhead = 1
data = *readAsciiTable*("avhrr_seaice", ncol, "float", nhead)
nlat = 720
mlon = 1400
x0_2d = onedtooned(data(0,:), (/nlat,mlon/)) ; ==> (nlat,mlon)
On Mon, Mar 29, 2021 at 5:10 PM dale zuri <dalezuri at gmail.com> wrote:
> Dear NCL user,
> Could someone help me read this ASCII file in ncl? I would appreciate any
> example to plot this data.
>
> Thanks
> DZ
>
>
>
>
>
> avhrr_seaice
> <https://drive.google.com/file/d/1LH6OUfhESe14pkX7BvpKZhXwA0sZnb8h/view?usp=drive_web>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20210329/ee9281e7/attachment.html>
More information about the ncl-talk
mailing list