ccFitsTools.h

00001 /*******************************************************************************
00002 *   M3:  ccFitsTools.h                                                *
00003 *                                                                              *
00004 *   Version 1.0 May 2004                                                       *
00005 *                                                                              *
00006 *   Copyright (C) 2004  C.M. Cantalupo                                         *
00007 *                                                                              *
00008 *   This program is free software; you can redistribute it and/or modify       *
00009 *   it under the terms of the GNU General Public License as published by       *
00010 *   the Free Software Foundation; either version 2 of the License, or          *
00011 *   (at your option) any later version.                                        *
00012 *                                                                              *
00013 *   This program is distributed in the hope that it will be useful,            *
00014 *   but WITHOUT ANY WARRANTY; without even the implied warranty of             *
00015 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *
00016 *   GNU General Public License for more details.                               *
00017 *                                                                              *
00018 *   You should have received a copy of the GNU General Public License          *
00019 *   along with this program; if not, write to the Free Software                *
00020 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  *
00021 *                                                                              *
00022 *******************************************************************************/
00023 
00024 #ifndef _H_ccFitsTools
00025 #define _H_ccFitsTools
00026 
00027 #include <stdlib.h>
00028 #include <stdio.h>
00029 #include "M3_system.h"
00030 #include <fitsio.h>
00031 
00032 #define FITS_PAGE_SIZE 2880
00033 #define FITS_LINE_SIZE 80
00034 #define NUM_FITS_HEADERS 2
00035 #define FITS_BLOCK_NUMS 0
00036 #define FITS_BLOCK_NAMES 1
00037 
00038 void f77_flipByteOrder( void *a, int64_t *nWords, int32_t *wordSize );
00039 void flipByteOrder( void *a , long long int nWords, int wordSize);
00040 void skipFitsHeaders( FILE *fid, int nHeaders);
00041 int testEndian(void);
00042 
00043 int read_fits_tableblock(fitsfile *fptr, long firstrow, long lastrow, double* nulval, int nfields, int usenames, char **names, int *colnums, double *data);
00044 
00045 int write_fits_tableblock(fitsfile *fptr, long firstrow, long lastrow, double* nulval, int nfields, int usenames, char **names, int *colnums, double *data);
00046 
00047 #endif

Generated on Mon Nov 24 10:05:11 2008 for M3 by  doxygen 1.5.3-20071008