[ncl-talk] Issue with namelist when using strings with spaces

Andrew Kren - NOAA Federal andrew.kren at noaa.gov
Mon Aug 23 16:36:45 MDT 2021


I was actually sending the code to Dennis Shea, he wrote to me offline.
He's looking at it. Thanks.

On Mon, Aug 23, 2021 at 6:35 PM Adam Phillips <asphilli at ucar.edu> wrote:

> Hi Andrew,
> Can you send the snippet of code you are using here? If you do not want to
> send it to the list, you can send it to me directly.
> Adam
>
> On Fri, Aug 20, 2021 at 4:07 PM Andrew Kren - NOAA Federal via ncl-talk <
> ncl-talk at mailman.ucar.edu> wrote:
>
>> Hi there,
>>
>> I made a namelist and one of my string variables has a city with spaces
>> in between. By the guide on your site, spaces are treated as delimiters.
>> Thus, I followed the guidance to use "<...>" to treat it as one string.
>> However, even when doing this, I still get two strings. Is there a glitch?
>> I have version 6.6.2.
>>
>> Variable: cwa_cities
>> Type: string
>> Total Size: 248 bytes
>>             31 values
>> Number of Dimensions: 1
>> Dimensions and sizes: [31]
>> Coordinates:
>> Number Of Attributes: 1
>>   _FillValue : missing
>> (0) <Chapel
>> (1) Hill>
>>
>> Thanks,
>>
>> --
>>
>> Andrew Kren
>> Meteorologist
>> NOAA's National Weather Service
>> Raleigh Forecast Office
>> 1005 Capability Drive, Suite 300
>> Raleigh, North Carolina 27606
>> voice: 919-326-1035
>> mailto: andrew.kren at noaa.govhttp://www.weather.gov/rah
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at mailman.ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> https://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
>
> --
> Adam Phillips
> Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
> www.cgd.ucar.edu/staff/asphilli/   303-497-1726
>
> <http://www.cgd.ucar.edu/staff/asphilli>
>


-- 

Andrew Kren
Meteorologist
NOAA's National Weather Service
Raleigh Forecast Office
1005 Capability Drive, Suite 300
Raleigh, North Carolina 27606
voice: 919-326-1035
mailto: andrew.kren at noaa.govhttp://www.weather.gov/rah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20210823/37e8cc9c/attachment.html>


More information about the ncl-talk mailing list