[ncl-talk] Default New-line Character

Dennis Shea shea at ucar.edu
Wed Mar 1 14:24:28 MST 2017


A side point: character strings are terminated as follows:

ncl 0> str = "foo"
ncl 1> chr = stringtochar(str)
ncl 2> print(chr)

Variable: chr
Type: character
Total Size: 4 bytes
            4 values
Number of Dimensions: 1
Dimensions and sizes:   [4]
Coordinates:
(0)     f
(1)     o
(2)     o
(3)     0x00     <==== extra

On Wed, Mar 1, 2017 at 12:50 PM, David Brown <dbrown at ucar.edu> wrote:

> I may be proved wrong, but I think that since NCL really only works
> (for now) in a Unix-like environment, even when run on Windows, the
> standard character at the end of a line would be the newline
> character, usually written as '\n'. This is ascii character 10 in
> decimal.
>  -dave
>
>
> On Wed, Mar 1, 2017 at 3:46 AM, Michelle Serino <mmserino at tamu.edu> wrote:
> > Good morning everyone,
> >
> > I just have a quick question that I would like to confirm.  In an NCL
> script
> > that writes multiple rows of data to a csv file, without any other
> > specifications, what is the default new-line character for that created
> > file?  I appreciate the help.
> >
> > Best regards,
> >
> > Michelle
> >
> > Michelle M. Serino
> > M.S. Candidate
> > Texas A&M University
> > Atmospheric Sciences Dept.
> > Eller O&M, 1017E
> > College Station, TX 77843
> > (484) 769-0949
> >
> > _______________________________________________
> > ncl-talk mailing list
> > ncl-talk at ucar.edu
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> >
> _______________________________________________
> 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/20170301/2187b42a/attachment.html 


More information about the ncl-talk mailing list