Write in the header of a FITS file

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

Write in the header of a FITS file

Postby Stephane Charbonnel » Mon Sep 05, 2016 1:43 pm

Hello,

A topic just to confirm a procedure :
In order to modify a keyword in a FITS file or the value of a keyword, I use the function "fits_write" I have found in the mfits File Exchange : https://fr.mathworks.com/matlabcentral/ ... 8055-mfits

Have you an other procedure to modify just header of a FITS file ?

Clear Skies
Stephane
Stephane Charbonnel
 
Posts: 57
Joined: Thu Sep 29, 2011 10:20 pm
Location: FR, 49 ou 44

Re: Write in the header of a FITS file

Postby Francois Teyssier » Wed Sep 07, 2016 5:22 pm

Salut Stéphane,


Tu peux aussi modifier directement la cellule de la sous-sous-matrice Keywords de Header

Par exemple pour un spectre traité par ISIS

Resolution SPE_RPOW
header.PrimaryData.Keywords {23,2} = 1000

François
Francois Teyssier
 
Posts: 1149
Joined: Fri Sep 23, 2011 1:01 pm
Location: Rouen


Return to MatLab

Who is online

Users browsing this forum: No registered users and 1 guest

cron

x