00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
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