@Dave-Allured  coordinates are a bad example as xarray by default will remove 
the attribute and instead present a special `coords` property with a python 
dictionary (mapping data structure) with references to the actual data 
variables.

Assuming that it won't do the above, this is the behavior I've observed:

`T:coordinates = "lon lat" ;` will be a python string `"lon lat"`
`string T:coordinates = "lon lat" ;`  will be a python string `"lon lat"`
`string T:coordinates = "lon", "lat" ;` will be a python list with strings 
`["lon", "lat"]`

A python list with a single string `["lon lat"]` appears to be encoded as a 
char array: `T:coordinates = "lon lat" ;`

I don't know how much of this is xarray doing magic, or the result of the 
python-netCDF4 library. I must admit that the last example would be very nice 
for the enumerated values (e.g. flag defs)

Do you or anyone else know what MATLAB does?

-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/cf-convention/cf-conventions/issues/141#issuecomment-410377827

Reply via email to