Skip to content

UxDataArray.astype() should return UxDataArray, not xarray.DataArray #1737

Description

@Sevans711

Version

2026.08.1

How did you install UXarray?

Source

What happened?

(Bug discovered by @erogluorhan) Calling UxDataArray.astype(...) returns an xarray.DataArray.

What did you expect to happen?

It should return a UxDataArray instead.

Can you provide a MCVE to repoduce the bug?

import uxarray as ux
uxarr = ux.tutorial.open_dataset('quad-hexagon')['t2m']
result = uxarr.astype('float64')
type(result)  # expected UxDataArray; got xarray.DataArray.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions