Home > mfitsio > cbass_write_image.m

cbass_write_image

PURPOSE ^

Function Name:

SYNOPSIS ^

function [IMAGE]=cbass_write_image(FILENAME);

DESCRIPTION ^

 Function Name:
    cbass_write_image

 Description: Writes healpix data to an a FITS file.

 Usage:
    cbass_write_image(fits{i},d.antenna0.writeHealpixDat,nside,npix,time1{1},time2{length(time2)});
  
    
 Arguments:
    fits{i}- String character for the fits filename
    d.antenna0.writeHealpixDat- data structure (columns) [npix I_mean Q1 Q2 U1 U2 N_OBS sig_I sig_Q1 sig_Q2 sig_U1 sig_U2]
    nside - healpix resolution parameter (64,128,256,512 etc..)
    npix - number of pixels (NB ! This must match the size of the d.antenna.writeHealpixDat struct or MATLAB won't like you)
    time1-Total scan start time [MJD]- This is written to the Header
    time2-total scan end time [MJD]- This is written to the header


 Type 'mfitsio_license' to display the MFITSIO licensing agreement.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % Function Name:
0002 %    cbass_write_image
0003 %
0004 % Description: Writes healpix data to an a FITS file.
0005 %
0006 % Usage:
0007 %    cbass_write_image(fits{i},d.antenna0.writeHealpixDat,nside,npix,time1{1},time2{length(time2)});
0008 %
0009 %
0010 % Arguments:
0011 %    fits{i}- String character for the fits filename
0012 %    d.antenna0.writeHealpixDat- data structure (columns) [npix I_mean Q1 Q2 U1 U2 N_OBS sig_I sig_Q1 sig_Q2 sig_U1 sig_U2]
0013 %    nside - healpix resolution parameter (64,128,256,512 etc..)
0014 %    npix - number of pixels (NB ! This must match the size of the d.antenna.writeHealpixDat struct or MATLAB won't like you)
0015 %    time1-Total scan start time [MJD]- This is written to the Header
0016 %    time2-total scan end time [MJD]- This is written to the header
0017 %
0018 %
0019 % Type 'mfitsio_license' to display the MFITSIO licensing agreement.
0020 
0021 function [IMAGE]=cbass_write_image(FILENAME);
0022 
0023 % Author: Charles Copley

Generated on Sun 14-Jun-2015 17:12:45 by m2html © 2005