image_to_dask¶
- casa_formats_io.image_to_dask(imagename, memmap=True, mask=False, target_chunksize=None)¶
Read a CASA image (a folder containing a
table.f0_TSM0
file) into a dask array.- Parameters:
- imagenamestr
The filename of the CASA image directory
- memmapbool, optional
Whether to use memory mapping or load the full cube into memory
- maskstr or bool, optional
If set to a string, should be the name of the mask (e.g.
mask1
) and the mask is returned instead of the data. If True,mask0
will be used.- target_chunksizeint
The desired dask chunk size - CASA chunks are aggregated into blocks of approximately this number of elements.