Matlab 101: display a FITS image

Discussion et échanges sur l'utilisation de MatLab en spectroscopie

Matlab 101: display a FITS image

Postby admin » Tue Aug 16, 2016 9:17 pm

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
admin
Site Admin
 
Posts: 60
Joined: Wed Feb 16, 2011 1:36 pm

Return to MatLab

Who is online

Users browsing this forum: No registered users and 1 guest

x