Function Name: fits_write Description: Writes an image and header to a FITS file. 'BITPIX', 'NAXIS', and 'SIMPLE' keywords are ignored. This information is automatically calculated based on the dimensions and the data type of the input image. Usage: fits_write(FILENAME, HEADER, IMAGE); Arguments: FILENAME: A character array representing the filename. HEADER: The fits header as a structure array. IMAGE: The image as a MATLAB array. Type 'mfitsio_license' to display the MFITSIO licensing agreement.
0001 % Function Name: 0002 % fits_write 0003 % 0004 % Description: Writes an image and header to a FITS file. 'BITPIX', 'NAXIS', 0005 % and 'SIMPLE' keywords are ignored. This information is automatically 0006 % calculated based on the dimensions and the data type of the input image. 0007 % 0008 % Usage: 0009 % fits_write(FILENAME, HEADER, IMAGE); 0010 % 0011 % Arguments: 0012 % FILENAME: A character array representing the filename. 0013 % HEADER: The fits header as a structure array. 0014 % IMAGE: The image as a MATLAB array. 0015 % 0016 % Type 'mfitsio_license' to display the MFITSIO licensing agreement. 0017 0018 function fits_write(FILENAME, HEADER, IMAGE) 0019 fits_write_image(FILENAME, IMAGE, HEADER); 0020 % fits_write_header(FILENAME, HEADER); 0021 0022 % Author: Damian Eads <eads@lanl.gov> 0023 % 0024 % This software and ancillary information (herein called ``Software'') 0025 % called MFITSIO is made available under the terms described here. The 0026 % SOFTWARE has been approved for release with associated LA-CC number: 0027 % LA-CC-02-085. 0028 % 0029 % This SOFTWARE has been authored by an employee or employees of the 0030 % University of California, operator of the Los Alamos National Laboratory 0031 % under Contract No. W-7405-ENG-36 with the U.S. Department of Energy. 0032 % The U.S. Government has rights to use, reproduce, and distribute this 0033 % SOFTWARE. The public may copy, distribute, prepare derivative works and 0034 % publicly display this SOFTWARE without charge, provided that this Notice 0035 % and any statement of authorship are reproduced on all copies. Neither 0036 % the Government nor the University makes any warranty, express or 0037 % implied, or assumes any liability or responsibility for the use of this 0038 % SOFTWARE. If SOFTWARE is modified to produce derivative works, such 0039 % modified SOFTWARE should be clearly marked, so as not to confuse it with 0040 % the version available from LANL.