Page 1 of 1

Matlab 101: display a FITS image

Posted: Tue Aug 16, 2016 9:17 pm
by admin
Hello,


you want to start in MAtLab, here is how to display a 2D FITS images (for exemple from your CCD camera).

display it in 2D grays scale:

Code: Select all

Data=fitsread('alpy_alpboo.fit');
pcolor(Data), shading interp, colormap gray
or in color scale:

Code: Select all

Data=fitsread('alpy_alpboo.fit');
pcolor(Data), shading interp
Then in figure, clic on menu 'Insert' 'color bar'; right click on the color bar to change options! right clic / interactive colormap....


Thanks Marco for this trick! :-)

Cordialement,
Olivier Thizy