--
You received this message because you are subscribed to the Google Groups "xarray" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xarray+un...@googlegroups.com.
To post to this group, send email to xar...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xarray/255696a1-bd55-4be5-81e3-bf8c65ec08de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I'm reading in a n-dimensional memory mapped array using the astropy library (it is a FITS file, if that is important). Is it possible to pass this memory mapped structure into xarray and tell it to recognize the data in chunks using dask?
http://dask.pydata.org/en/latest/array-creation.htmlI think dask's da.from_array function should work perfectly for this. Take a look at these docs for guidance from the dask side:You can pass dask arrays into xarray data structures in the exact same way as numpy arrays.
@Ryan - Doesn't memmaping only allocate the memory when I slice into the memmap or access the memmap elements? I did a few tests using the astropy memmap functionality and that's what I noticed, but I could have been doing them wrong.
--
Thanks,
Krishna
You received this message because you are subscribed to the Google Groups "xarray" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xarray+un...@googlegroups.com.
To post to this group, send email to xar...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xarray/e28ad0dd-2bdf-4e9f-9f21-7c1457d726fa%40googlegroups.com.