meggart / PyYAXArrays.jl

MIT License
2 stars 1 forks source link

DD/Python interop #3

Open rafaqz opened 3 weeks ago

rafaqz commented 3 weeks ago

This may help:

https://github.com/arviz-devs/ArviZPythonPlots.jl/blob/main/src/xarray.jl

meggart commented 3 weeks ago

Thanks a lot for the pointer. I would actually need the other direction, i.e. opening a (potentially kerchunk) dataset in python and then make a DD wrapper around the lazy data. This is currently working in principle, the only problem I experience is with time types, PythonCall currently gives up when trying to convert a np.datetime64 object to julia, which is why I factored out https://github.com/meggart/DateTimes64.jl from Zarr.jl so that time axes can also be wrapped in a copy-free and binary-compatible way.