Description
Is your feature request related to a problem? Please describe.
I'm always frustrated that I have to change the format of my data when calling a method from a sub-package.
Describe the solution you'd like
I'd like the input-objects to be automatically transformed to the correct type by earthkit, usinng the functionality that is available in earthkit-data.
Describe alternatives you've considered
No response
Additional context
Implementation will require knowledge of the data formats required by the sub-package methods. This can be inspected using:
- Type-setting
- Consistant signitures in variable names, e.g.
data = np.ndarray
anddataarray = xr.DataArray
- Bespoke setting at the function level
For efficient code implementation, it is probably best to use function wrappers instead of decorators. Decorators would require code additions for all functions in the sub-package, whereas a wrapped can be applied programatically. Negative aspect is it may be slower at importing.
Organisation
ECMWF