Skip to content

forward fill : transpose_coords=False #4167

Closed
@NickMortimer

Description

@NickMortimer

I'm building a DataArray and get the following future warning, but can't seem to find a way to pass
transpose_coords=False to ffill to keep current behavior?

        dsinput['soundspeed'] =(('runname','time','azimuth','depth','range'),(speed1[np.newaxis,np.newaxis,np.newaxis,:,:]))
        dsinput['soundspeed'] =dsinput['soundspeed'].ffill(dim='depth')

/local-home/mor582/miniconda3/envs/dev2/lib/python3.8/site-packages/xarray/core/missing.py:403: FutureWarning: This DataArray contains multi-dimensional coordinates. In the future, these coordinates will be transposed as well unless you specify transpose_coords=False.
return apply_ufunc()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions