00001
00004 #ifndef _DRMS_FITSRW_H
00005 #define _DRMS_FITSRW_H
00006
00007 #include "drms_types.h"
00008 #include "cfitsio.h"
00009
00010 DRMS_Array_t *drms_fitsrw_read(DRMS_Env_t *env,
00011 const char *filename,
00012 int readraw,
00013 HContainer_t **keywords,
00014 int *status);
00015 void drms_fitsrw_freekeys(HContainer_t **keywords);
00016 int drms_fitsrw_readslice(DRMS_Env_t *env,
00017 const char *filename,
00018 int naxis,
00019 int *start,
00020 int *end,
00021 DRMS_Array_t **arr);
00022 int drms_fitsrw_writeslice(DRMS_Env_t *env,
00023 DRMS_Segment_t *seg,
00024 const char *filename,
00025 int naxis,
00026 int *start,
00027 int *end,
00028 DRMS_Array_t *arrayout);
00029 int drms_fitsrw_writeslice_ext(DRMS_Env_t *env,
00030 DRMS_Segment_t *seg,
00031 const char *filename,
00032 int naxis,
00033 int *start,
00034 int *end,
00035 int *finaldims,
00036 DRMS_Array_t *arrayout);
00037 int drms_fitsrw_GetSimpleFromInfo(CFITSIO_IMAGE_INFO *info);
00038 int drms_fitsrw_GetExtendFromInfo(CFITSIO_IMAGE_INFO *info);
00039 long long drms_fitsrw_GetBlankFromInfo(CFITSIO_IMAGE_INFO *info);
00040 double drms_fitsrw_GetBscaleFromInfo(CFITSIO_IMAGE_INFO *info);
00041 double drms_fitsrw_GetBzeroFromInfo(CFITSIO_IMAGE_INFO *info);
00042
00043 #endif