Replies: 2 comments
-
|
an idea that can work alongside to this is a can assume |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
From #13
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
A problem with astropy SkyCoord is that it uses a structured dtype ndarray (i.e.
sky_coord.data._values.dtypeyieldsdtype([('lon', '<f8'), ('lat', '<f8')])).While xarray could load this into a DataArray:
.values['field_name']From the general philosophy of xarray, it's more appropriate to unpack structured arrays and represent fields as separate variables in a Dataset when using xarray.
An API for this could look like following, which converts skycoords to xarray with astropy Quantities:
and back to SkyCoord:
Beta Was this translation helpful? Give feedback.
All reactions