Skip to content

store_coords doesn't like a string entry #3

Description

@redlegjed

Doing this does not work

self.store_coords('name','a string')

It results in xarray throwing an error about there already being a scalar called 'name'.

What does work is:

self.store_coords('name',['a string'])

Put brackets around the string to make it a list.

It seems that np.asarray that is used in store_coords doesn't present a string in a format that xarray likes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions