Matlab 101: display a FITS image

Discussion et échanges sur l'utilisation de MatLab en spectroscopie
Post Reply
admin
Site Admin
Posts: 72
Joined: Wed Feb 16, 2011 1:36 pm

Matlab 101: display a FITS image

Post 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
Post Reply