Main Content

matlab.io.fits.setTileDim

Set tile dimensions

Syntax

fits.setTileDim(fptr,tiledims)

Description

fits.setTileDim(fptr,tiledims) specifies the size of the image compression tiles to be used when creating a compressed image.

This function corresponds to the fits_set_tile_dim function in the CFITSIO library C API.

Examples

import matlab.io.*
fptr = fits.createFile('myfile.fits');
fits.setCompressionType(fptr,'RICE_1');
fits.setTileDim(fptr,[64 128]);
fits.createImg(fptr,'byte_img',[256 512]);
data = ones(256,512,'uint8');
fits.writeImg(fptr,data);
fits.closeFile(fptr);
fitsdisp('myfile.fits','mode','full');