[ncl-talk] reading station data

Dave Allured - NOAA Affiliate dave.allured at noaa.gov
Tue Feb 3 15:50:16 MST 2026


Debasish, that is a CSV file with header lines.  Use *asciiread* to read
the entire file as strings.  Then use string parsing functions such as
*str_split_csv* and/or *str_get_field* to get individual columns.  Examples
*csv_3.ncl* and *csv4_ncl* are close to what you want to do.

      https://www.ncl.ucar.edu/Applications/read_csv.shtml


On Tue, Feb 3, 2026 at 12:38 PM Debasish Hazra via ncl-talk <
ncl-talk at mailman.ucar.edu> wrote:

> Hi,
> I am trying to read station data with header and column of data, with
> COlumn lengths are not equal in files and have attached one example file in
> the attachment.  Can someone help to point what ascii read command to be
> used to extract time and column information from these files.
> Thanks
> Debasish.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20260203/21cd5337/attachment.htm>


More information about the ncl-talk mailing list