from_names

method of dascore.proc.coords.AppendDims source

from_names(
    empty_dims ,
    dim_kwargs ,
)-> ‘Self’

Return the operation for bare dimension names and named values.

A bare name is a dimension of length one, which is what the keyword form spells as name=1, so the two are one mapping here. They are merged by this method rather than declared as a field because a field named for the varargs would swallow append_dims(empty_dims=[1, 2]), which asks for a dimension named empty_dims. Keywords win over bare names.