[ncl-talk] Default New-line Character

Michelle Serino mmserino at tamu.edu
Thu Mar 2 01:46:01 MST 2017


Thank you both David and Dennis for the information!

Michelle M. Serino
M.S. Candidate
Texas A&M University
Atmospheric Sciences Dept.
Eller O&M, 1017E
College Station, TX 77843
(484) 769-0949

On Wed, Mar 1, 2017 at 3:24 PM, Dennis Shea <shea at ucar.edu> wrote:

> 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
>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__mailman.ucar.edu_mailman_listinfo_ncl-2Dtalk&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=axzYETCU2Q6BwUQ0oChDwWUa0fCFFhoM2SO1K3AgTeA&m=_CFDWEtvT2Jm4oaw96LhZN8BqSvvEN59x548caMZyg0&s=dKwyEEOkRZUgakVNb02-3GX2vCgcpGrK6lK1zr8Ym3Q&e=>
>> >
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__mailman.ucar.edu_mailman_listinfo_ncl-2Dtalk&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=axzYETCU2Q6BwUQ0oChDwWUa0fCFFhoM2SO1K3AgTeA&m=_CFDWEtvT2Jm4oaw96LhZN8BqSvvEN59x548caMZyg0&s=dKwyEEOkRZUgakVNb02-3GX2vCgcpGrK6lK1zr8Ym3Q&e=>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170302/5d7c94a1/attachment.html 


More information about the ncl-talk mailing list