IAOCEA / healpix-convolution

Other
1 stars 2 forks source link

`xarray` API #17

Closed keewis closed 1 month ago

keewis commented 3 months ago

The xarray API mostly builds on top of the numpy API (with some deviations, like convolve). However, it is sufficiently different that I think we need to keep both separate.

Thus:

import healpix_convolution as hc  # numpy API
import healpix_convolution.xarray as xrhc  # xarray API

another option would be

import healpix_convolution.numpy as hc  # numpy API
import healpix_convolution.xarray as hc  # xarray API

(though that would mean we'd have to decide which to make the top-level API)

keewis commented 2 months ago

still needs tests for convolution using the xarray API, but otherwise this is ready