[ncl-talk] About how to use a variable in str_get_filed

Dennis Shea shea at ucar.edu
Wed Dec 7 07:25:02 MST 2016


Not enough information:  What was the error message?

Also, including the, say, first 5 lines of the field being read would be
useful.

Regards




On Wed, Dec 7, 2016 at 3:56 AM, Tao Lu <hakufu.asano at gmail.com> wrote:

> Dear ncl-talk
>
> I wrote some codes to use str_get_field()
> ------------------------------------------------------------
> ----------------------------------------------------------
> number_of_dataline = toint(number_of_dataline_str)
> print (number_of_dataline)
> name = str_get_field(lines(0),8, delimiter)
> date = str_get_field(lines(1:number_of_dataline+1), 1, delimiter)
> ------------------------------------------------------------
> -----------------------------------------------------------
> Error occurred at "date".
>
> Could you give me some advice?
>
> Yours sincerely,
> Tao
>
> --
> ******************************************************
> 盧 涛 (ル タオ) 修士課程2年
>
> 〒112-8551 東京都文京区春日1-13-27
>
> 中央大学理工学研究科都市環境学専攻
>
> 河川・水文研究室(山田正教授)
>
>
> TEL: 03-3817-3406;   Phone: 070-2188-7509
> Email1: hakufu.asano at gmail.com <mail%3Amet.yamos at gmail.com>
> Email2: lutao at civil.chuo-u.ac.jp <mail%3Ayamoto at civil.chuo-u.ac.jp>
> *******************************************************
> ******************************************************
> Tao Lu    (M. Eng)
> Laboratory of River Engineering and Hydrology,
> Dept. of Civil and Environmental Engineering,
> Graduate School of Science and Engineering,
> Chuo University
>
> 1-13-27,Kasuga,Bunkyo-ku,Tokyo
> 112-8551, Japan
> TEL: 03-3817-1805;   Phone: 070-2188-7509
> Email1: hakufu.asano at gmail.com <mail%3Amet.yamos at gmail.com>
> Email2: lutao at civil.chuo-u.ac.jp <mail%3Ayamoto at civil.chuo-u.ac.jp>
> *****************************************************
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20161207/9d5889e2/attachment.html 


More information about the ncl-talk mailing list