cfitsio
3390
|
Data Structures | |
struct | tcolumn |
struct | FITSfile |
struct | fitsfile |
struct | iteratorCol |
struct | wtbarr |
struct | PixelFilter |
Macros | |
#define | CFITSIO_VERSION 3.39 |
#define | CFITSIO_MINOR 39 |
#define | CFITSIO_MAJOR 3 |
#define | CFITSIO_SONAME 5 |
#define | CFITS_API |
#define | OFF_T long |
#define | USE_LL_SUFFIX 1 |
#define | LONGLONG_TYPE |
#define | LONGLONG_MAX 9223372036854775807LL /* max 64-bit integer */ |
#define | LONGLONG_MIN (-LONGLONG_MAX -1LL) /* min 64-bit integer */ |
#define | NIOBUF 40 /* number of IO buffers to create (default = 40) */ |
#define | IOBUFLEN 2880 /* size in bytes of each IO buffer (DONT CHANGE!) */ |
#define | FLEN_FILENAME 1025 /* max length of a filename */ |
#define | FLEN_KEYWORD 75 /* max length of a keyword (HIERARCH convention) */ |
#define | FLEN_CARD 81 /* length of a FITS header card */ |
#define | FLEN_VALUE 71 /* max length of a keyword value string */ |
#define | FLEN_COMMENT 73 /* max length of a keyword comment string */ |
#define | FLEN_ERRMSG 81 /* max length of a FITSIO error message */ |
#define | FLEN_STATUS 31 /* max length of a FITSIO status text string */ |
#define | TBIT 1 /* codes for FITS table data types */ |
#define | TBYTE 11 |
#define | TSBYTE 12 |
#define | TLOGICAL 14 |
#define | TSTRING 16 |
#define | TUSHORT 20 |
#define | TSHORT 21 |
#define | TUINT 30 |
#define | TINT 31 |
#define | TULONG 40 |
#define | TLONG 41 |
#define | TINT32BIT 41 /* used when returning datatype of a column */ |
#define | TFLOAT 42 |
#define | TLONGLONG 81 |
#define | TDOUBLE 82 |
#define | TCOMPLEX 83 |
#define | TDBLCOMPLEX 163 |
#define | TYP_STRUC_KEY 10 |
#define | TYP_CMPRS_KEY 20 |
#define | TYP_SCAL_KEY 30 |
#define | TYP_NULL_KEY 40 |
#define | TYP_DIM_KEY 50 |
#define | TYP_RANG_KEY 60 |
#define | TYP_UNIT_KEY 70 |
#define | TYP_DISP_KEY 80 |
#define | TYP_HDUID_KEY 90 |
#define | TYP_CKSUM_KEY 100 |
#define | TYP_WCS_KEY 110 |
#define | TYP_REFSYS_KEY 120 |
#define | TYP_COMM_KEY 130 |
#define | TYP_CONT_KEY 140 |
#define | TYP_USER_KEY 150 |
#define | INT32BIT int /* 32-bit integer datatype. Currently this */ |
#define | BYTE_IMG 8 /* BITPIX code values for FITS image types */ |
#define | SHORT_IMG 16 |
#define | LONG_IMG 32 |
#define | LONGLONG_IMG 64 |
#define | FLOAT_IMG -32 |
#define | DOUBLE_IMG -64 |
#define | SBYTE_IMG 10 |
#define | USHORT_IMG 20 |
#define | ULONG_IMG 40 |
#define | IMAGE_HDU 0 /* Primary Array or IMAGE HDU */ |
#define | ASCII_TBL 1 /* ASCII table HDU */ |
#define | BINARY_TBL 2 /* Binary table HDU */ |
#define | ANY_HDU -1 /* matches any HDU type */ |
#define | READONLY 0 /* options when opening a file */ |
#define | READWRITE 1 |
#define | FLOATNULLVALUE -9.11912E-36F |
#define | DOUBLENULLVALUE -9.1191291391491E-36 |
#define | NO_DITHER -1 |
#define | SUBTRACTIVE_DITHER_1 1 |
#define | SUBTRACTIVE_DITHER_2 2 |
#define | MAX_COMPRESS_DIM 6 |
#define | RICE_1 11 |
#define | GZIP_1 21 |
#define | GZIP_2 22 |
#define | PLIO_1 31 |
#define | HCOMPRESS_1 41 |
#define | BZIP2_1 51 /* not publicly supported; only for test purposes */ |
#define | NOCOMPRESS -1 |
#define | TRUE 1 |
#define | FALSE 0 |
#define | CASESEN 1 /* do case-sensitive string match */ |
#define | CASEINSEN 0 /* do case-insensitive string match */ |
#define | GT_ID_ALL_URI 0 /* hierarchical grouping parameters */ |
#define | GT_ID_REF 1 |
#define | GT_ID_POS 2 |
#define | GT_ID_ALL 3 |
#define | GT_ID_REF_URI 11 |
#define | GT_ID_POS_URI 12 |
#define | OPT_RM_GPT 0 |
#define | OPT_RM_ENTRY 1 |
#define | OPT_RM_MBR 2 |
#define | OPT_RM_ALL 3 |
#define | OPT_GCP_GPT 0 |
#define | OPT_GCP_MBR 1 |
#define | OPT_GCP_ALL 2 |
#define | OPT_MCP_ADD 0 |
#define | OPT_MCP_NADD 1 |
#define | OPT_MCP_REPL 2 |
#define | OPT_MCP_MOV 3 |
#define | OPT_MRG_COPY 0 |
#define | OPT_MRG_MOV 1 |
#define | OPT_CMT_MBR 1 |
#define | OPT_CMT_MBR_DEL 11 |
#define | VALIDSTRUC 555 /* magic value used to identify if structure is valid */ |
#define | InputCol 0 /* flag for input only iterator column */ |
flag for input only iterator column More... | |
#define | InputOutputCol 1 /* flag for input and output iterator column */ |
flag for input and output iterator column More... | |
#define | OutputCol 2 /* flag for output only iterator column */ |
flag for output only iterator column More... | |
#define | WCSLIB_GETWCSTAB |
#define | CREATE_DISK_FILE -106 /* create disk file, without extended filename syntax */ |
error status code. create disk file, without extended filename syntax/ More... | |
#define | OPEN_DISK_FILE -105 /* open disk file, without extended filename syntax */ |
error status code. open disk file, without extended filename syntax/ More... | |
#define | SKIP_TABLE -104 /* move to 1st image when opening file */ |
error status code. move to 1st image when opening file/ More... | |
#define | SKIP_IMAGE -103 /* move to 1st table when opening file */ |
error status code. move to 1st table when opening file/ More... | |
#define | SKIP_NULL_PRIMARY -102 /* skip null primary array when opening file */ |
error status code. skip null primary array when opening file/ More... | |
#define | USE_MEM_BUFF -101 /* use memory buffer when opening file */ |
error status code. use memory buffer when opening file/ More... | |
#define | OVERFLOW_ERR -11 /* overflow during datatype conversion */ |
error status code. overflow during datatype conversion/ More... | |
#define | PREPEND_PRIMARY -9 /* used in ffiimg to insert new primary array */ |
error status code. used in ffiimg to insert new primary array/ More... | |
#define | SAME_FILE 101 /* input and output files are the same */ |
error status code. input and output files are the same/ More... | |
#define | TOO_MANY_FILES 103 /* tried to open too many FITS files */ |
error status code. tried to open too many FITS files/ More... | |
#define | FILE_NOT_OPENED 104 /* could not open the named file */ |
#define | FILE_NOT_CREATED 105 /* could not create the named file */ |
error status code. could not create the named file/ More... | |
#define | WRITE_ERROR 106 /* error writing to FITS file */ |
error status code. error writing to FITS file/ More... | |
#define | END_OF_FILE 107 /* tried to move past end of file */ |
error status code. tried to move past end of file/ More... | |
#define | READ_ERROR 108 /* error reading from FITS file */ |
error status code. error reading from FITS file/ More... | |
#define | FILE_NOT_CLOSED 110 /* could not close the file */ |
error status code. could not close the file/ More... | |
#define | ARRAY_TOO_BIG 111 /* array dimensions exceed internal limit */ |
error status code. array dimensions exceed internal limit/ More... | |
#define | READONLY_FILE 112 /* Cannot write to readonly file */ |
error status code. Cannot write to readonly file/ More... | |
#define | MEMORY_ALLOCATION 113 /* Could not allocate memory */ |
error status code. Could not allocate memory/ More... | |
#define | BAD_FILEPTR 114 /* invalid fitsfile pointer */ |
error status code. invalid fitsfile pointer/ More... | |
#define | NULL_INPUT_PTR 115 /* NULL input pointer to routine */ |
error status code. NULL input pointer to routine/ More... | |
#define | SEEK_ERROR 116 /* error seeking position in file */ |
error status code. error seeking position in file/ More... | |
#define | BAD_URL_PREFIX 121 /* invalid URL prefix on file name */ |
error status code. invalid URL prefix on file name/ More... | |
#define | TOO_MANY_DRIVERS 122 /* tried to register too many IO drivers */ |
error status code. tried to register too many IO drivers/ More... | |
#define | DRIVER_INIT_FAILED 123 /* driver initialization failed */ |
error status code. driver initialization failed/ More... | |
#define | NO_MATCHING_DRIVER 124 /* matching driver is not registered */ |
error status code. matching driver is not registered/ More... | |
#define | URL_PARSE_ERROR 125 /* failed to parse input file URL */ |
error status code. failed to parse input file URL/ More... | |
#define | RANGE_PARSE_ERROR 126 /* failed to parse input file URL */ |
error status code. failed to parse input file URL/ More... | |
#define | SHARED_ERRBASE (150) |
error status code More... | |
#define | SHARED_BADARG (SHARED_ERRBASE + 1) |
error status code More... | |
#define | SHARED_NULPTR (SHARED_ERRBASE + 2) |
error status code More... | |
#define | SHARED_TABFULL (SHARED_ERRBASE + 3) |
error status code More... | |
#define | SHARED_NOTINIT (SHARED_ERRBASE + 4) |
error status code More... | |
#define | SHARED_IPCERR (SHARED_ERRBASE + 5) |
error status code More... | |
#define | SHARED_NOMEM (SHARED_ERRBASE + 6) |
error status code More... | |
#define | SHARED_AGAIN (SHARED_ERRBASE + 7) |
error status code More... | |
#define | SHARED_NOFILE (SHARED_ERRBASE + 8) |
error status code More... | |
#define | SHARED_NORESIZE (SHARED_ERRBASE + 9) |
error status code More... | |
#define | HEADER_NOT_EMPTY 201 /* header already contains keywords */ |
error status code header already contains keywords/ More... | |
#define | KEY_NO_EXIST 202 /* keyword not found in header */ |
error status code keyword not found in header/ More... | |
#define | KEY_OUT_BOUNDS 203 /* keyword record number is out of bounds */ |
error status code keyword record number is out of bounds/ More... | |
#define | VALUE_UNDEFINED 204 /* keyword value field is blank */ |
error status code keyword value field is blank/ More... | |
#define | NO_QUOTE 205 /* string is missing the closing quote */ |
error status code string is missing the closing quote/ More... | |
#define | BAD_INDEX_KEY 206 /* illegal indexed keyword name */ |
error status code illegal indexed keyword name/ More... | |
#define | BAD_KEYCHAR 207 /* illegal character in keyword name or card */ |
error status code illegal character in keyword name or card/ More... | |
#define | BAD_ORDER 208 /* required keywords out of order */ |
error status code required keywords out of order/ More... | |
#define | NOT_POS_INT 209 /* keyword value is not a positive integer */ |
error status code keyword value is not a positive integer/ More... | |
#define | NO_END 210 /* couldn't find END keyword */ |
error status code couldn't find END keyword/ More... | |
#define | BAD_BITPIX 211 /* illegal BITPIX keyword value*/ |
error status code illegal BITPIX keyword value More... | |
#define | BAD_NAXIS 212 /* illegal NAXIS keyword value */ |
error status code illegal NAXIS keyword value/ More... | |
#define | BAD_NAXES 213 /* illegal NAXISn keyword value */ |
error status code illegal NAXISn keyword value/ More... | |
#define | BAD_PCOUNT 214 /* illegal PCOUNT keyword value */ |
error status code illegal PCOUNT keyword value/ More... | |
#define | BAD_GCOUNT 215 /* illegal GCOUNT keyword value */ |
error status code illegal GCOUNT keyword value/ More... | |
#define | BAD_TFIELDS 216 /* illegal TFIELDS keyword value */ |
error status code illegal TFIELDS keyword value/ More... | |
#define | NEG_WIDTH 217 /* negative table row size */ |
error status code negative table row size/ More... | |
#define | NEG_ROWS 218 /* negative number of rows in table */ |
error status code negative number of rows in table/ More... | |
#define | COL_NOT_FOUND 219 /* column with this name not found in table */ |
error status code column with this name not found in table/ More... | |
#define | BAD_SIMPLE 220 /* illegal value of SIMPLE keyword */ |
error status code illegal value of SIMPLE keyword / More... | |
#define | NO_SIMPLE 221 /* Primary array doesn't start with SIMPLE */ |
error status code Primary array doesn't start with SIMPLE/ More... | |
#define | NO_BITPIX 222 /* Second keyword not BITPIX */ |
error status code Second keyword not BITPIX/ More... | |
#define | NO_NAXIS 223 /* Third keyword not NAXIS */ |
error status code Third keyword not NAXIS/ More... | |
#define | NO_NAXES 224 /* Couldn't find all the NAXISn keywords */ |
error status code Couldn't find all the NAXISn keywords/ More... | |
#define | NO_XTENSION 225 /* HDU doesn't start with XTENSION keyword */ |
error status code HDU doesn't start with XTENSION keyword/ More... | |
#define | NOT_ATABLE 226 /* the CHDU is not an ASCII table extension */ |
error status code the CHDU is not an ASCII table extension/ More... | |
#define | NOT_BTABLE 227 /* the CHDU is not a binary table extension */ |
error status code the CHDU is not a binary table extension/ More... | |
#define | NO_PCOUNT 228 /* couldn't find PCOUNT keyword */ |
error status code couldn't find PCOUNT keyword/ More... | |
#define | NO_GCOUNT 229 /* couldn't find GCOUNT keyword */ |
error status code couldn't find GCOUNT keyword/ More... | |
#define | NO_TFIELDS 230 /* couldn't find TFIELDS keyword */ |
error status code couldn't find TFIELDS keyword/ More... | |
#define | NO_TBCOL 231 /* couldn't find TBCOLn keyword */ |
error status code couldn't find TBCOLn keyword/ More... | |
#define | NO_TFORM 232 /* couldn't find TFORMn keyword */ |
error status code couldn't find TFORMn keyword/ More... | |
#define | NOT_IMAGE 233 /* the CHDU is not an IMAGE extension */ |
error status code the CHDU is not an IMAGE extension/ More... | |
#define | BAD_TBCOL 234 /* TBCOLn keyword value < 0 or > rowlength */ |
error status code TBCOLn keyword value < 0 or > rowlength/ More... | |
#define | NOT_TABLE 235 /* the CHDU is not a table */ |
error status code the CHDU is not a table/ More... | |
#define | COL_TOO_WIDE 236 /* column is too wide to fit in table */ |
error status code column is too wide to fit in table/ More... | |
#define | COL_NOT_UNIQUE 237 /* more than 1 column name matches template */ |
error status code more than 1 column name matches template/ More... | |
#define | BAD_ROW_WIDTH 241 /* sum of column widths not = NAXIS1 */ |
error status code sum of column widths not = NAXIS1/ More... | |
#define | UNKNOWN_EXT 251 /* unrecognizable FITS extension type */ |
error status code unrecognizable FITS extension type More... | |
#define | UNKNOWN_REC 252 /* unrecognizable FITS record */ |
error status code unrecognizable FITS record More... | |
#define | END_JUNK 253 /* END keyword is not blank */ |
error status code END keyword is not blank More... | |
#define | BAD_HEADER_FILL 254 /* Header fill area not blank */ |
error status code Header fill area not blank More... | |
#define | BAD_DATA_FILL 255 /* Data fill area not blank or zero */ |
error status code Data fill area not blank or zero More... | |
#define | BAD_TFORM 261 /* illegal TFORM format code */ |
error status code illegal TFORM format code More... | |
#define | BAD_TFORM_DTYPE 262 /* unrecognizable TFORM datatype code */ |
error status code unrecognizable TFORM datatype code/ More... | |
#define | BAD_TDIM 263 /* illegal TDIMn keyword value */ |
error status code illegal TDIMn keyword value/ More... | |
#define | BAD_HEAP_PTR 264 /* invalid BINTABLE heap address */ |
error status code invalid BINTABLE heap address/ More... | |
#define | BAD_HDU_NUM 301 /* HDU number < 1 or > MAXHDU */ |
error status code HDU number < 1 or > MAXHDU/ More... | |
#define | BAD_COL_NUM 302 /* column number < 1 or > tfields */ |
error status code column number < 1 or > tfields/ More... | |
#define | NEG_FILE_POS 304 /* tried to move before beginning of file */ |
error status code tried to move before beginning of file / More... | |
#define | NEG_BYTES 306 /* tried to read or write negative bytes */ |
error status code tried to read or write negative bytes/ More... | |
#define | BAD_ROW_NUM 307 /* illegal starting row number in table */ |
error status code illegal starting row number in table/ More... | |
#define | BAD_ELEM_NUM 308 /* illegal starting element number in vector */ |
error status code illegal starting element number in vector/ More... | |
#define | NOT_ASCII_COL 309 /* this is not an ASCII string column */ |
error status code this is not an ASCII string column/ More... | |
#define | NOT_LOGICAL_COL 310 /* this is not a logical datatype column */ |
error status code this is not a logical datatype column/ More... | |
#define | BAD_ATABLE_FORMAT 311 /* ASCII table column has wrong format */ |
error status code ASCII table column has wrong format/ More... | |
#define | BAD_BTABLE_FORMAT 312 /* Binary table column has wrong format */ |
error status code Binary table column has wrong format/ More... | |
#define | NO_NULL 314 /* null value has not been defined */ |
error status code null value has not been defined/ More... | |
#define | NOT_VARI_LEN 317 /* this is not a variable length column */ |
error status code this is not a variable length column/ More... | |
#define | BAD_DIMEN 320 /* illegal number of dimensions in array */ |
error status code illegal number of dimensions in array/ More... | |
#define | BAD_PIX_NUM 321 /* first pixel number greater than last pixel */ |
error status code first pixel number greater than last pixel/ More... | |
#define | ZERO_SCALE 322 /* illegal BSCALE or TSCALn keyword = 0 */ |
error status code illegal BSCALE or TSCALn keyword = 0/ More... | |
#define | NEG_AXIS 323 /* illegal axis length < 1 */ |
error status code illegal axis length < 1/ More... | |
#define | NOT_GROUP_TABLE 340 |
error status code More... | |
#define | HDU_ALREADY_MEMBER 341 |
error status code More... | |
#define | MEMBER_NOT_FOUND 342 |
error status code More... | |
#define | GROUP_NOT_FOUND 343 |
error status code More... | |
#define | BAD_GROUP_ID 344 |
error status code More... | |
#define | TOO_MANY_HDUS_TRACKED 345 |
error status code More... | |
#define | HDU_ALREADY_TRACKED 346 |
error status code More... | |
#define | BAD_OPTION 347 |
error status code More... | |
#define | IDENTICAL_POINTERS 348 |
error status code More... | |
#define | BAD_GROUP_ATTACH 349 |
error status code More... | |
#define | BAD_GROUP_DETACH 350 |
error status code More... | |
#define | BAD_I2C 401 /* bad int to formatted string conversion */ |
error status code. bad int to formatted string conversion/ More... | |
#define | BAD_F2C 402 /* bad float to formatted string conversion */ |
error status code. bad float to formatted string conversion/ More... | |
#define | BAD_INTKEY 403 /* can't interprete keyword value as integer */ |
error status code. can't interprete keyword value as integer/ More... | |
#define | BAD_LOGICALKEY 404 /* can't interprete keyword value as logical */ |
error status code. can't interprete keyword value as logical/ More... | |
#define | BAD_FLOATKEY 405 /* can't interprete keyword value as float */ |
error status code. can't interprete keyword value as float/ More... | |
#define | BAD_DOUBLEKEY 406 /* can't interprete keyword value as double */ |
error status code. can't interprete keyword value as double/ More... | |
#define | BAD_C2I 407 /* bad formatted string to int conversion */ |
error status code. bad formatted string to int conversion/ More... | |
#define | BAD_C2F 408 /* bad formatted string to float conversion */ |
error status code. bad formatted string to float conversion/ More... | |
#define | BAD_C2D 409 /* bad formatted string to double conversion */ |
error status code. bad formatted string to double conversion/ More... | |
#define | BAD_DATATYPE 410 /* bad keyword datatype code */ |
error status code. bad keyword datatype code/ More... | |
#define | BAD_DECIM 411 /* bad number of decimal places specified */ |
error status code. bad number of decimal places specified/ More... | |
#define | NUM_OVERFLOW 412 /* overflow during datatype conversion */ |
error status code. overflow during datatype conversion/ More... | |
#define | DATA_COMPRESSION_ERR 413 /* error in imcompress routines */ |
error status code. error in imcompress routines/ More... | |
#define | DATA_DECOMPRESSION_ERR 414 /* error in imcompress routines */ |
error status code. error in imcompress routines/ More... | |
#define | NO_COMPRESSED_TILE 415 /* compressed tile doesn't exist */ |
error status code. compressed tile doesn't exist/ More... | |
#define | BAD_DATE 420 /* error in date or time conversion */ |
error status code. error in date or time conversion/ More... | |
#define | PARSE_SYNTAX_ERR 431 /* syntax error in parser expression */ |
error status code. syntax error in parser expression/ More... | |
#define | PARSE_BAD_TYPE 432 /* expression did not evaluate to desired type */ |
error status code. expression did not evaluate to desired type/ More... | |
#define | PARSE_LRG_VECTOR 433 /* vector result too large to return in array */ |
error status code. vector result too large to return in array/ More... | |
#define | PARSE_NO_OUTPUT 434 /* data parser failed not sent an out column */ |
error status code. data parser failed not sent an out column/ More... | |
#define | PARSE_BAD_COL 435 /* bad data encounter while parsing column */ |
error status code. bad data encounter while parsing column/ More... | |
#define | PARSE_BAD_OUTPUT 436 /* Output file not of proper type */ |
error status code. Output file not of proper type / More... | |
#define | ANGLE_TOO_BIG 501 /* celestial angle too large for projection */ |
error status code. celestial angle too large for projection/ More... | |
#define | BAD_WCS_VAL 502 /* bad celestial coordinate or pixel value */ |
error status code. bad celestial coordinate or pixel value/ More... | |
#define | WCS_ERROR 503 /* error in celestial coordinate calculation */ |
error status code. error in celestial coordinate calculation/ More... | |
#define | BAD_WCS_PROJ 504 /* unsupported type of celestial projection */ |
error status code. unsupported type of celestial projection/ More... | |
#define | NO_WCS_KEY 505 /* celestial coordinate keywords not found */ |
error status code. celestial coordinate keywords not found/ More... | |
#define | APPROX_WCS_KEY 506 /* approximate WCS keywords were calculated */ |
error status code. approximate WCS keywords were calculated/ More... | |
#define | NO_CLOSE_ERROR 999 /* special value used internally to switch off */ |
error status code. special value used internally to switch off the error message from ffclos and ffchdu More... | |
#define | NGP_ERRBASE (360) /* base chosen so not to interfere with CFITSIO */ |
error status code in grparser.c. base chosen so not to interfere with CFITSIO More... | |
#define | NGP_OK (0) |
error status code in grparser.c More... | |
#define | NGP_NO_MEMORY (NGP_ERRBASE + 0) /* malloc failed */ |
error status code. in grparser.c malloc failed More... | |
#define | NGP_READ_ERR (NGP_ERRBASE + 1) /* read error from file */ |
error status codein grparser.c. read error from file More... | |
#define | NGP_NUL_PTR (NGP_ERRBASE + 2) /* null pointer passed as argument */ |
error status code in grparser.c null pointer passed as argument More... | |
#define | NGP_EMPTY_CURLINE (NGP_ERRBASE + 3) /* line read seems to be empty */ |
error status code in grparser.c line read seems to be empty More... | |
#define | NGP_UNREAD_QUEUE_FULL (NGP_ERRBASE + 4) /* cannot unread more then 1 line (or single line twice) */ |
error status code in grparser.c. cannot unread more then 1 line (or single line twice) More... | |
#define | NGP_INC_NESTING (NGP_ERRBASE + 5) /* too deep include file nesting (inf. loop ?) */ |
error status code in grparser.c. too deep include file nesting (inf. loop ?) /*! More... | |
#define | NGP_ERR_FOPEN (NGP_ERRBASE + 6) /* fopen() failed, cannot open file */ |
error status code in grparser.c. fopen() failed, cannot open file More... | |
#define | NGP_EOF (NGP_ERRBASE + 7) /* end of file encountered */ |
error status code in grparser.c. end of file encountered More... | |
#define | NGP_BAD_ARG (NGP_ERRBASE + 8) /* bad arguments passed */ |
error status code in grparser.c. bad arguments passed More... | |
#define | NGP_TOKEN_NOT_EXPECT (NGP_ERRBASE + 9) /* token not expected here */ |
error status code in grparser.c. token not expected here More... | |
Typedefs | |
typedef long long | LONGLONG |
Functions | |
int CFITS_API | fits_read_wcstab (fitsfile *fptr, int nwtb, wtbarr *wtb, int *status) |
int | CFITS2Unit (fitsfile *fptr) |
CFITS_API fitsfile * | CUnit2FITS (int unit) |
int CFITS_API | fits_get_token (char **ptr, char *delimiter, char *token, int *isanumber) |
int CFITS_API | fits_get_token2 (char **ptr, char *delimiter, char **token, int *isanumber, int *status) |
char CFITS_API * | fits_split_names (char *list) |
int CFITS_API | ffiurl (char *url, char *urltype, char *infile, char *outfile, char *extspec, char *rowfilter, char *binspec, char *colspec, int *status) |
int CFITS_API | ffifile (char *url, char *urltype, char *infile, char *outfile, char *extspec, char *rowfilter, char *binspec, char *colspec, char *pixfilter, int *status) |
int CFITS_API | ffifile2 (char *url, char *urltype, char *infile, char *outfile, char *extspec, char *rowfilter, char *binspec, char *colspec, char *pixfilter, char *compspec, int *status) |
int CFITS_API | ffrtnm (char *url, char *rootname, int *status) |
int CFITS_API | ffexist (const char *infile, int *exists, int *status) |
int CFITS_API | ffexts (char *extspec, int *extnum, char *extname, int *extvers, int *hdutype, char *colname, char *rowexpress, int *status) |
int CFITS_API | ffextn (char *url, int *extension_num, int *status) |
int CFITS_API | ffurlt (fitsfile *fptr, char *urlType, int *status) |
int CFITS_API | ffbins (char *binspec, int *imagetype, int *haxis, char colname[4][FLEN_VALUE], double *minin, double *maxin, double *binsizein, char minname[4][FLEN_VALUE], char maxname[4][FLEN_VALUE], char binname[4][FLEN_VALUE], double *weight, char *wtname, int *recip, int *status) |
int CFITS_API | ffbinr (char **binspec, char *colname, double *minin, double *maxin, double *binsizein, char *minname, char *maxname, char *binname, int *status) |
int CFITS_API | fits_copy_cell2image (fitsfile *fptr, fitsfile *newptr, char *colname, long rownum, int *status) |
int CFITS_API | fits_copy_image2cell (fitsfile *fptr, fitsfile *newptr, char *colname, long rownum, int copykeyflag, int *status) |
int CFITS_API | fits_copy_pixlist2image (fitsfile *infptr, fitsfile *outfptr, int firstkey, int naxis, int *colnum, int *status) |
int CFITS_API | ffimport_file (char *filename, char **contents, int *status) |
int CFITS_API | ffrwrg (char *rowlist, LONGLONG maxrows, int maxranges, int *numranges, long *minrow, long *maxrow, int *status) |
int CFITS_API | ffrwrgll (char *rowlist, LONGLONG maxrows, int maxranges, int *numranges, LONGLONG *minrow, LONGLONG *maxrow, int *status) |
int CFITS_API | fits_init_cfitsio (void) |
int CFITS_API | ffomem (fitsfile **fptr, const char *name, int mode, void **buffptr, size_t *buffsize, size_t deltasize, void *(*mem_realloc)(void *p, size_t newsize), int *status) |
int CFITS_API | ffopen (fitsfile **fptr, const char *filename, int iomode, int *status) |
int CFITS_API | ffopentest (int soname, fitsfile **fptr, const char *filename, int iomode, int *status) |
int CFITS_API | ffdopn (fitsfile **fptr, const char *filename, int iomode, int *status) |
int CFITS_API | ffeopn (fitsfile **fptr, const char *filename, int iomode, char *extlist, int *hdutype, int *status) |
int CFITS_API | fftopn (fitsfile **fptr, const char *filename, int iomode, int *status) |
int CFITS_API | ffiopn (fitsfile **fptr, const char *filename, int iomode, int *status) |
int CFITS_API | ffdkopn (fitsfile **fptr, const char *filename, int iomode, int *status) |
int CFITS_API | ffreopen (fitsfile *openfptr, fitsfile **newfptr, int *status) |
int CFITS_API | ffinit (fitsfile **fptr, const char *filename, int *status) |
int CFITS_API | ffdkinit (fitsfile **fptr, const char *filename, int *status) |
int CFITS_API | ffimem (fitsfile **fptr, void **buffptr, size_t *buffsize, size_t deltasize, void *(*mem_realloc)(void *p, size_t newsize), int *status) |
int CFITS_API | fftplt (fitsfile **fptr, const char *filename, const char *tempname, int *status) |
int CFITS_API | ffflus (fitsfile *fptr, int *status) |
int CFITS_API | ffflsh (fitsfile *fptr, int clearbuf, int *status) |
int CFITS_API | ffclos (fitsfile *fptr, int *status) |
int CFITS_API | ffdelt (fitsfile *fptr, int *status) |
int CFITS_API | ffflnm (fitsfile *fptr, char *filename, int *status) |
int CFITS_API | ffflmd (fitsfile *fptr, int *filemode, int *status) |
int CFITS_API | fits_delete_iraf_file (const char *filename, int *status) |
float CFITS_API | ffvers (float *version) |
void CFITS_API | ffupch (char *string) |
void CFITS_API | ffgerr (int status, char *errtext) |
void CFITS_API | ffpmsg (const char *err_message) |
void CFITS_API | ffpmrk (void) |
int CFITS_API | ffgmsg (char *err_message) |
void CFITS_API | ffcmsg (void) |
void CFITS_API | ffcmrk (void) |
void CFITS_API | ffrprt (FILE *stream, int status) |
void CFITS_API | ffcmps (char *templt, char *colname, int casesen, int *match, int *exact) |
int CFITS_API | fftkey (const char *keyword, int *status) |
int CFITS_API | fftrec (char *card, int *status) |
int CFITS_API | ffnchk (fitsfile *fptr, int *status) |
int CFITS_API | ffkeyn (const char *keyroot, int value, char *keyname, int *status) |
int CFITS_API | ffnkey (int value, const char *keyroot, char *keyname, int *status) |
int CFITS_API | ffgkcl (char *card) |
int CFITS_API | ffdtyp (const char *cval, char *dtype, int *status) |
int CFITS_API | ffinttyp (char *cval, int *datatype, int *negative, int *status) |
int CFITS_API | ffpsvc (char *card, char *value, char *comm, int *status) |
int CFITS_API | ffgknm (char *card, char *name, int *length, int *status) |
int CFITS_API | ffgthd (char *tmplt, char *card, int *hdtype, int *status) |
int CFITS_API | ffmkky (const char *keyname, char *keyval, const char *comm, char *card, int *status) |
int CFITS_API | fits_translate_keyword (char *inrec, char *outrec, char *patterns[][2], int npat, int n_value, int n_offset, int n_range, int *pat_num, int *i, int *j, int *m, int *n, int *status) |
int CFITS_API | fits_translate_keywords (fitsfile *infptr, fitsfile *outfptr, int firstkey, char *patterns[][2], int npat, int n_value, int n_offset, int n_range, int *status) |
int CFITS_API | ffasfm (char *tform, int *datacode, long *width, int *decim, int *status) |
int CFITS_API | ffbnfm (char *tform, int *datacode, long *repeat, long *width, int *status) |
int CFITS_API | ffbnfmll (char *tform, int *datacode, LONGLONG *repeat, long *width, int *status) |
int CFITS_API | ffgabc (int tfields, char **tform, int space, long *rowlen, long *tbcol, int *status) |
int CFITS_API | fits_get_section_range (char **ptr, long *secmin, long *secmax, long *incre, int *status) |
int CFITS_API | ffmbyt (fitsfile *fptr, LONGLONG bytpos, int ignore_err, int *status) |
int CFITS_API | ffpky (fitsfile *fptr, int datatype, const char *keyname, void *value, const char *comm, int *status) |
int CFITS_API | ffprec (fitsfile *fptr, const char *card, int *status) |
int CFITS_API | ffpcom (fitsfile *fptr, const char *comm, int *status) |
int CFITS_API | ffpunt (fitsfile *fptr, const char *keyname, const char *unit, int *status) |
int CFITS_API | ffphis (fitsfile *fptr, const char *history, int *status) |
int CFITS_API | ffpdat (fitsfile *fptr, int *status) |
int CFITS_API | ffverifydate (int year, int month, int day, int *status) |
int CFITS_API | ffgstm (char *timestr, int *timeref, int *status) |
int CFITS_API | ffgsdt (int *day, int *month, int *year, int *status) |
int CFITS_API | ffdt2s (int year, int month, int day, char *datestr, int *status) |
int CFITS_API | fftm2s (int year, int month, int day, int hour, int minute, double second, int decimals, char *datestr, int *status) |
int CFITS_API | ffs2dt (char *datestr, int *year, int *month, int *day, int *status) |
int CFITS_API | ffs2tm (char *datestr, int *year, int *month, int *day, int *hour, int *minute, double *second, int *status) |
int CFITS_API | ffpkyu (fitsfile *fptr, const char *keyname, const char *comm, int *status) |
int CFITS_API | ffpkys (fitsfile *fptr, const char *keyname, const char *value, const char *comm, int *status) |
int CFITS_API | ffpkls (fitsfile *fptr, const char *keyname, const char *value, const char *comm, int *status) |
int CFITS_API | ffplsw (fitsfile *fptr, int *status) |
int CFITS_API | ffpkyl (fitsfile *fptr, const char *keyname, int value, const char *comm, int *status) |
int CFITS_API | ffpkyj (fitsfile *fptr, const char *keyname, LONGLONG value, const char *comm, int *status) |
int CFITS_API | ffpkyf (fitsfile *fptr, const char *keyname, float value, int decim, const char *comm, int *status) |
int CFITS_API | ffpkye (fitsfile *fptr, const char *keyname, float value, int decim, const char *comm, int *status) |
int CFITS_API | ffpkyg (fitsfile *fptr, const char *keyname, double value, int decim, const char *comm, int *status) |
int CFITS_API | ffpkyd (fitsfile *fptr, const char *keyname, double value, int decim, const char *comm, int *status) |
int CFITS_API | ffpkyc (fitsfile *fptr, const char *keyname, float *value, int decim, const char *comm, int *status) |
int CFITS_API | ffpkym (fitsfile *fptr, const char *keyname, double *value, int decim, const char *comm, int *status) |
int CFITS_API | ffpkfc (fitsfile *fptr, const char *keyname, float *value, int decim, const char *comm, int *status) |
int CFITS_API | ffpkfm (fitsfile *fptr, const char *keyname, double *value, int decim, const char *comm, int *status) |
int CFITS_API | ffpkyt (fitsfile *fptr, const char *keyname, long intval, double frac, const char *comm, int *status) |
int CFITS_API | ffptdm (fitsfile *fptr, int colnum, int naxis, long naxes[], int *status) |
int CFITS_API | ffptdmll (fitsfile *fptr, int colnum, int naxis, LONGLONG naxes[], int *status) |
int CFITS_API | ffpkns (fitsfile *fptr, const char *keyroot, int nstart, int nkey, char *value[], char *comm[], int *status) |
int CFITS_API | ffpknl (fitsfile *fptr, const char *keyroot, int nstart, int nkey, int *value, char *comm[], int *status) |
int CFITS_API | ffpknj (fitsfile *fptr, const char *keyroot, int nstart, int nkey, long *value, char *comm[], int *status) |
int CFITS_API | ffpknjj (fitsfile *fptr, const char *keyroot, int nstart, int nkey, LONGLONG *value, char *comm[], int *status) |
int CFITS_API | ffpknf (fitsfile *fptr, const char *keyroot, int nstart, int nkey, float *value, int decim, char *comm[], int *status) |
int CFITS_API | ffpkne (fitsfile *fptr, const char *keyroot, int nstart, int nkey, float *value, int decim, char *comm[], int *status) |
int CFITS_API | ffpkng (fitsfile *fptr, const char *keyroot, int nstart, int nkey, double *value, int decim, char *comm[], int *status) |
int CFITS_API | ffpknd (fitsfile *fptr, const char *keyroot, int nstart, int nkey, double *value, int decim, char *comm[], int *status) |
int CFITS_API | ffcpky (fitsfile *infptr, fitsfile *outfptr, int incol, int outcol, char *rootname, int *status) |
int CFITS_API | ffphps (fitsfile *fptr, int bitpix, int naxis, long naxes[], int *status) |
int CFITS_API | ffphpsll (fitsfile *fptr, int bitpix, int naxis, LONGLONG naxes[], int *status) |
int CFITS_API | ffphpr (fitsfile *fptr, int simple, int bitpix, int naxis, long naxes[], LONGLONG pcount, LONGLONG gcount, int extend, int *status) |
int CFITS_API | ffphprll (fitsfile *fptr, int simple, int bitpix, int naxis, LONGLONG naxes[], LONGLONG pcount, LONGLONG gcount, int extend, int *status) |
int CFITS_API | ffphtb (fitsfile *fptr, LONGLONG naxis1, LONGLONG naxis2, int tfields, char **ttype, long *tbcol, char **tform, char **tunit, const char *extname, int *status) |
int CFITS_API | ffphbn (fitsfile *fptr, LONGLONG naxis2, int tfields, char **ttype, char **tform, char **tunit, const char *extname, LONGLONG pcount, int *status) |
int CFITS_API | ffphext (fitsfile *fptr, const char *xtension, int bitpix, int naxis, long naxes[], LONGLONG pcount, LONGLONG gcount, int *status) |
int CFITS_API | ffpktp (fitsfile *fptr, const char *filename, int *status) |
int CFITS_API | ffghsp (fitsfile *fptr, int *nexist, int *nmore, int *status) |
int CFITS_API | ffghps (fitsfile *fptr, int *nexist, int *position, int *status) |
int CFITS_API | ffmaky (fitsfile *fptr, int nrec, int *status) |
int CFITS_API | ffmrky (fitsfile *fptr, int nrec, int *status) |
int CFITS_API | ffgnxk (fitsfile *fptr, char **inclist, int ninc, char **exclist, int nexc, char *card, int *status) |
int CFITS_API | ffgrec (fitsfile *fptr, int nrec, char *card, int *status) |
int CFITS_API | ffgcrd (fitsfile *fptr, const char *keyname, char *card, int *status) |
int CFITS_API | ffgstr (fitsfile *fptr, const char *string, char *card, int *status) |
int CFITS_API | ffgunt (fitsfile *fptr, const char *keyname, char *unit, int *status) |
int CFITS_API | ffgkyn (fitsfile *fptr, int nkey, char *keyname, char *keyval, char *comm, int *status) |
int CFITS_API | ffgkey (fitsfile *fptr, const char *keyname, char *keyval, char *comm, int *status) |
int CFITS_API | ffgky (fitsfile *fptr, int datatype, const char *keyname, void *value, char *comm, int *status) |
int CFITS_API | ffgkys (fitsfile *fptr, const char *keyname, char *value, char *comm, int *status) |
int CFITS_API | ffgksl (fitsfile *fptr, const char *keyname, int *length, int *status) |
int CFITS_API | ffgkls (fitsfile *fptr, const char *keyname, char **value, char *comm, int *status) |
int CFITS_API | ffgsky (fitsfile *fptr, const char *keyname, int firstchar, int maxchar, char *value, int *valuelen, char *comm, int *status) |
int CFITS_API | fffree (void *value, int *status) |
int CFITS_API | fffkls (char *value, int *status) |
int CFITS_API | ffgkyl (fitsfile *fptr, const char *keyname, int *value, char *comm, int *status) |
int CFITS_API | ffgkyj (fitsfile *fptr, const char *keyname, long *value, char *comm, int *status) |
int CFITS_API | ffgkyjj (fitsfile *fptr, const char *keyname, LONGLONG *value, char *comm, int *status) |
int CFITS_API | ffgkye (fitsfile *fptr, const char *keyname, float *value, char *comm, int *status) |
int CFITS_API | ffgkyd (fitsfile *fptr, const char *keyname, double *value, char *comm, int *status) |
int CFITS_API | ffgkyc (fitsfile *fptr, const char *keyname, float *value, char *comm, int *status) |
int CFITS_API | ffgkym (fitsfile *fptr, const char *keyname, double *value, char *comm, int *status) |
int CFITS_API | ffgkyt (fitsfile *fptr, const char *keyname, long *ivalue, double *dvalue, char *comm, int *status) |
int CFITS_API | ffgtdm (fitsfile *fptr, int colnum, int maxdim, int *naxis, long naxes[], int *status) |
int CFITS_API | ffgtdmll (fitsfile *fptr, int colnum, int maxdim, int *naxis, LONGLONG naxes[], int *status) |
int CFITS_API | ffdtdm (fitsfile *fptr, char *tdimstr, int colnum, int maxdim, int *naxis, long naxes[], int *status) |
int CFITS_API | ffdtdmll (fitsfile *fptr, char *tdimstr, int colnum, int maxdim, int *naxis, LONGLONG naxes[], int *status) |
int CFITS_API | ffgkns (fitsfile *fptr, const char *keyname, int nstart, int nmax, char *value[], int *nfound, int *status) |
int CFITS_API | ffgknl (fitsfile *fptr, const char *keyname, int nstart, int nmax, int *value, int *nfound, int *status) |
int CFITS_API | ffgknj (fitsfile *fptr, const char *keyname, int nstart, int nmax, long *value, int *nfound, int *status) |
int CFITS_API | ffgknjj (fitsfile *fptr, const char *keyname, int nstart, int nmax, LONGLONG *value, int *nfound, int *status) |
int CFITS_API | ffgkne (fitsfile *fptr, const char *keyname, int nstart, int nmax, float *value, int *nfound, int *status) |
int CFITS_API | ffgknd (fitsfile *fptr, const char *keyname, int nstart, int nmax, double *value, int *nfound, int *status) |
int CFITS_API | ffh2st (fitsfile *fptr, char **header, int *status) |
int CFITS_API | ffhdr2str (fitsfile *fptr, int exclude_comm, char **exclist, int nexc, char **header, int *nkeys, int *status) |
int CFITS_API | ffcnvthdr2str (fitsfile *fptr, int exclude_comm, char **exclist, int nexc, char **header, int *nkeys, int *status) |
int CFITS_API | ffghpr (fitsfile *fptr, int maxdim, int *simple, int *bitpix, int *naxis, long naxes[], long *pcount, long *gcount, int *extend, int *status) |
int CFITS_API | ffghprll (fitsfile *fptr, int maxdim, int *simple, int *bitpix, int *naxis, LONGLONG naxes[], long *pcount, long *gcount, int *extend, int *status) |
int CFITS_API | ffghtb (fitsfile *fptr, int maxfield, long *naxis1, long *naxis2, int *tfields, char **ttype, long *tbcol, char **tform, char **tunit, char *extname, int *status) |
int CFITS_API | ffghtbll (fitsfile *fptr, int maxfield, LONGLONG *naxis1, LONGLONG *naxis2, int *tfields, char **ttype, LONGLONG *tbcol, char **tform, char **tunit, char *extname, int *status) |
int CFITS_API | ffghbn (fitsfile *fptr, int maxfield, long *naxis2, int *tfields, char **ttype, char **tform, char **tunit, char *extname, long *pcount, int *status) |
int CFITS_API | ffghbnll (fitsfile *fptr, int maxfield, LONGLONG *naxis2, int *tfields, char **ttype, char **tform, char **tunit, char *extname, LONGLONG *pcount, int *status) |
int CFITS_API | ffuky (fitsfile *fptr, int datatype, const char *keyname, void *value, const char *comm, int *status) |
int CFITS_API | ffucrd (fitsfile *fptr, const char *keyname, const char *card, int *status) |
int CFITS_API | ffukyu (fitsfile *fptr, const char *keyname, const char *comm, int *status) |
int CFITS_API | ffukys (fitsfile *fptr, const char *keyname, const char *value, const char *comm, int *status) |
int CFITS_API | ffukls (fitsfile *fptr, const char *keyname, const char *value, const char *comm, int *status) |
int CFITS_API | ffukyl (fitsfile *fptr, const char *keyname, int value, const char *comm, int *status) |
int CFITS_API | ffukyj (fitsfile *fptr, const char *keyname, LONGLONG value, const char *comm, int *status) |
int CFITS_API | ffukyf (fitsfile *fptr, const char *keyname, float value, int decim, const char *comm, int *status) |
int CFITS_API | ffukye (fitsfile *fptr, const char *keyname, float value, int decim, const char *comm, int *status) |
int CFITS_API | ffukyg (fitsfile *fptr, const char *keyname, double value, int decim, const char *comm, int *status) |
int CFITS_API | ffukyd (fitsfile *fptr, const char *keyname, double value, int decim, const char *comm, int *status) |
int CFITS_API | ffukyc (fitsfile *fptr, const char *keyname, float *value, int decim, const char *comm, int *status) |
int CFITS_API | ffukym (fitsfile *fptr, const char *keyname, double *value, int decim, const char *comm, int *status) |
int CFITS_API | ffukfc (fitsfile *fptr, const char *keyname, float *value, int decim, const char *comm, int *status) |
int CFITS_API | ffukfm (fitsfile *fptr, const char *keyname, double *value, int decim, const char *comm, int *status) |
int CFITS_API | ffmrec (fitsfile *fptr, int nkey, const char *card, int *status) |
int CFITS_API | ffmcrd (fitsfile *fptr, const char *keyname, const char *card, int *status) |
int CFITS_API | ffmnam (fitsfile *fptr, const char *oldname, const char *newname, int *status) |
int CFITS_API | ffmcom (fitsfile *fptr, const char *keyname, const char *comm, int *status) |
int CFITS_API | ffmkyu (fitsfile *fptr, const char *keyname, const char *comm, int *status) |
int CFITS_API | ffmkys (fitsfile *fptr, const char *keyname, const char *value, const char *comm, int *status) |
int CFITS_API | ffmkls (fitsfile *fptr, const char *keyname, const char *value, const char *comm, int *status) |
int CFITS_API | ffmkyl (fitsfile *fptr, const char *keyname, int value, const char *comm, int *status) |
int CFITS_API | ffmkyj (fitsfile *fptr, const char *keyname, LONGLONG value, const char *comm, int *status) |
int CFITS_API | ffmkyf (fitsfile *fptr, const char *keyname, float value, int decim, const char *comm, int *status) |
int CFITS_API | ffmkye (fitsfile *fptr, const char *keyname, float value, int decim, const char *comm, int *status) |
int CFITS_API | ffmkyg (fitsfile *fptr, const char *keyname, double value, int decim, const char *comm, int *status) |
int CFITS_API | ffmkyd (fitsfile *fptr, const char *keyname, double value, int decim, const char *comm, int *status) |
int CFITS_API | ffmkyc (fitsfile *fptr, const char *keyname, float *value, int decim, const char *comm, int *status) |
int CFITS_API | ffmkym (fitsfile *fptr, const char *keyname, double *value, int decim, const char *comm, int *status) |
int CFITS_API | ffmkfc (fitsfile *fptr, const char *keyname, float *value, int decim, const char *comm, int *status) |
int CFITS_API | ffmkfm (fitsfile *fptr, const char *keyname, double *value, int decim, const char *comm, int *status) |
int CFITS_API | ffirec (fitsfile *fptr, int nkey, const char *card, int *status) |
int CFITS_API | ffikey (fitsfile *fptr, const char *card, int *status) |
int CFITS_API | ffikyu (fitsfile *fptr, const char *keyname, const char *comm, int *status) |
int CFITS_API | ffikys (fitsfile *fptr, const char *keyname, const char *value, const char *comm, int *status) |
int CFITS_API | ffikls (fitsfile *fptr, const char *keyname, const char *value, const char *comm, int *status) |
int CFITS_API | ffikyl (fitsfile *fptr, const char *keyname, int value, const char *comm, int *status) |
int CFITS_API | ffikyj (fitsfile *fptr, const char *keyname, LONGLONG value, const char *comm, int *status) |
int CFITS_API | ffikyf (fitsfile *fptr, const char *keyname, float value, int decim, const char *comm, int *status) |
int CFITS_API | ffikye (fitsfile *fptr, const char *keyname, float value, int decim, const char *comm, int *status) |
int CFITS_API | ffikyg (fitsfile *fptr, const char *keyname, double value, int decim, const char *comm, int *status) |
int CFITS_API | ffikyd (fitsfile *fptr, const char *keyname, double value, int decim, const char *comm, int *status) |
int CFITS_API | ffikyc (fitsfile *fptr, const char *keyname, float *value, int decim, const char *comm, int *status) |
int CFITS_API | ffikym (fitsfile *fptr, const char *keyname, double *value, int decim, const char *comm, int *status) |
int CFITS_API | ffikfc (fitsfile *fptr, const char *keyname, float *value, int decim, const char *comm, int *status) |
int CFITS_API | ffikfm (fitsfile *fptr, const char *keyname, double *value, int decim, const char *comm, int *status) |
int CFITS_API | ffdkey (fitsfile *fptr, const char *keyname, int *status) |
int CFITS_API | ffdstr (fitsfile *fptr, const char *string, int *status) |
int CFITS_API | ffdrec (fitsfile *fptr, int keypos, int *status) |
int CFITS_API | ffghdn (fitsfile *fptr, int *chdunum) |
int CFITS_API | ffghdt (fitsfile *fptr, int *exttype, int *status) |
int CFITS_API | ffghad (fitsfile *fptr, long *headstart, long *datastart, long *dataend, int *status) |
int CFITS_API | ffghadll (fitsfile *fptr, LONGLONG *headstart, LONGLONG *datastart, LONGLONG *dataend, int *status) |
int CFITS_API | ffghof (fitsfile *fptr, OFF_T *headstart, OFF_T *datastart, OFF_T *dataend, int *status) |
int CFITS_API | ffgipr (fitsfile *fptr, int maxaxis, int *imgtype, int *naxis, long *naxes, int *status) |
int CFITS_API | ffgiprll (fitsfile *fptr, int maxaxis, int *imgtype, int *naxis, LONGLONG *naxes, int *status) |
int CFITS_API | ffgidt (fitsfile *fptr, int *imgtype, int *status) |
int CFITS_API | ffgiet (fitsfile *fptr, int *imgtype, int *status) |
int CFITS_API | ffgidm (fitsfile *fptr, int *naxis, int *status) |
int CFITS_API | ffgisz (fitsfile *fptr, int nlen, long *naxes, int *status) |
int CFITS_API | ffgiszll (fitsfile *fptr, int nlen, LONGLONG *naxes, int *status) |
int CFITS_API | ffmahd (fitsfile *fptr, int hdunum, int *exttype, int *status) |
int CFITS_API | ffmrhd (fitsfile *fptr, int hdumov, int *exttype, int *status) |
int CFITS_API | ffmnhd (fitsfile *fptr, int exttype, char *hduname, int hduvers, int *status) |
int CFITS_API | ffthdu (fitsfile *fptr, int *nhdu, int *status) |
int CFITS_API | ffcrhd (fitsfile *fptr, int *status) |
int CFITS_API | ffcrim (fitsfile *fptr, int bitpix, int naxis, long *naxes, int *status) |
int CFITS_API | ffcrimll (fitsfile *fptr, int bitpix, int naxis, LONGLONG *naxes, int *status) |
int CFITS_API | ffcrtb (fitsfile *fptr, int tbltype, LONGLONG naxis2, int tfields, char **ttype, char **tform, char **tunit, const char *extname, int *status) |
int CFITS_API | ffiimg (fitsfile *fptr, int bitpix, int naxis, long *naxes, int *status) |
int CFITS_API | ffiimgll (fitsfile *fptr, int bitpix, int naxis, LONGLONG *naxes, int *status) |
int CFITS_API | ffitab (fitsfile *fptr, LONGLONG naxis1, LONGLONG naxis2, int tfields, char **ttype, long *tbcol, char **tform, char **tunit, const char *extname, int *status) |
int CFITS_API | ffibin (fitsfile *fptr, LONGLONG naxis2, int tfields, char **ttype, char **tform, char **tunit, const char *extname, LONGLONG pcount, int *status) |
int CFITS_API | ffrsim (fitsfile *fptr, int bitpix, int naxis, long *naxes, int *status) |
int CFITS_API | ffrsimll (fitsfile *fptr, int bitpix, int naxis, LONGLONG *naxes, int *status) |
int CFITS_API | ffdhdu (fitsfile *fptr, int *hdutype, int *status) |
int CFITS_API | ffcopy (fitsfile *infptr, fitsfile *outfptr, int morekeys, int *status) |
int CFITS_API | ffcpfl (fitsfile *infptr, fitsfile *outfptr, int prev, int cur, int follow, int *status) |
int CFITS_API | ffcphd (fitsfile *infptr, fitsfile *outfptr, int *status) |
int CFITS_API | ffcpdt (fitsfile *infptr, fitsfile *outfptr, int *status) |
int CFITS_API | ffchfl (fitsfile *fptr, int *status) |
int CFITS_API | ffcdfl (fitsfile *fptr, int *status) |
int CFITS_API | ffwrhdu (fitsfile *fptr, FILE *outstream, int *status) |
int CFITS_API | ffrdef (fitsfile *fptr, int *status) |
int CFITS_API | ffhdef (fitsfile *fptr, int morekeys, int *status) |
int CFITS_API | ffpthp (fitsfile *fptr, long theap, int *status) |
int CFITS_API | ffcsum (fitsfile *fptr, long nrec, unsigned long *sum, int *status) |
void CFITS_API | ffesum (unsigned long sum, int complm, char *ascii) |
unsigned long CFITS_API | ffdsum (char *ascii, int complm, unsigned long *sum) |
int CFITS_API | ffpcks (fitsfile *fptr, int *status) |
int CFITS_API | ffupck (fitsfile *fptr, int *status) |
int CFITS_API | ffvcks (fitsfile *fptr, int *datastatus, int *hdustatus, int *status) |
int CFITS_API | ffgcks (fitsfile *fptr, unsigned long *datasum, unsigned long *hdusum, int *status) |
int CFITS_API | ffpscl (fitsfile *fptr, double scale, double zeroval, int *status) |
int CFITS_API | ffpnul (fitsfile *fptr, LONGLONG nulvalue, int *status) |
int CFITS_API | fftscl (fitsfile *fptr, int colnum, double scale, double zeroval, int *status) |
int CFITS_API | fftnul (fitsfile *fptr, int colnum, LONGLONG nulvalue, int *status) |
int CFITS_API | ffsnul (fitsfile *fptr, int colnum, char *nulstring, int *status) |
int CFITS_API | ffgcno (fitsfile *fptr, int casesen, char *templt, int *colnum, int *status) |
int CFITS_API | ffgcnn (fitsfile *fptr, int casesen, char *templt, char *colname, int *colnum, int *status) |
int CFITS_API | ffgtcl (fitsfile *fptr, int colnum, int *typecode, long *repeat, long *width, int *status) |
int CFITS_API | ffgtclll (fitsfile *fptr, int colnum, int *typecode, LONGLONG *repeat, LONGLONG *width, int *status) |
int CFITS_API | ffeqty (fitsfile *fptr, int colnum, int *typecode, long *repeat, long *width, int *status) |
int CFITS_API | ffeqtyll (fitsfile *fptr, int colnum, int *typecode, LONGLONG *repeat, LONGLONG *width, int *status) |
int CFITS_API | ffgncl (fitsfile *fptr, int *ncols, int *status) |
int CFITS_API | ffgnrw (fitsfile *fptr, long *nrows, int *status) |
int CFITS_API | ffgnrwll (fitsfile *fptr, LONGLONG *nrows, int *status) |
int CFITS_API | ffgacl (fitsfile *fptr, int colnum, char *ttype, long *tbcol, char *tunit, char *tform, double *tscal, double *tzero, char *tnull, char *tdisp, int *status) |
int CFITS_API | ffgbcl (fitsfile *fptr, int colnum, char *ttype, char *tunit, char *dtype, long *repeat, double *tscal, double *tzero, long *tnull, char *tdisp, int *status) |
int CFITS_API | ffgbclll (fitsfile *fptr, int colnum, char *ttype, char *tunit, char *dtype, LONGLONG *repeat, double *tscal, double *tzero, LONGLONG *tnull, char *tdisp, int *status) |
int CFITS_API | ffgrsz (fitsfile *fptr, long *nrows, int *status) |
int CFITS_API | ffgcdw (fitsfile *fptr, int colnum, int *width, int *status) |
int CFITS_API | ffgpxv (fitsfile *fptr, int datatype, long *firstpix, LONGLONG nelem, void *nulval, void *array, int *anynul, int *status) |
int CFITS_API | ffgpxvll (fitsfile *fptr, int datatype, LONGLONG *firstpix, LONGLONG nelem, void *nulval, void *array, int *anynul, int *status) |
int CFITS_API | ffgpxf (fitsfile *fptr, int datatype, long *firstpix, LONGLONG nelem, void *array, char *nullarray, int *anynul, int *status) |
int CFITS_API | ffgpxfll (fitsfile *fptr, int datatype, LONGLONG *firstpix, LONGLONG nelem, void *array, char *nullarray, int *anynul, int *status) |
int CFITS_API | ffgsv (fitsfile *fptr, int datatype, long *blc, long *trc, long *inc, void *nulval, void *array, int *anynul, int *status) |
int CFITS_API | ffgpv (fitsfile *fptr, int datatype, LONGLONG firstelem, LONGLONG nelem, void *nulval, void *array, int *anynul, int *status) |
int CFITS_API | ffgpf (fitsfile *fptr, int datatype, LONGLONG firstelem, LONGLONG nelem, void *array, char *nullarray, int *anynul, int *status) |
int CFITS_API | ffgpvb (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, unsigned char nulval, unsigned char *array, int *anynul, int *status) |
int CFITS_API | ffgpvsb (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, signed char nulval, signed char *array, int *anynul, int *status) |
int CFITS_API | ffgpvui (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, unsigned short nulval, unsigned short *array, int *anynul, int *status) |
int CFITS_API | ffgpvi (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, short nulval, short *array, int *anynul, int *status) |
int CFITS_API | ffgpvuj (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, unsigned long nulval, unsigned long *array, int *anynul, int *status) |
int CFITS_API | ffgpvj (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, long nulval, long *array, int *anynul, int *status) |
int CFITS_API | ffgpvjj (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, LONGLONG nulval, LONGLONG *array, int *anynul, int *status) |
int CFITS_API | ffgpvuk (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, unsigned int nulval, unsigned int *array, int *anynul, int *status) |
int CFITS_API | ffgpvk (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, int nulval, int *array, int *anynul, int *status) |
int CFITS_API | ffgpve (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, float nulval, float *array, int *anynul, int *status) |
int CFITS_API | ffgpvd (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, double nulval, double *array, int *anynul, int *status) |
int CFITS_API | ffgpfb (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, unsigned char *array, char *nularray, int *anynul, int *status) |
int CFITS_API | ffgpfsb (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, signed char *array, char *nularray, int *anynul, int *status) |
int CFITS_API | ffgpfui (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, unsigned short *array, char *nularray, int *anynul, int *status) |
int CFITS_API | ffgpfi (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, short *array, char *nularray, int *anynul, int *status) |
int CFITS_API | ffgpfuj (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, unsigned long *array, char *nularray, int *anynul, int *status) |
int CFITS_API | ffgpfj (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, long *array, char *nularray, int *anynul, int *status) |
int CFITS_API | ffgpfjj (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, LONGLONG *array, char *nularray, int *anynul, int *status) |
int CFITS_API | ffgpfuk (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, unsigned int *array, char *nularray, int *anynul, int *status) |
int CFITS_API | ffgpfk (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, int *array, char *nularray, int *anynul, int *status) |
int CFITS_API | ffgpfe (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, float *array, char *nularray, int *anynul, int *status) |
int CFITS_API | ffgpfd (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, double *array, char *nularray, int *anynul, int *status) |
int CFITS_API | ffg2db (fitsfile *fptr, long group, unsigned char nulval, LONGLONG ncols, LONGLONG naxis1, LONGLONG naxis2, unsigned char *array, int *anynul, int *status) |
int CFITS_API | ffg2dsb (fitsfile *fptr, long group, signed char nulval, LONGLONG ncols, LONGLONG naxis1, LONGLONG naxis2, signed char *array, int *anynul, int *status) |
int CFITS_API | ffg2dui (fitsfile *fptr, long group, unsigned short nulval, LONGLONG ncols, LONGLONG naxis1, LONGLONG naxis2, unsigned short *array, int *anynul, int *status) |
int CFITS_API | ffg2di (fitsfile *fptr, long group, short nulval, LONGLONG ncols, LONGLONG naxis1, LONGLONG naxis2, short *array, int *anynul, int *status) |
int CFITS_API | ffg2duj (fitsfile *fptr, long group, unsigned long nulval, LONGLONG ncols, LONGLONG naxis1, LONGLONG naxis2, unsigned long *array, int *anynul, int *status) |
int CFITS_API | ffg2dj (fitsfile *fptr, long group, long nulval, LONGLONG ncols, LONGLONG naxis1, LONGLONG naxis2, long *array, int *anynul, int *status) |
int CFITS_API | ffg2djj (fitsfile *fptr, long group, LONGLONG nulval, LONGLONG ncols, LONGLONG naxis1, LONGLONG naxis2, LONGLONG *array, int *anynul, int *status) |
int CFITS_API | ffg2duk (fitsfile *fptr, long group, unsigned int nulval, LONGLONG ncols, LONGLONG naxis1, LONGLONG naxis2, unsigned int *array, int *anynul, int *status) |
int CFITS_API | ffg2dk (fitsfile *fptr, long group, int nulval, LONGLONG ncols, LONGLONG naxis1, LONGLONG naxis2, int *array, int *anynul, int *status) |
int CFITS_API | ffg2de (fitsfile *fptr, long group, float nulval, LONGLONG ncols, LONGLONG naxis1, LONGLONG naxis2, float *array, int *anynul, int *status) |
int CFITS_API | ffg2dd (fitsfile *fptr, long group, double nulval, LONGLONG ncols, LONGLONG naxis1, LONGLONG naxis2, double *array, int *anynul, int *status) |
int CFITS_API | ffg3db (fitsfile *fptr, long group, unsigned char nulval, LONGLONG ncols, LONGLONG nrows, LONGLONG naxis1, LONGLONG naxis2, LONGLONG naxis3, unsigned char *array, int *anynul, int *status) |
int CFITS_API | ffg3dsb (fitsfile *fptr, long group, signed char nulval, LONGLONG ncols, LONGLONG nrows, LONGLONG naxis1, LONGLONG naxis2, LONGLONG naxis3, signed char *array, int *anynul, int *status) |
int CFITS_API | ffg3dui (fitsfile *fptr, long group, unsigned short nulval, LONGLONG ncols, LONGLONG nrows, LONGLONG naxis1, LONGLONG naxis2, LONGLONG naxis3, unsigned short *array, int *anynul, int *status) |
int CFITS_API | ffg3di (fitsfile *fptr, long group, short nulval, LONGLONG ncols, LONGLONG nrows, LONGLONG naxis1, LONGLONG naxis2, LONGLONG naxis3, short *array, int *anynul, int *status) |
int CFITS_API | ffg3duj (fitsfile *fptr, long group, unsigned long nulval, LONGLONG ncols, LONGLONG nrows, LONGLONG naxis1, LONGLONG naxis2, LONGLONG naxis3, unsigned long *array, int *anynul, int *status) |
int CFITS_API | ffg3dj (fitsfile *fptr, long group, long nulval, LONGLONG ncols, LONGLONG nrows, LONGLONG naxis1, LONGLONG naxis2, LONGLONG naxis3, long *array, int *anynul, int *status) |
int CFITS_API | ffg3djj (fitsfile *fptr, long group, LONGLONG nulval, LONGLONG ncols, LONGLONG nrows, LONGLONG naxis1, LONGLONG naxis2, LONGLONG naxis3, LONGLONG *array, int *anynul, int *status) |
int CFITS_API | ffg3duk (fitsfile *fptr, long group, unsigned int nulval, LONGLONG ncols, LONGLONG nrows, LONGLONG naxis1, LONGLONG naxis2, LONGLONG naxis3, unsigned int *array, int *anynul, int *status) |
int CFITS_API | ffg3dk (fitsfile *fptr, long group, int nulval, LONGLONG ncols, LONGLONG nrows, LONGLONG naxis1, LONGLONG naxis2, LONGLONG naxis3, int *array, int *anynul, int *status) |
int CFITS_API | ffg3de (fitsfile *fptr, long group, float nulval, LONGLONG ncols, LONGLONG nrows, LONGLONG naxis1, LONGLONG naxis2, LONGLONG naxis3, float *array, int *anynul, int *status) |
int CFITS_API | ffg3dd (fitsfile *fptr, long group, double nulval, LONGLONG ncols, LONGLONG nrows, LONGLONG naxis1, LONGLONG naxis2, LONGLONG naxis3, double *array, int *anynul, int *status) |
int CFITS_API | ffgsvb (fitsfile *fptr, int colnum, int naxis, long *naxes, long *blc, long *trc, long *inc, unsigned char nulval, unsigned char *array, int *anynul, int *status) |
int CFITS_API | ffgsvsb (fitsfile *fptr, int colnum, int naxis, long *naxes, long *blc, long *trc, long *inc, signed char nulval, signed char *array, int *anynul, int *status) |
int CFITS_API | ffgsvui (fitsfile *fptr, int colnum, int naxis, long *naxes, long *blc, long *trc, long *inc, unsigned short nulval, unsigned short *array, int *anynul, int *status) |
int CFITS_API | ffgsvi (fitsfile *fptr, int colnum, int naxis, long *naxes, long *blc, long *trc, long *inc, short nulval, short *array, int *anynul, int *status) |
int CFITS_API | ffgsvuj (fitsfile *fptr, int colnum, int naxis, long *naxes, long *blc, long *trc, long *inc, unsigned long nulval, unsigned long *array, int *anynul, int *status) |
int CFITS_API | ffgsvj (fitsfile *fptr, int colnum, int naxis, long *naxes, long *blc, long *trc, long *inc, long nulval, long *array, int *anynul, int *status) |
int CFITS_API | ffgsvjj (fitsfile *fptr, int colnum, int naxis, long *naxes, long *blc, long *trc, long *inc, LONGLONG nulval, LONGLONG *array, int *anynul, int *status) |
int CFITS_API | ffgsvuk (fitsfile *fptr, int colnum, int naxis, long *naxes, long *blc, long *trc, long *inc, unsigned int nulval, unsigned int *array, int *anynul, int *status) |
int CFITS_API | ffgsvk (fitsfile *fptr, int colnum, int naxis, long *naxes, long *blc, long *trc, long *inc, int nulval, int *array, int *anynul, int *status) |
int CFITS_API | ffgsve (fitsfile *fptr, int colnum, int naxis, long *naxes, long *blc, long *trc, long *inc, float nulval, float *array, int *anynul, int *status) |
int CFITS_API | ffgsvd (fitsfile *fptr, int colnum, int naxis, long *naxes, long *blc, long *trc, long *inc, double nulval, double *array, int *anynul, int *status) |
int CFITS_API | ffgsfb (fitsfile *fptr, int colnum, int naxis, long *naxes, long *blc, long *trc, long *inc, unsigned char *array, char *flagval, int *anynul, int *status) |
int CFITS_API | ffgsfsb (fitsfile *fptr, int colnum, int naxis, long *naxes, long *blc, long *trc, long *inc, signed char *array, char *flagval, int *anynul, int *status) |
int CFITS_API | ffgsfui (fitsfile *fptr, int colnum, int naxis, long *naxes, long *blc, long *trc, long *inc, unsigned short *array, char *flagval, int *anynul, int *status) |
int CFITS_API | ffgsfi (fitsfile *fptr, int colnum, int naxis, long *naxes, long *blc, long *trc, long *inc, short *array, char *flagval, int *anynul, int *status) |
int CFITS_API | ffgsfuj (fitsfile *fptr, int colnum, int naxis, long *naxes, long *blc, long *trc, long *inc, unsigned long *array, char *flagval, int *anynul, int *status) |
int CFITS_API | ffgsfj (fitsfile *fptr, int colnum, int naxis, long *naxes, long *blc, long *trc, long *inc, long *array, char *flagval, int *anynul, int *status) |
int CFITS_API | ffgsfjj (fitsfile *fptr, int colnum, int naxis, long *naxes, long *blc, long *trc, long *inc, LONGLONG *array, char *flagval, int *anynul, int *status) |
int CFITS_API | ffgsfuk (fitsfile *fptr, int colnum, int naxis, long *naxes, long *blc, long *trc, long *inc, unsigned int *array, char *flagval, int *anynul, int *status) |
int CFITS_API | ffgsfk (fitsfile *fptr, int colnum, int naxis, long *naxes, long *blc, long *trc, long *inc, int *array, char *flagval, int *anynul, int *status) |
int CFITS_API | ffgsfe (fitsfile *fptr, int colnum, int naxis, long *naxes, long *blc, long *trc, long *inc, float *array, char *flagval, int *anynul, int *status) |
int CFITS_API | ffgsfd (fitsfile *fptr, int colnum, int naxis, long *naxes, long *blc, long *trc, long *inc, double *array, char *flagval, int *anynul, int *status) |
int CFITS_API | ffggpb (fitsfile *fptr, long group, long firstelem, long nelem, unsigned char *array, int *status) |
int CFITS_API | ffggpsb (fitsfile *fptr, long group, long firstelem, long nelem, signed char *array, int *status) |
int CFITS_API | ffggpui (fitsfile *fptr, long group, long firstelem, long nelem, unsigned short *array, int *status) |
int CFITS_API | ffggpi (fitsfile *fptr, long group, long firstelem, long nelem, short *array, int *status) |
int CFITS_API | ffggpuj (fitsfile *fptr, long group, long firstelem, long nelem, unsigned long *array, int *status) |
int CFITS_API | ffggpj (fitsfile *fptr, long group, long firstelem, long nelem, long *array, int *status) |
int CFITS_API | ffggpjj (fitsfile *fptr, long group, long firstelem, long nelem, LONGLONG *array, int *status) |
int CFITS_API | ffggpuk (fitsfile *fptr, long group, long firstelem, long nelem, unsigned int *array, int *status) |
int CFITS_API | ffggpk (fitsfile *fptr, long group, long firstelem, long nelem, int *array, int *status) |
int CFITS_API | ffggpe (fitsfile *fptr, long group, long firstelem, long nelem, float *array, int *status) |
int CFITS_API | ffggpd (fitsfile *fptr, long group, long firstelem, long nelem, double *array, int *status) |
int CFITS_API | ffgcv (fitsfile *fptr, int datatype, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, void *nulval, void *array, int *anynul, int *status) |
int CFITS_API | ffgcf (fitsfile *fptr, int datatype, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, void *array, char *nullarray, int *anynul, int *status) |
int CFITS_API | ffgcvs (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, char *nulval, char **array, int *anynul, int *status) |
int CFITS_API | ffgcl (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, char *array, int *status) |
int CFITS_API | ffgcvl (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, char nulval, char *array, int *anynul, int *status) |
int CFITS_API | ffgcvb (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, unsigned char nulval, unsigned char *array, int *anynul, int *status) |
int CFITS_API | ffgcvsb (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, signed char nulval, signed char *array, int *anynul, int *status) |
int CFITS_API | ffgcvui (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, unsigned short nulval, unsigned short *array, int *anynul, int *status) |
int CFITS_API | ffgcvi (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, short nulval, short *array, int *anynul, int *status) |
int CFITS_API | ffgcvuj (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, unsigned long nulval, unsigned long *array, int *anynul, int *status) |
int CFITS_API | ffgcvj (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, long nulval, long *array, int *anynul, int *status) |
int CFITS_API | ffgcvjj (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, LONGLONG nulval, LONGLONG *array, int *anynul, int *status) |
int CFITS_API | ffgcvuk (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, unsigned int nulval, unsigned int *array, int *anynul, int *status) |
int CFITS_API | ffgcvk (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, int nulval, int *array, int *anynul, int *status) |
int CFITS_API | ffgcve (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, float nulval, float *array, int *anynul, int *status) |
int CFITS_API | ffgcvd (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, double nulval, double *array, int *anynul, int *status) |
int CFITS_API | ffgcvc (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, float nulval, float *array, int *anynul, int *status) |
int CFITS_API | ffgcvm (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, double nulval, double *array, int *anynul, int *status) |
int CFITS_API | ffgcx (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstbit, LONGLONG nbits, char *larray, int *status) |
int CFITS_API | ffgcxui (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG nrows, long firstbit, int nbits, unsigned short *array, int *status) |
int CFITS_API | ffgcxuk (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG nrows, long firstbit, int nbits, unsigned int *array, int *status) |
int CFITS_API | ffgcfs (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, char **array, char *nularray, int *anynul, int *status) |
int CFITS_API | ffgcfl (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, char *array, char *nularray, int *anynul, int *status) |
int CFITS_API | ffgcfb (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, unsigned char *array, char *nularray, int *anynul, int *status) |
int CFITS_API | ffgcfsb (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, signed char *array, char *nularray, int *anynul, int *status) |
int CFITS_API | ffgcfui (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, unsigned short *array, char *nularray, int *anynul, int *status) |
int CFITS_API | ffgcfi (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, short *array, char *nularray, int *anynul, int *status) |
int CFITS_API | ffgcfuj (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, unsigned long *array, char *nularray, int *anynul, int *status) |
int CFITS_API | ffgcfj (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, long *array, char *nularray, int *anynul, int *status) |
int CFITS_API | ffgcfjj (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, LONGLONG *array, char *nularray, int *anynul, int *status) |
int CFITS_API | ffgcfuk (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, unsigned int *array, char *nularray, int *anynul, int *status) |
int CFITS_API | ffgcfk (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, int *array, char *nularray, int *anynul, int *status) |
int CFITS_API | ffgcfe (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, float *array, char *nularray, int *anynul, int *status) |
int CFITS_API | ffgcfd (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, double *array, char *nularray, int *anynul, int *status) |
int CFITS_API | ffgcfc (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, float *array, char *nularray, int *anynul, int *status) |
int CFITS_API | ffgcfm (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, double *array, char *nularray, int *anynul, int *status) |
int CFITS_API | ffgdes (fitsfile *fptr, int colnum, LONGLONG rownum, long *length, long *heapaddr, int *status) |
int CFITS_API | ffgdesll (fitsfile *fptr, int colnum, LONGLONG rownum, LONGLONG *length, LONGLONG *heapaddr, int *status) |
int CFITS_API | ffgdess (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG nrows, long *length, long *heapaddr, int *status) |
int CFITS_API | ffgdessll (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG nrows, LONGLONG *length, LONGLONG *heapaddr, int *status) |
int CFITS_API | ffpdes (fitsfile *fptr, int colnum, LONGLONG rownum, LONGLONG length, LONGLONG heapaddr, int *status) |
int CFITS_API | fftheap (fitsfile *fptr, LONGLONG *heapsize, LONGLONG *unused, LONGLONG *overlap, int *valid, int *status) |
int CFITS_API | ffcmph (fitsfile *fptr, int *status) |
int CFITS_API | ffgtbb (fitsfile *fptr, LONGLONG firstrow, LONGLONG firstchar, LONGLONG nchars, unsigned char *values, int *status) |
int CFITS_API | ffgextn (fitsfile *fptr, LONGLONG offset, LONGLONG nelem, void *array, int *status) |
int CFITS_API | ffpextn (fitsfile *fptr, LONGLONG offset, LONGLONG nelem, void *array, int *status) |
int CFITS_API | ffppx (fitsfile *fptr, int datatype, long *firstpix, LONGLONG nelem, void *array, int *status) |
int CFITS_API | ffppxll (fitsfile *fptr, int datatype, LONGLONG *firstpix, LONGLONG nelem, void *array, int *status) |
int CFITS_API | ffppxn (fitsfile *fptr, int datatype, long *firstpix, LONGLONG nelem, void *array, void *nulval, int *status) |
int CFITS_API | ffppxnll (fitsfile *fptr, int datatype, LONGLONG *firstpix, LONGLONG nelem, void *array, void *nulval, int *status) |
int CFITS_API | ffppr (fitsfile *fptr, int datatype, LONGLONG firstelem, LONGLONG nelem, void *array, int *status) |
int CFITS_API | ffpprb (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, unsigned char *array, int *status) |
int CFITS_API | ffpprsb (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, signed char *array, int *status) |
int CFITS_API | ffpprui (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, unsigned short *array, int *status) |
int CFITS_API | ffppri (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, short *array, int *status) |
int CFITS_API | ffppruj (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, unsigned long *array, int *status) |
int CFITS_API | ffpprj (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, long *array, int *status) |
int CFITS_API | ffppruk (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, unsigned int *array, int *status) |
int CFITS_API | ffpprk (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, int *array, int *status) |
int CFITS_API | ffppre (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, float *array, int *status) |
int CFITS_API | ffpprd (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, double *array, int *status) |
int CFITS_API | ffpprjj (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, LONGLONG *array, int *status) |
int CFITS_API | ffppru (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, int *status) |
int CFITS_API | ffpprn (fitsfile *fptr, LONGLONG firstelem, LONGLONG nelem, int *status) |
int CFITS_API | ffppn (fitsfile *fptr, int datatype, LONGLONG firstelem, LONGLONG nelem, void *array, void *nulval, int *status) |
int CFITS_API | ffppnb (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, unsigned char *array, unsigned char nulval, int *status) |
int CFITS_API | ffppnsb (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, signed char *array, signed char nulval, int *status) |
int CFITS_API | ffppnui (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, unsigned short *array, unsigned short nulval, int *status) |
int CFITS_API | ffppni (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, short *array, short nulval, int *status) |
int CFITS_API | ffppnj (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, long *array, long nulval, int *status) |
int CFITS_API | ffppnuj (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, unsigned long *array, unsigned long nulval, int *status) |
int CFITS_API | ffppnuk (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, unsigned int *array, unsigned int nulval, int *status) |
int CFITS_API | ffppnk (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, int *array, int nulval, int *status) |
int CFITS_API | ffppne (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, float *array, float nulval, int *status) |
int CFITS_API | ffppnd (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, double *array, double nulval, int *status) |
int CFITS_API | ffppnjj (fitsfile *fptr, long group, LONGLONG firstelem, LONGLONG nelem, LONGLONG *array, LONGLONG nulval, int *status) |
int CFITS_API | ffp2db (fitsfile *fptr, long group, LONGLONG ncols, LONGLONG naxis1, LONGLONG naxis2, unsigned char *array, int *status) |
int CFITS_API | ffp2dsb (fitsfile *fptr, long group, LONGLONG ncols, LONGLONG naxis1, LONGLONG naxis2, signed char *array, int *status) |
int CFITS_API | ffp2dui (fitsfile *fptr, long group, LONGLONG ncols, LONGLONG naxis1, LONGLONG naxis2, unsigned short *array, int *status) |
int CFITS_API | ffp2di (fitsfile *fptr, long group, LONGLONG ncols, LONGLONG naxis1, LONGLONG naxis2, short *array, int *status) |
int CFITS_API | ffp2duj (fitsfile *fptr, long group, LONGLONG ncols, LONGLONG naxis1, LONGLONG naxis2, unsigned long *array, int *status) |
int CFITS_API | ffp2dj (fitsfile *fptr, long group, LONGLONG ncols, LONGLONG naxis1, LONGLONG naxis2, long *array, int *status) |
int CFITS_API | ffp2duk (fitsfile *fptr, long group, LONGLONG ncols, LONGLONG naxis1, LONGLONG naxis2, unsigned int *array, int *status) |
int CFITS_API | ffp2dk (fitsfile *fptr, long group, LONGLONG ncols, LONGLONG naxis1, LONGLONG naxis2, int *array, int *status) |
int CFITS_API | ffp2de (fitsfile *fptr, long group, LONGLONG ncols, LONGLONG naxis1, LONGLONG naxis2, float *array, int *status) |
int CFITS_API | ffp2dd (fitsfile *fptr, long group, LONGLONG ncols, LONGLONG naxis1, LONGLONG naxis2, double *array, int *status) |
int CFITS_API | ffp2djj (fitsfile *fptr, long group, LONGLONG ncols, LONGLONG naxis1, LONGLONG naxis2, LONGLONG *array, int *status) |
int CFITS_API | ffp3db (fitsfile *fptr, long group, LONGLONG ncols, LONGLONG nrows, LONGLONG naxis1, LONGLONG naxis2, LONGLONG naxis3, unsigned char *array, int *status) |
int CFITS_API | ffp3dsb (fitsfile *fptr, long group, LONGLONG ncols, LONGLONG nrows, LONGLONG naxis1, LONGLONG naxis2, LONGLONG naxis3, signed char *array, int *status) |
int CFITS_API | ffp3dui (fitsfile *fptr, long group, LONGLONG ncols, LONGLONG nrows, LONGLONG naxis1, LONGLONG naxis2, LONGLONG naxis3, unsigned short *array, int *status) |
int CFITS_API | ffp3di (fitsfile *fptr, long group, LONGLONG ncols, LONGLONG nrows, LONGLONG naxis1, LONGLONG naxis2, LONGLONG naxis3, short *array, int *status) |
int CFITS_API | ffp3duj (fitsfile *fptr, long group, LONGLONG ncols, LONGLONG nrows, LONGLONG naxis1, LONGLONG naxis2, LONGLONG naxis3, unsigned long *array, int *status) |
int CFITS_API | ffp3dj (fitsfile *fptr, long group, LONGLONG ncols, LONGLONG nrows, LONGLONG naxis1, LONGLONG naxis2, LONGLONG naxis3, long *array, int *status) |
int CFITS_API | ffp3duk (fitsfile *fptr, long group, LONGLONG ncols, LONGLONG nrows, LONGLONG naxis1, LONGLONG naxis2, LONGLONG naxis3, unsigned int *array, int *status) |
int CFITS_API | ffp3dk (fitsfile *fptr, long group, LONGLONG ncols, LONGLONG nrows, LONGLONG naxis1, LONGLONG naxis2, LONGLONG naxis3, int *array, int *status) |
int CFITS_API | ffp3de (fitsfile *fptr, long group, LONGLONG ncols, LONGLONG nrows, LONGLONG naxis1, LONGLONG naxis2, LONGLONG naxis3, float *array, int *status) |
int CFITS_API | ffp3dd (fitsfile *fptr, long group, LONGLONG ncols, LONGLONG nrows, LONGLONG naxis1, LONGLONG naxis2, LONGLONG naxis3, double *array, int *status) |
int CFITS_API | ffp3djj (fitsfile *fptr, long group, LONGLONG ncols, LONGLONG nrows, LONGLONG naxis1, LONGLONG naxis2, LONGLONG naxis3, LONGLONG *array, int *status) |
int CFITS_API | ffpss (fitsfile *fptr, int datatype, long *fpixel, long *lpixel, void *array, int *status) |
int CFITS_API | ffpssb (fitsfile *fptr, long group, long naxis, long *naxes, long *fpixel, long *lpixel, unsigned char *array, int *status) |
int CFITS_API | ffpsssb (fitsfile *fptr, long group, long naxis, long *naxes, long *fpixel, long *lpixel, signed char *array, int *status) |
int CFITS_API | ffpssui (fitsfile *fptr, long group, long naxis, long *naxes, long *fpixel, long *lpixel, unsigned short *array, int *status) |
int CFITS_API | ffpssi (fitsfile *fptr, long group, long naxis, long *naxes, long *fpixel, long *lpixel, short *array, int *status) |
int CFITS_API | ffpssuj (fitsfile *fptr, long group, long naxis, long *naxes, long *fpixel, long *lpixel, unsigned long *array, int *status) |
int CFITS_API | ffpssj (fitsfile *fptr, long group, long naxis, long *naxes, long *fpixel, long *lpixel, long *array, int *status) |
int CFITS_API | ffpssuk (fitsfile *fptr, long group, long naxis, long *naxes, long *fpixel, long *lpixel, unsigned int *array, int *status) |
int CFITS_API | ffpssk (fitsfile *fptr, long group, long naxis, long *naxes, long *fpixel, long *lpixel, int *array, int *status) |
int CFITS_API | ffpsse (fitsfile *fptr, long group, long naxis, long *naxes, long *fpixel, long *lpixel, float *array, int *status) |
int CFITS_API | ffpssd (fitsfile *fptr, long group, long naxis, long *naxes, long *fpixel, long *lpixel, double *array, int *status) |
int CFITS_API | ffpssjj (fitsfile *fptr, long group, long naxis, long *naxes, long *fpixel, long *lpixel, LONGLONG *array, int *status) |
int CFITS_API | ffpgpb (fitsfile *fptr, long group, long firstelem, long nelem, unsigned char *array, int *status) |
int CFITS_API | ffpgpsb (fitsfile *fptr, long group, long firstelem, long nelem, signed char *array, int *status) |
int CFITS_API | ffpgpui (fitsfile *fptr, long group, long firstelem, long nelem, unsigned short *array, int *status) |
int CFITS_API | ffpgpi (fitsfile *fptr, long group, long firstelem, long nelem, short *array, int *status) |
int CFITS_API | ffpgpuj (fitsfile *fptr, long group, long firstelem, long nelem, unsigned long *array, int *status) |
int CFITS_API | ffpgpj (fitsfile *fptr, long group, long firstelem, long nelem, long *array, int *status) |
int CFITS_API | ffpgpuk (fitsfile *fptr, long group, long firstelem, long nelem, unsigned int *array, int *status) |
int CFITS_API | ffpgpk (fitsfile *fptr, long group, long firstelem, long nelem, int *array, int *status) |
int CFITS_API | ffpgpe (fitsfile *fptr, long group, long firstelem, long nelem, float *array, int *status) |
int CFITS_API | ffpgpd (fitsfile *fptr, long group, long firstelem, long nelem, double *array, int *status) |
int CFITS_API | ffpgpjj (fitsfile *fptr, long group, long firstelem, long nelem, LONGLONG *array, int *status) |
int CFITS_API | fits_iter_set_by_name (iteratorCol *col, fitsfile *fptr, char *colname, int datatype, int iotype) |
int CFITS_API | fits_iter_set_by_num (iteratorCol *col, fitsfile *fptr, int colnum, int datatype, int iotype) |
int CFITS_API | fits_iter_set_file (iteratorCol *col, fitsfile *fptr) |
int CFITS_API | fits_iter_set_colname (iteratorCol *col, char *colname) |
int CFITS_API | fits_iter_set_colnum (iteratorCol *col, int colnum) |
int CFITS_API | fits_iter_set_datatype (iteratorCol *col, int datatype) |
int CFITS_API | fits_iter_set_iotype (iteratorCol *col, int iotype) |
CFITS_API fitsfile * | fits_iter_get_file (iteratorCol *col) |
char CFITS_API * | fits_iter_get_colname (iteratorCol *col) |
int CFITS_API | fits_iter_get_colnum (iteratorCol *col) |
int CFITS_API | fits_iter_get_datatype (iteratorCol *col) |
int CFITS_API | fits_iter_get_iotype (iteratorCol *col) |
void CFITS_API * | fits_iter_get_array (iteratorCol *col) |
long CFITS_API | fits_iter_get_tlmin (iteratorCol *col) |
long CFITS_API | fits_iter_get_tlmax (iteratorCol *col) |
long CFITS_API | fits_iter_get_repeat (iteratorCol *col) |
char CFITS_API * | fits_iter_get_tunit (iteratorCol *col) |
char CFITS_API * | fits_iter_get_tdisp (iteratorCol *col) |
int CFITS_API | ffiter (int ncols, iteratorCol *data, long offset, long nPerLoop, int(*workFn)(long totaln, long offset, long firstn, long nvalues, int narrays, iteratorCol *data, void *userPointer), void *userPointer, int *status) |
int CFITS_API | ffpcl (fitsfile *fptr, int datatype, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, void *array, int *status) |
int CFITS_API | ffpcls (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, char **array, int *status) |
int CFITS_API | ffpcll (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, char *array, int *status) |
int CFITS_API | ffpclb (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, unsigned char *array, int *status) |
int CFITS_API | ffpclsb (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, signed char *array, int *status) |
int CFITS_API | ffpclui (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, unsigned short *array, int *status) |
int CFITS_API | ffpcli (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, short *array, int *status) |
int CFITS_API | ffpcluj (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, unsigned long *array, int *status) |
int CFITS_API | ffpclj (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, long *array, int *status) |
int CFITS_API | ffpcluk (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, unsigned int *array, int *status) |
int CFITS_API | ffpclk (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, int *array, int *status) |
int CFITS_API | ffpcle (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, float *array, int *status) |
int CFITS_API | ffpcld (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, double *array, int *status) |
int CFITS_API | ffpclc (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, float *array, int *status) |
int CFITS_API | ffpclm (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, double *array, int *status) |
int CFITS_API | ffpclu (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, int *status) |
int CFITS_API | ffprwu (fitsfile *fptr, LONGLONG firstrow, LONGLONG nrows, int *status) |
int CFITS_API | ffpcljj (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, LONGLONG *array, int *status) |
int CFITS_API | ffpclx (fitsfile *fptr, int colnum, LONGLONG frow, long fbit, long nbit, char *larray, int *status) |
int CFITS_API | ffpcn (fitsfile *fptr, int datatype, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, void *array, void *nulval, int *status) |
int CFITS_API | ffpcns (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, char **array, char *nulvalue, int *status) |
int CFITS_API | ffpcnl (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, char *array, char nulvalue, int *status) |
int CFITS_API | ffpcnb (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, unsigned char *array, unsigned char nulvalue, int *status) |
int CFITS_API | ffpcnsb (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, signed char *array, signed char nulvalue, int *status) |
int CFITS_API | ffpcnui (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, unsigned short *array, unsigned short nulvalue, int *status) |
int CFITS_API | ffpcni (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, short *array, short nulvalue, int *status) |
int CFITS_API | ffpcnuj (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, unsigned long *array, unsigned long nulvalue, int *status) |
int CFITS_API | ffpcnj (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, long *array, long nulvalue, int *status) |
int CFITS_API | ffpcnuk (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, unsigned int *array, unsigned int nulvalue, int *status) |
int CFITS_API | ffpcnk (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, int *array, int nulvalue, int *status) |
int CFITS_API | ffpcne (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, float *array, float nulvalue, int *status) |
int CFITS_API | ffpcnd (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, double *array, double nulvalue, int *status) |
int CFITS_API | ffpcnjj (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, LONGLONG *array, LONGLONG nulvalue, int *status) |
int CFITS_API | ffptbb (fitsfile *fptr, LONGLONG firstrow, LONGLONG firstchar, LONGLONG nchars, unsigned char *values, int *status) |
int CFITS_API | ffirow (fitsfile *fptr, LONGLONG firstrow, LONGLONG nrows, int *status) |
int CFITS_API | ffdrow (fitsfile *fptr, LONGLONG firstrow, LONGLONG nrows, int *status) |
int CFITS_API | ffdrrg (fitsfile *fptr, char *ranges, int *status) |
int CFITS_API | ffdrws (fitsfile *fptr, long *rownum, long nrows, int *status) |
int CFITS_API | ffdrwsll (fitsfile *fptr, LONGLONG *rownum, LONGLONG nrows, int *status) |
int CFITS_API | fficol (fitsfile *fptr, int numcol, char *ttype, char *tform, int *status) |
int CFITS_API | fficls (fitsfile *fptr, int firstcol, int ncols, char **ttype, char **tform, int *status) |
int CFITS_API | ffmvec (fitsfile *fptr, int colnum, LONGLONG newveclen, int *status) |
int CFITS_API | ffdcol (fitsfile *fptr, int numcol, int *status) |
int CFITS_API | ffcpcl (fitsfile *infptr, fitsfile *outfptr, int incol, int outcol, int create_col, int *status) |
int CFITS_API | ffcprw (fitsfile *infptr, fitsfile *outfptr, LONGLONG firstrow, LONGLONG nrows, int *status) |
int CFITS_API | ffgics (fitsfile *fptr, double *xrval, double *yrval, double *xrpix, double *yrpix, double *xinc, double *yinc, double *rot, char *type, int *status) |
int CFITS_API | ffgicsa (fitsfile *fptr, char version, double *xrval, double *yrval, double *xrpix, double *yrpix, double *xinc, double *yinc, double *rot, char *type, int *status) |
int CFITS_API | ffgtcs (fitsfile *fptr, int xcol, int ycol, double *xrval, double *yrval, double *xrpix, double *yrpix, double *xinc, double *yinc, double *rot, char *type, int *status) |
int CFITS_API | ffwldp (double xpix, double ypix, double xref, double yref, double xrefpix, double yrefpix, double xinc, double yinc, double rot, char *type, double *xpos, double *ypos, int *status) |
int CFITS_API | ffxypx (double xpos, double ypos, double xref, double yref, double xrefpix, double yrefpix, double xinc, double yinc, double rot, char *type, double *xpix, double *ypix, int *status) |
int CFITS_API | ffgiwcs (fitsfile *fptr, char **header, int *status) |
int CFITS_API | ffgtwcs (fitsfile *fptr, int xcol, int ycol, char **header, int *status) |
int CFITS_API | fftexp (fitsfile *fptr, char *expr, int maxdim, int *datatype, long *nelem, int *naxis, long *naxes, int *status) |
int CFITS_API | fffrow (fitsfile *infptr, char *expr, long firstrow, long nrows, long *n_good_rows, char *row_status, int *status) |
int CFITS_API | ffffrw (fitsfile *fptr, char *expr, long *rownum, int *status) |
int CFITS_API | fffrwc (fitsfile *fptr, char *expr, char *timeCol, char *parCol, char *valCol, long ntimes, double *times, char *time_status, int *status) |
int CFITS_API | ffsrow (fitsfile *infptr, fitsfile *outfptr, char *expr, int *status) |
int CFITS_API | ffcrow (fitsfile *fptr, int datatype, char *expr, long firstrow, long nelements, void *nulval, void *array, int *anynul, int *status) |
int CFITS_API | ffcalc_rng (fitsfile *infptr, char *expr, fitsfile *outfptr, char *parName, char *parInfo, int nRngs, long *start, long *end, int *status) |
int CFITS_API | ffcalc (fitsfile *infptr, char *expr, fitsfile *outfptr, char *parName, char *parInfo, int *status) |
int CFITS_API | ffhist (fitsfile **fptr, char *outfile, int imagetype, int naxis, char colname[4][FLEN_VALUE], double *minin, double *maxin, double *binsizein, char minname[4][FLEN_VALUE], char maxname[4][FLEN_VALUE], char binname[4][FLEN_VALUE], double weightin, char wtcol[FLEN_VALUE], int recip, char *rowselect, int *status) |
int CFITS_API | ffhist2 (fitsfile **fptr, char *outfile, int imagetype, int naxis, char colname[4][FLEN_VALUE], double *minin, double *maxin, double *binsizein, char minname[4][FLEN_VALUE], char maxname[4][FLEN_VALUE], char binname[4][FLEN_VALUE], double weightin, char wtcol[FLEN_VALUE], int recip, char *rowselect, int *status) |
CFITS_API fitsfile * | ffhist3 (fitsfile *fptr, char *outfile, int imagetype, int naxis, char colname[4][FLEN_VALUE], double *minin, double *maxin, double *binsizein, char minname[4][FLEN_VALUE], char maxname[4][FLEN_VALUE], char binname[4][FLEN_VALUE], double weightin, char wtcol[FLEN_VALUE], int recip, char *selectrow, int *status) |
int CFITS_API | fits_select_image_section (fitsfile **fptr, char *outfile, char *imagesection, int *status) |
int CFITS_API | fits_copy_image_section (fitsfile *infptr, fitsfile *outfile, char *imagesection, int *status) |
int CFITS_API | fits_calc_binning (fitsfile *fptr, int naxis, char colname[4][FLEN_VALUE], double *minin, double *maxin, double *binsizein, char minname[4][FLEN_VALUE], char maxname[4][FLEN_VALUE], char binname[4][FLEN_VALUE], int *colnum, long *haxes, float *amin, float *amax, float *binsize, int *status) |
int CFITS_API | fits_write_keys_histo (fitsfile *fptr, fitsfile *histptr, int naxis, int *colnum, int *status) |
int CFITS_API | fits_rebin_wcs (fitsfile *fptr, int naxis, float *amin, float *binsize, int *status) |
int CFITS_API | fits_make_hist (fitsfile *fptr, fitsfile *histptr, int bitpix, int naxis, long *naxes, int *colnum, float *amin, float *amax, float *binsize, float weight, int wtcolnum, int recip, char *selectrow, int *status) |
int CFITS_API | fits_pixel_filter (PixelFilter *filter, int *status) |
int CFITS_API | ffgtcr (fitsfile *fptr, char *grpname, int grouptype, int *status) |
int CFITS_API | ffgtis (fitsfile *fptr, char *grpname, int grouptype, int *status) |
int CFITS_API | ffgtch (fitsfile *gfptr, int grouptype, int *status) |
int CFITS_API | ffgtrm (fitsfile *gfptr, int rmopt, int *status) |
int CFITS_API | ffgtcp (fitsfile *infptr, fitsfile *outfptr, int cpopt, int *status) |
int CFITS_API | ffgtmg (fitsfile *infptr, fitsfile *outfptr, int mgopt, int *status) |
int CFITS_API | ffgtcm (fitsfile *gfptr, int cmopt, int *status) |
int CFITS_API | ffgtvf (fitsfile *gfptr, long *firstfailed, int *status) |
int CFITS_API | ffgtop (fitsfile *mfptr, int group, fitsfile **gfptr, int *status) |
int CFITS_API | ffgtam (fitsfile *gfptr, fitsfile *mfptr, int hdupos, int *status) |
int CFITS_API | ffgtnm (fitsfile *gfptr, long *nmembers, int *status) |
int CFITS_API | ffgmng (fitsfile *mfptr, long *nmembers, int *status) |
int CFITS_API | ffgmop (fitsfile *gfptr, long member, fitsfile **mfptr, int *status) |
int CFITS_API | ffgmcp (fitsfile *gfptr, fitsfile *mfptr, long member, int cpopt, int *status) |
int CFITS_API | ffgmtf (fitsfile *infptr, fitsfile *outfptr, long member, int tfopt, int *status) |
int CFITS_API | ffgmrm (fitsfile *fptr, long member, int rmopt, int *status) |
int CFITS_API | fits_execute_template (fitsfile *ff, char *ngp_template, int *status) |
int CFITS_API | fits_img_stats_short (short *array, long nx, long ny, int nullcheck, short nullvalue, long *ngoodpix, short *minvalue, short *maxvalue, double *mean, double *sigma, double *noise1, double *noise2, double *noise3, double *noise5, int *status) |
int CFITS_API | fits_img_stats_int (int *array, long nx, long ny, int nullcheck, int nullvalue, long *ngoodpix, int *minvalue, int *maxvalue, double *mean, double *sigma, double *noise1, double *noise2, double *noise3, double *noise5, int *status) |
int CFITS_API | fits_img_stats_float (float *array, long nx, long ny, int nullcheck, float nullvalue, long *ngoodpix, float *minvalue, float *maxvalue, double *mean, double *sigma, double *noise1, double *noise2, double *noise3, double *noise5, int *status) |
int CFITS_API | fits_set_compression_type (fitsfile *fptr, int ctype, int *status) |
int CFITS_API | fits_set_tile_dim (fitsfile *fptr, int ndim, long *dims, int *status) |
int CFITS_API | fits_set_noise_bits (fitsfile *fptr, int noisebits, int *status) |
int CFITS_API | fits_set_quantize_level (fitsfile *fptr, float qlevel, int *status) |
int CFITS_API | fits_set_hcomp_scale (fitsfile *fptr, float scale, int *status) |
int CFITS_API | fits_set_hcomp_smooth (fitsfile *fptr, int smooth, int *status) |
int CFITS_API | fits_set_quantize_method (fitsfile *fptr, int method, int *status) |
int CFITS_API | fits_set_quantize_dither (fitsfile *fptr, int dither, int *status) |
int CFITS_API | fits_set_dither_seed (fitsfile *fptr, int seed, int *status) |
int CFITS_API | fits_set_dither_offset (fitsfile *fptr, int offset, int *status) |
int CFITS_API | fits_set_lossy_int (fitsfile *fptr, int lossy_int, int *status) |
int CFITS_API | fits_set_huge_hdu (fitsfile *fptr, int huge, int *status) |
int CFITS_API | fits_set_compression_pref (fitsfile *infptr, fitsfile *outfptr, int *status) |
int CFITS_API | fits_get_compression_type (fitsfile *fptr, int *ctype, int *status) |
int CFITS_API | fits_get_tile_dim (fitsfile *fptr, int ndim, long *dims, int *status) |
int CFITS_API | fits_get_quantize_level (fitsfile *fptr, float *qlevel, int *status) |
int CFITS_API | fits_get_noise_bits (fitsfile *fptr, int *noisebits, int *status) |
int CFITS_API | fits_get_hcomp_scale (fitsfile *fptr, float *scale, int *status) |
int CFITS_API | fits_get_hcomp_smooth (fitsfile *fptr, int *smooth, int *status) |
int CFITS_API | fits_get_dither_seed (fitsfile *fptr, int *seed, int *status) |
int CFITS_API | fits_img_compress (fitsfile *infptr, fitsfile *outfptr, int *status) |
int CFITS_API | fits_compress_img (fitsfile *infptr, fitsfile *outfptr, int compress_type, long *tilesize, int parm1, int parm2, int *status) |
int CFITS_API | fits_is_compressed_image (fitsfile *fptr, int *status) |
int CFITS_API | fits_is_reentrant (void) |
int CFITS_API | fits_decompress_img (fitsfile *infptr, fitsfile *outfptr, int *status) |
int CFITS_API | fits_img_decompress_header (fitsfile *infptr, fitsfile *outfptr, int *status) |
int CFITS_API | fits_img_decompress (fitsfile *infptr, fitsfile *outfptr, int *status) |
int CFITS_API | fits_hcompress (int *a, int nx, int ny, int scale, char *output, long *nbytes, int *status) |
int CFITS_API | fits_hcompress64 (LONGLONG *a, int nx, int ny, int scale, char *output, long *nbytes, int *status) |
int CFITS_API | fits_hdecompress (unsigned char *input, int smooth, int *a, int *nx, int *ny, int *scale, int *status) |
int CFITS_API | fits_hdecompress64 (unsigned char *input, int smooth, LONGLONG *a, int *nx, int *ny, int *scale, int *status) |
int CFITS_API | fits_compress_table (fitsfile *infptr, fitsfile *outfptr, int *status) |
int CFITS_API | fits_uncompress_table (fitsfile *infptr, fitsfile *outfptr, int *status) |
#define ANGLE_TOO_BIG 501 /* celestial angle too large for projection */ |
error status code. celestial angle too large for projection/
#define ANY_HDU -1 /* matches any HDU type */ |
matches any HDU type
#define APPROX_WCS_KEY 506 /* approximate WCS keywords were calculated */ |
error status code. approximate WCS keywords were calculated/
#define ARRAY_TOO_BIG 111 /* array dimensions exceed internal limit */ |
error status code. array dimensions exceed internal limit/
#define ASCII_TBL 1 /* ASCII table HDU */ |
ASCII table HDU
#define BAD_ATABLE_FORMAT 311 /* ASCII table column has wrong format */ |
error status code ASCII table column has wrong format/
#define BAD_BITPIX 211 /* illegal BITPIX keyword value*/ |
error status code illegal BITPIX keyword value
#define BAD_BTABLE_FORMAT 312 /* Binary table column has wrong format */ |
error status code Binary table column has wrong format/
#define BAD_C2D 409 /* bad formatted string to double conversion */ |
error status code. bad formatted string to double conversion/
#define BAD_C2F 408 /* bad formatted string to float conversion */ |
error status code. bad formatted string to float conversion/
#define BAD_C2I 407 /* bad formatted string to int conversion */ |
error status code. bad formatted string to int conversion/
#define BAD_COL_NUM 302 /* column number < 1 or > tfields */ |
error status code column number < 1 or > tfields/
#define BAD_DATA_FILL 255 /* Data fill area not blank or zero */ |
error status code Data fill area not blank or zero
#define BAD_DATATYPE 410 /* bad keyword datatype code */ |
error status code. bad keyword datatype code/
#define BAD_DATE 420 /* error in date or time conversion */ |
error status code. error in date or time conversion/
#define BAD_DECIM 411 /* bad number of decimal places specified */ |
error status code. bad number of decimal places specified/
#define BAD_DIMEN 320 /* illegal number of dimensions in array */ |
error status code illegal number of dimensions in array/
#define BAD_DOUBLEKEY 406 /* can't interprete keyword value as double */ |
error status code. can't interprete keyword value as double/
#define BAD_ELEM_NUM 308 /* illegal starting element number in vector */ |
error status code illegal starting element number in vector/
#define BAD_F2C 402 /* bad float to formatted string conversion */ |
error status code. bad float to formatted string conversion/
#define BAD_FILEPTR 114 /* invalid fitsfile pointer */ |
error status code. invalid fitsfile pointer/
#define BAD_FLOATKEY 405 /* can't interprete keyword value as float */ |
error status code. can't interprete keyword value as float/
#define BAD_GCOUNT 215 /* illegal GCOUNT keyword value */ |
error status code illegal GCOUNT keyword value/
#define BAD_GROUP_ATTACH 349 |
error status code
#define BAD_GROUP_DETACH 350 |
error status code
#define BAD_GROUP_ID 344 |
error status code
#define BAD_HDU_NUM 301 /* HDU number < 1 or > MAXHDU */ |
error status code HDU number < 1 or > MAXHDU/
#define BAD_HEADER_FILL 254 /* Header fill area not blank */ |
error status code Header fill area not blank
#define BAD_HEAP_PTR 264 /* invalid BINTABLE heap address */ |
error status code invalid BINTABLE heap address/
#define BAD_I2C 401 /* bad int to formatted string conversion */ |
error status code. bad int to formatted string conversion/
#define BAD_INDEX_KEY 206 /* illegal indexed keyword name */ |
error status code illegal indexed keyword name/
#define BAD_INTKEY 403 /* can't interprete keyword value as integer */ |
error status code. can't interprete keyword value as integer/
#define BAD_KEYCHAR 207 /* illegal character in keyword name or card */ |
error status code illegal character in keyword name or card/
#define BAD_LOGICALKEY 404 /* can't interprete keyword value as logical */ |
error status code. can't interprete keyword value as logical/
#define BAD_NAXES 213 /* illegal NAXISn keyword value */ |
error status code illegal NAXISn keyword value/
#define BAD_NAXIS 212 /* illegal NAXIS keyword value */ |
error status code illegal NAXIS keyword value/
#define BAD_OPTION 347 |
error status code
#define BAD_ORDER 208 /* required keywords out of order */ |
error status code required keywords out of order/
#define BAD_PCOUNT 214 /* illegal PCOUNT keyword value */ |
error status code illegal PCOUNT keyword value/
#define BAD_PIX_NUM 321 /* first pixel number greater than last pixel */ |
error status code first pixel number greater than last pixel/
#define BAD_ROW_NUM 307 /* illegal starting row number in table */ |
error status code illegal starting row number in table/
#define BAD_ROW_WIDTH 241 /* sum of column widths not = NAXIS1 */ |
error status code sum of column widths not = NAXIS1/
#define BAD_SIMPLE 220 /* illegal value of SIMPLE keyword */ |
error status code illegal value of SIMPLE keyword /
#define BAD_TBCOL 234 /* TBCOLn keyword value < 0 or > rowlength */ |
error status code TBCOLn keyword value < 0 or > rowlength/
#define BAD_TDIM 263 /* illegal TDIMn keyword value */ |
error status code illegal TDIMn keyword value/
#define BAD_TFIELDS 216 /* illegal TFIELDS keyword value */ |
error status code illegal TFIELDS keyword value/
#define BAD_TFORM 261 /* illegal TFORM format code */ |
error status code illegal TFORM format code
#define BAD_TFORM_DTYPE 262 /* unrecognizable TFORM datatype code */ |
error status code unrecognizable TFORM datatype code/
#define BAD_URL_PREFIX 121 /* invalid URL prefix on file name */ |
error status code. invalid URL prefix on file name/
#define BAD_WCS_PROJ 504 /* unsupported type of celestial projection */ |
error status code. unsupported type of celestial projection/
#define BAD_WCS_VAL 502 /* bad celestial coordinate or pixel value */ |
error status code. bad celestial coordinate or pixel value/
#define BINARY_TBL 2 /* Binary table HDU */ |
Binary table HDU
#define BYTE_IMG 8 /* BITPIX code values for FITS image types */ |
BITPIX code value for FITS image type
#define BZIP2_1 51 /* not publicly supported; only for test purposes */ |
Compression algorithm code. not publicly supported; only for test purposes
#define CASEINSEN 0 /* do case-insensitive string match */ |
do case-insensitive string match
#define CASESEN 1 /* do case-sensitive string match */ |
do case-sensitive string match
#define CFITS_API |
#define CFITSIO_MAJOR 3 |
#define CFITSIO_MINOR 39 |
Subversion number
#define CFITSIO_SONAME 5 |
the SONAME is incremented in a new release if the binary shared library (on linux and Mac systems) is not backward compatible with the previous release of CFITSIO
#define CFITSIO_VERSION 3.39 |
major version number
#define COL_NOT_FOUND 219 /* column with this name not found in table */ |
error status code column with this name not found in table/
#define COL_NOT_UNIQUE 237 /* more than 1 column name matches template */ |
error status code more than 1 column name matches template/
#define COL_TOO_WIDE 236 /* column is too wide to fit in table */ |
error status code column is too wide to fit in table/
#define CREATE_DISK_FILE -106 /* create disk file, without extended filename syntax */ |
error status code. create disk file, without extended filename syntax/
#define DATA_COMPRESSION_ERR 413 /* error in imcompress routines */ |
error status code. error in imcompress routines/
#define DATA_DECOMPRESSION_ERR 414 /* error in imcompress routines */ |
error status code. error in imcompress routines/
#define DOUBLE_IMG -64 |
BITPIX code value for FITS image type
#define DOUBLENULLVALUE -9.1191291391491E-36 |
a hopefully obscure number to use as a null value flag could be problems if the FITS files contain data with these values
#define DRIVER_INIT_FAILED 123 /* driver initialization failed */ |
error status code. driver initialization failed/
#define END_JUNK 253 /* END keyword is not blank */ |
error status code END keyword is not blank
#define END_OF_FILE 107 /* tried to move past end of file */ |
error status code. tried to move past end of file/
#define FALSE 0 |
Integer Value false (in the C sense)
#define FILE_NOT_CLOSED 110 /* could not close the file */ |
error status code. could not close the file/
#define FILE_NOT_CREATED 105 /* could not create the named file */ |
error status code. could not create the named file/
#define FILE_NOT_OPENED 104 /* could not open the named file */ |
#define FLEN_CARD 81 /* length of a FITS header card */ |
length of a FITS header card
#define FLEN_COMMENT 73 /* max length of a keyword comment string */ |
max length of a keyword comment string
max length of a FITSIO error message
#define FLEN_FILENAME 1025 /* max length of a filename */ |
max length of a filename
#define FLEN_KEYWORD 75 /* max length of a keyword (HIERARCH convention) */ |
max length of a keyword (HIERARCH convention)
#define FLEN_STATUS 31 /* max length of a FITSIO status text string */ |
max length of a FITSIO status text string
#define FLEN_VALUE 71 /* max length of a keyword value string */ |
max length of a keyword value string
#define FLOAT_IMG -32 |
BITPIX code value for FITS image type
#define FLOATNULLVALUE -9.11912E-36F |
a hopefully obscure number to use as a null value flag could be problems if the FITS files contain data with these values
#define GROUP_NOT_FOUND 343 |
error status code
#define GT_ID_ALL 3 |
Hierarchical grouping parameter
#define GT_ID_ALL_URI 0 /* hierarchical grouping parameters */ |
Hierarchical grouping parameter
#define GT_ID_POS 2 |
Hierarchical grouping parameter
#define GT_ID_POS_URI 12 |
Hierarchical grouping parameter
#define GT_ID_REF 1 |
Hierarchical grouping parameter
#define GT_ID_REF_URI 11 |
Hierarchical grouping parameter
#define GZIP_1 21 |
Compression algorithm code
#define GZIP_2 22 |
Compression algorithm code
#define HCOMPRESS_1 41 |
Compression algorithm code
#define HDU_ALREADY_MEMBER 341 |
error status code
#define HDU_ALREADY_TRACKED 346 |
error status code
#define HEADER_NOT_EMPTY 201 /* header already contains keywords */ |
error status code header already contains keywords/
#define IDENTICAL_POINTERS 348 |
error status code
#define IMAGE_HDU 0 /* Primary Array or IMAGE HDU */ |
Primary Array or IMAGE HDU
#define InputCol 0 /* flag for input only iterator column */ |
flag for input only iterator column
#define InputOutputCol 1 /* flag for input and output iterator column */ |
flag for input and output iterator column
#define INT32BIT int /* 32-bit integer datatype. Currently this */ |
32-bit integer datatype. Currently this datatype is an 'int' on all useful platforms however, it is possible that that are cases where 'int' is a 2-byte integer, in which case INT32BIT would need to be defined as 'long'.
#define IOBUFLEN 2880 /* size in bytes of each IO buffer (DONT CHANGE!) */ |
#define KEY_NO_EXIST 202 /* keyword not found in header */ |
error status code keyword not found in header/
#define KEY_OUT_BOUNDS 203 /* keyword record number is out of bounds */ |
error status code keyword record number is out of bounds/
#define LONG_IMG 32 |
BITPIX code value for FITS image type
#define LONGLONG_IMG 64 |
BITPIX code value for FITS image type
#define LONGLONG_MAX 9223372036854775807LL /* max 64-bit integer */ |
Maximum number fitting into a 64bit integer
#define LONGLONG_MIN (-LONGLONG_MAX -1LL) /* min 64-bit integer */ |
Minum (large negative) number fitting into a 64bit integer
#define LONGLONG_TYPE |
#define MAX_COMPRESS_DIM 6 |
Compression algorithm code
#define MEMBER_NOT_FOUND 342 |
error status code
#define MEMORY_ALLOCATION 113 /* Could not allocate memory */ |
error status code. Could not allocate memory/
#define NEG_AXIS 323 /* illegal axis length < 1 */ |
error status code illegal axis length < 1/
#define NEG_BYTES 306 /* tried to read or write negative bytes */ |
error status code tried to read or write negative bytes/
#define NEG_FILE_POS 304 /* tried to move before beginning of file */ |
error status code tried to move before beginning of file /
#define NEG_ROWS 218 /* negative number of rows in table */ |
error status code negative number of rows in table/
#define NEG_WIDTH 217 /* negative table row size */ |
error status code negative table row size/
#define NGP_BAD_ARG (NGP_ERRBASE + 8) /* bad arguments passed */ |
error status code in grparser.c. bad arguments passed
#define NGP_EMPTY_CURLINE (NGP_ERRBASE + 3) /* line read seems to be empty */ |
error status code in grparser.c line read seems to be empty
#define NGP_EOF (NGP_ERRBASE + 7) /* end of file encountered */ |
error status code in grparser.c. end of file encountered
#define NGP_ERR_FOPEN (NGP_ERRBASE + 6) /* fopen() failed, cannot open file */ |
error status code in grparser.c. fopen() failed, cannot open file
#define NGP_ERRBASE (360) /* base chosen so not to interfere with CFITSIO */ |
error status code in grparser.c. base chosen so not to interfere with CFITSIO
#define NGP_INC_NESTING (NGP_ERRBASE + 5) /* too deep include file nesting (inf. loop ?) */ |
error status code in grparser.c. too deep include file nesting (inf. loop ?) /*!
#define NGP_NO_MEMORY (NGP_ERRBASE + 0) /* malloc failed */ |
error status code. in grparser.c malloc failed
#define NGP_NUL_PTR (NGP_ERRBASE + 2) /* null pointer passed as argument */ |
error status code in grparser.c null pointer passed as argument
#define NGP_OK (0) |
error status code in grparser.c
#define NGP_READ_ERR (NGP_ERRBASE + 1) /* read error from file */ |
error status codein grparser.c. read error from file
#define NGP_TOKEN_NOT_EXPECT (NGP_ERRBASE + 9) /* token not expected here */ |
error status code in grparser.c. token not expected here
#define NGP_UNREAD_QUEUE_FULL (NGP_ERRBASE + 4) /* cannot unread more then 1 line (or single line twice) */ |
error status code in grparser.c. cannot unread more then 1 line (or single line twice)
#define NIOBUF 40 /* number of IO buffers to create (default = 40) */ |
number of IO buffers to create (default = 40) !! Significantly increasing NIOBUF may degrade performance !!
#define NO_BITPIX 222 /* Second keyword not BITPIX */ |
error status code Second keyword not BITPIX/
#define NO_CLOSE_ERROR 999 /* special value used internally to switch off */ |
error status code. special value used internally to switch off the error message from ffclos and ffchdu
#define NO_COMPRESSED_TILE 415 /* compressed tile doesn't exist */ |
error status code. compressed tile doesn't exist/
#define NO_DITHER -1 |
Compression algorithm code
#define NO_END 210 /* couldn't find END keyword */ |
error status code couldn't find END keyword/
#define NO_GCOUNT 229 /* couldn't find GCOUNT keyword */ |
error status code couldn't find GCOUNT keyword/
#define NO_MATCHING_DRIVER 124 /* matching driver is not registered */ |
error status code. matching driver is not registered/
#define NO_NAXES 224 /* Couldn't find all the NAXISn keywords */ |
error status code Couldn't find all the NAXISn keywords/
#define NO_NAXIS 223 /* Third keyword not NAXIS */ |
error status code Third keyword not NAXIS/
#define NO_NULL 314 /* null value has not been defined */ |
error status code null value has not been defined/
#define NO_PCOUNT 228 /* couldn't find PCOUNT keyword */ |
error status code couldn't find PCOUNT keyword/
#define NO_QUOTE 205 /* string is missing the closing quote */ |
error status code string is missing the closing quote/
#define NO_SIMPLE 221 /* Primary array doesn't start with SIMPLE */ |
error status code Primary array doesn't start with SIMPLE/
#define NO_TBCOL 231 /* couldn't find TBCOLn keyword */ |
error status code couldn't find TBCOLn keyword/
#define NO_TFIELDS 230 /* couldn't find TFIELDS keyword */ |
error status code couldn't find TFIELDS keyword/
#define NO_TFORM 232 /* couldn't find TFORMn keyword */ |
error status code couldn't find TFORMn keyword/
#define NO_WCS_KEY 505 /* celestial coordinate keywords not found */ |
error status code. celestial coordinate keywords not found/
#define NO_XTENSION 225 /* HDU doesn't start with XTENSION keyword */ |
error status code HDU doesn't start with XTENSION keyword/
#define NOCOMPRESS -1 |
Compression algorithm code
#define NOT_ASCII_COL 309 /* this is not an ASCII string column */ |
error status code this is not an ASCII string column/
#define NOT_ATABLE 226 /* the CHDU is not an ASCII table extension */ |
error status code the CHDU is not an ASCII table extension/
#define NOT_BTABLE 227 /* the CHDU is not a binary table extension */ |
error status code the CHDU is not a binary table extension/
#define NOT_GROUP_TABLE 340 |
error status code
#define NOT_IMAGE 233 /* the CHDU is not an IMAGE extension */ |
error status code the CHDU is not an IMAGE extension/
#define NOT_LOGICAL_COL 310 /* this is not a logical datatype column */ |
error status code this is not a logical datatype column/
#define NOT_POS_INT 209 /* keyword value is not a positive integer */ |
error status code keyword value is not a positive integer/
#define NOT_TABLE 235 /* the CHDU is not a table */ |
error status code the CHDU is not a table/
#define NOT_VARI_LEN 317 /* this is not a variable length column */ |
error status code this is not a variable length column/
#define NULL_INPUT_PTR 115 /* NULL input pointer to routine */ |
error status code. NULL input pointer to routine/
#define NUM_OVERFLOW 412 /* overflow during datatype conversion */ |
error status code. overflow during datatype conversion/
#define OFF_T long |
Define the datatype for variables which store file offset values. The newer 'off_t' datatype should be used for this purpose, but some older compilers do not recognize this type, in which case we use 'long' instead. Note that _OFF_T is defined (or not) in stdio.h depending on whether _LARGEFILE_SOURCE is defined in sys/feature_tests.h (at least on Solaris platforms using cc)
#define OPEN_DISK_FILE -105 /* open disk file, without extended filename syntax */ |
error status code. open disk file, without extended filename syntax/
#define OPT_CMT_MBR 1 |
Hierarchical grouping parameter
#define OPT_CMT_MBR_DEL 11 |
Hierarchical grouping parameter
#define OPT_GCP_ALL 2 |
Hierarchical grouping parameter
#define OPT_GCP_GPT 0 |
Hierarchical grouping parameter
#define OPT_GCP_MBR 1 |
Hierarchical grouping parameter
#define OPT_MCP_ADD 0 |
Hierarchical grouping parameter
#define OPT_MCP_MOV 3 |
Hierarchical grouping parameter
#define OPT_MCP_NADD 1 |
Hierarchical grouping parameter
#define OPT_MCP_REPL 2 |
Hierarchical grouping parameter
#define OPT_MRG_COPY 0 |
Hierarchical grouping parameter
#define OPT_MRG_MOV 1 |
Hierarchical grouping parameter
#define OPT_RM_ALL 3 |
Hierarchical grouping parameter
#define OPT_RM_ENTRY 1 |
Hierarchical grouping parameter
#define OPT_RM_GPT 0 |
Hierarchical grouping parameter
#define OPT_RM_MBR 2 |
Hierarchical grouping parameter
#define OutputCol 2 /* flag for output only iterator column */ |
flag for output only iterator column
#define OVERFLOW_ERR -11 /* overflow during datatype conversion */ |
error status code. overflow during datatype conversion/
#define PARSE_BAD_COL 435 /* bad data encounter while parsing column */ |
error status code. bad data encounter while parsing column/
#define PARSE_BAD_OUTPUT 436 /* Output file not of proper type */ |
error status code. Output file not of proper type /
#define PARSE_BAD_TYPE 432 /* expression did not evaluate to desired type */ |
error status code. expression did not evaluate to desired type/
#define PARSE_LRG_VECTOR 433 /* vector result too large to return in array */ |
error status code. vector result too large to return in array/
#define PARSE_NO_OUTPUT 434 /* data parser failed not sent an out column */ |
error status code. data parser failed not sent an out column/
#define PARSE_SYNTAX_ERR 431 /* syntax error in parser expression */ |
error status code. syntax error in parser expression/
#define PLIO_1 31 |
Compression algorithm code
#define PREPEND_PRIMARY -9 /* used in ffiimg to insert new primary array */ |
error status code. used in ffiimg to insert new primary array/
#define RANGE_PARSE_ERROR 126 /* failed to parse input file URL */ |
error status code. failed to parse input file URL/
#define READ_ERROR 108 /* error reading from FITS file */ |
error status code. error reading from FITS file/
#define READONLY 0 /* options when opening a file */ |
Option when opening a file
#define READONLY_FILE 112 /* Cannot write to readonly file */ |
error status code. Cannot write to readonly file/
#define READWRITE 1 |
Option when opening a file
#define RICE_1 11 |
Compression algorithm code
#define SAME_FILE 101 /* input and output files are the same */ |
error status code. input and output files are the same/
#define SBYTE_IMG 10 |
BITPIX code value for FITS image type not a true FITS datatypes; these codes are only used internally within cfitsio to make it easier for users to deal with unsigned integers.
#define SEEK_ERROR 116 /* error seeking position in file */ |
error status code. error seeking position in file/
#define SHARED_AGAIN (SHARED_ERRBASE + 7) |
error status code
#define SHARED_BADARG (SHARED_ERRBASE + 1) |
error status code
#define SHARED_ERRBASE (150) |
error status code
#define SHARED_IPCERR (SHARED_ERRBASE + 5) |
error status code
#define SHARED_NOFILE (SHARED_ERRBASE + 8) |
error status code
#define SHARED_NOMEM (SHARED_ERRBASE + 6) |
error status code
#define SHARED_NORESIZE (SHARED_ERRBASE + 9) |
error status code
#define SHARED_NOTINIT (SHARED_ERRBASE + 4) |
error status code
#define SHARED_NULPTR (SHARED_ERRBASE + 2) |
error status code
#define SHARED_TABFULL (SHARED_ERRBASE + 3) |
error status code
#define SHORT_IMG 16 |
BITPIX code value for FITS image type
#define SKIP_IMAGE -103 /* move to 1st table when opening file */ |
error status code. move to 1st table when opening file/
#define SKIP_NULL_PRIMARY -102 /* skip null primary array when opening file */ |
error status code. skip null primary array when opening file/
#define SKIP_TABLE -104 /* move to 1st image when opening file */ |
error status code. move to 1st image when opening file/
#define SUBTRACTIVE_DITHER_1 1 |
Compression algorithm code
#define SUBTRACTIVE_DITHER_2 2 |
Compression algorithm code
#define TBIT 1 /* codes for FITS table data types */ |
FITS table data type
#define TBYTE 11 |
FITS table data type
#define TCOMPLEX 83 |
FITS table data type
#define TDBLCOMPLEX 163 |
FITS table data type
#define TDOUBLE 82 |
FITS table data type
#define TFLOAT 42 |
FITS table data type
#define TINT 31 |
FITS table data type
#define TINT32BIT 41 /* used when returning datatype of a column */ |
used when returning datatype of a column FITS table data type
#define TLOGICAL 14 |
FITS table data type
#define TLONG 41 |
FITS table data type
#define TLONGLONG 81 |
FITS table data type
#define TOO_MANY_DRIVERS 122 /* tried to register too many IO drivers */ |
error status code. tried to register too many IO drivers/
#define TOO_MANY_FILES 103 /* tried to open too many FITS files */ |
error status code. tried to open too many FITS files/
#define TOO_MANY_HDUS_TRACKED 345 |
error status code
#define TRUE 1 |
Integer Value true (in the C sense)
#define TSBYTE 12 |
FITS table data type
#define TSHORT 21 |
FITS table data type
#define TSTRING 16 |
FITS table data type
#define TUINT 30 |
FITS table data type
#define TULONG 40 |
FITS table data type
#define TUSHORT 20 |
FITS table data type
#define TYP_CKSUM_KEY 100 |
FITS table data type
#define TYP_CMPRS_KEY 20 |
FITS table data type
#define TYP_COMM_KEY 130 |
FITS table data type
#define TYP_CONT_KEY 140 |
FITS table data type
#define TYP_DIM_KEY 50 |
FITS table data type
#define TYP_DISP_KEY 80 |
FITS table data type
#define TYP_HDUID_KEY 90 |
FITS table data type
#define TYP_NULL_KEY 40 |
FITS table data type
#define TYP_RANG_KEY 60 |
FITS table data type
#define TYP_REFSYS_KEY 120 |
FITS table data type
#define TYP_SCAL_KEY 30 |
FITS table data type
#define TYP_STRUC_KEY 10 |
FITS table data type
#define TYP_UNIT_KEY 70 |
FITS table data type
#define TYP_USER_KEY 150 |
FITS table data type
#define TYP_WCS_KEY 110 |
FITS table data type
#define ULONG_IMG 40 |
BITPIX code value for FITS image type
#define UNKNOWN_EXT 251 /* unrecognizable FITS extension type */ |
error status code unrecognizable FITS extension type
#define UNKNOWN_REC 252 /* unrecognizable FITS record */ |
error status code unrecognizable FITS record
#define URL_PARSE_ERROR 125 /* failed to parse input file URL */ |
error status code. failed to parse input file URL/
#define USE_LL_SUFFIX 1 |
this block determines if the the string function name is strtol or strtoll, and whether to use ld or lld in printf statements
#define USE_MEM_BUFF -101 /* use memory buffer when opening file */ |
error status code. use memory buffer when opening file/
#define USHORT_IMG 20 |
BITPIX code value for FITS image type Not a true FITS datatypes; these codes are only used internally within cfitsio to make it easier for users to deal with unsigned integers.
#define VALIDSTRUC 555 /* magic value used to identify if structure is valid */ |
magic value used to identify if structure is valid
/*!
#define VALUE_UNDEFINED 204 /* keyword value field is blank */ |
error status code keyword value field is blank/
#define WCS_ERROR 503 /* error in celestial coordinate calculation */ |
error status code. error in celestial coordinate calculation/
#define WCSLIB_GETWCSTAB |
#define WRITE_ERROR 106 /* error writing to FITS file */ |
error status code. error writing to FITS file/
#define ZERO_SCALE 322 /* illegal BSCALE or TSCALn keyword = 0 */ |
error status code illegal BSCALE or TSCALn keyword = 0/
typedef long long LONGLONG |
int CFITS2Unit | ( | fitsfile * | fptr | ) |
int CFITS_API ffasfm | ( | char * | tform, |
int * | dtcode, | ||
long * | twidth, | ||
int * | decimals, | ||
int * | status | ||
) |
parse the ASCII table TFORM column format to determine the data type, the field width, and number of decimal places (if relevant)
[in] | tform | format code from the TFORMn keyword |
[out] | dtcode | numerical datatype code |
[out] | twidth | width of the field, in chars |
[out] | decimals | number of decimal places (F, E, D format) |
[in,out] | status | error status |
int CFITS_API ffbinr | ( | char ** | binspec, |
char * | colname, | ||
double * | minin, | ||
double * | maxin, | ||
double * | binsizein, | ||
char * | minname, | ||
char * | maxname, | ||
char * | binname, | ||
int * | status | ||
) |
int CFITS_API ffbins | ( | char * | binspec, |
int * | imagetype, | ||
int * | haxis, | ||
char | colname[4][FLEN_VALUE], | ||
double * | minin, | ||
double * | maxin, | ||
double * | binsizein, | ||
char | minname[4][FLEN_VALUE], | ||
char | maxname[4][FLEN_VALUE], | ||
char | binname[4][FLEN_VALUE], | ||
double * | weight, | ||
char * | wtname, | ||
int * | recip, | ||
int * | status | ||
) |
int CFITS_API ffbnfm | ( | char * | tform, |
int * | dtcode, | ||
long * | trepeat, | ||
long * | twidth, | ||
int * | status | ||
) |
parse the binary table TFORM column format to determine the data type, repeat count, and the field width (if it is an ASCII (A) field)
[in] | tform | format code from the TFORMn keyword |
[out] | dtcode | numerical datatype code |
[out] | trepeat | repeat count of the field |
[out] | twidth | width of the field, in chars |
[in,out] | status | error status |
int CFITS_API ffbnfmll | ( | char * | tform, |
int * | dtcode, | ||
LONGLONG * | trepeat, | ||
long * | twidth, | ||
int * | status | ||
) |
parse the binary table TFORM column format to determine the data type, repeat count, and the field width (if it is an ASCII (A) field)
[in] | tform | format code from the TFORMn keyword |
[out] | dtcode | numerical datatype code |
[out] | trepeat | repeat count of the field |
[out] | twidth | width of the field, in chars |
[in,out] | status | error status |
int CFITS_API ffcalc | ( | fitsfile * | infptr, |
char * | expr, | ||
fitsfile * | outfptr, | ||
char * | parName, | ||
char * | parInfo, | ||
int * | status | ||
) |
int CFITS_API ffcalc_rng | ( | fitsfile * | infptr, |
char * | expr, | ||
fitsfile * | outfptr, | ||
char * | parName, | ||
char * | parInfo, | ||
int | nRngs, | ||
long * | start, | ||
long * | end, | ||
int * | status | ||
) |
Check Header Fill values
Check that the header unit is correctly filled with blanks from the END card to the end of the current FITS 2880-byte block Translated ftchfl into C by Peter Wilson, Oct. 1997
[in] | fptr | FITS file pointer |
[in,out] | status | error status |
close the FITS file by completing the current HDU, flushing it to disk, then calling the system dependent routine to physically close the FITS file
[in] | fptr | FITS file pointer |
[in,out] | status | error status |
compress the binary table heap by reordering the contents heap and recovering any unused space
[in] | fptr | FITS file pointer |
[in,out] | status | error status |
void CFITS_API ffcmps | ( | char * | templt, |
char * | colname, | ||
int | casesen, | ||
int * | match, | ||
int * | exact | ||
) |
compare the template to the string and test if they match. The strings are limited to 68 characters or less (the max. length of a FITS string keyword value. This routine reports whether the two strings match and whether the match is exact or involves wildcards.
This algorithm is very similar to the way unix filename wildcards work except that this first treats a wild card as a literal character when looking for a match. If there is no literal match, then it interpretes it as a wild card. So the template 'AB*DE' is considered to be an exact rather than a wild card match to the string 'AB*DE'. The '#' wild card in the template string will match any consecutive string of decimal digits in the colname.
[in] | templt | input template (may have wildcards) |
[in] | colname | full column name up to 68 + 1 chars long |
[in] | casesen | case sensitive string comparison? 1=yes |
[out] | match | do template and colname match? 1=yes |
[out] | exact) | do strings exactly match, or wildcards |
void CFITS_API ffcmrk | ( | void | ) |
erase newest messages in the error stack, stopping if a marker is found. The marker is also erased in this case.
void CFITS_API ffcmsg | ( | void | ) |
erase all messages in the error stack
int ffcnvthdr2str | ( | fitsfile * | fptr, |
int | exclude_comm, | ||
char ** | exclist, | ||
int | nexc, | ||
char ** | header, | ||
int * | nkeys, | ||
int * | status | ||
) |
Same as ffhdr2str, except that if the input HDU is a tile compressed image (stored in a binary table) then it will first convert that header back to that of a normal uncompressed FITS image before concatenating the header keyword records.
[in] | fptr | FITS file pointer |
[in] | exclude_comm | if TRUE, exclude commentary keywords |
[in] | exclist | list of excluded keyword names |
[in] | nexc | number of names in exclist |
[out] | header | returned header string |
[out] | nkeys | returned number of 80-char keywords |
[in,out] | status | error status |
int CFITS_API ffcpcl | ( | fitsfile * | infptr, |
fitsfile * | outfptr, | ||
int | incol, | ||
int | outcol, | ||
int | create_col, | ||
int * | status | ||
) |
int CFITS_API ffcpfl | ( | fitsfile * | infptr, |
fitsfile * | outfptr, | ||
int | prev, | ||
int | cur, | ||
int | follow, | ||
int * | status | ||
) |
int CFITS_API ffcpky | ( | fitsfile * | infptr, |
fitsfile * | outfptr, | ||
int | incol, | ||
int | outcol, | ||
char * | rootname, | ||
int * | status | ||
) |
int CFITS_API ffcprw | ( | fitsfile * | infptr, |
fitsfile * | outfptr, | ||
LONGLONG | firstrow, | ||
LONGLONG | nrows, | ||
int * | status | ||
) |
int ffcrim | ( | fitsfile * | fptr, |
int | bitpix, | ||
int | naxis, | ||
long * | naxes, | ||
int * | status | ||
) |
create an IMAGE extension following the current HDU. If the current HDU is empty (contains no header keywords), then simply write the required image (or primary array) keywords to the current HDU.
[in] | fptr | FITS file pointer |
[in] | bitpix | bits per pixel |
[in] | naxis | number of axes in the array |
[in] | naxes | size of each axis |
[in,out] | status | error status |
create an IMAGE extension following the current HDU. If the current HDU is empty (contains no header keywords), then simply write the required image (or primary array) keywords to the current HDU.
[in] | fptr | FITS file pointer |
[in] | bitpix | bits per pixel |
[in] | naxis | number of axes in the array |
[in] | naxes | size of each axis |
[in,out] | status | error status |
int CFITS_API ffcrow | ( | fitsfile * | fptr, |
int | datatype, | ||
char * | expr, | ||
long | firstrow, | ||
long | nelements, | ||
void * | nulval, | ||
void * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int ffcrtb | ( | fitsfile * | fptr, |
int | tbltype, | ||
LONGLONG | naxis2, | ||
int | tfields, | ||
char ** | ttype, | ||
char ** | tform, | ||
char ** | tunit, | ||
const char * | extnm, | ||
int * | status | ||
) |
Create a table extension in a FITS file.
[in] | fptr | FITS file pointer |
[in] | tbltype | type of table to create |
[in] | naxis2 | number of rows in the table |
[in] | tfields | number of columns in the table |
[in] | ttype | name of each column |
[in] | tform | value of TFORMn keyword for each column |
[in] | tunit | value of TUNITn keyword for each column |
[in] | extnm | value of EXTNAME keyword, if any |
[in,out] | status | error status |
close and DELETE the FITS file.
[in] | fptr | FITS file pointer |
[in,out] | status | error status |
Create and initialize a new FITS file on disk. This routine differs from ffinit in that the input 'name' is literally taken as the name of the disk file to be created, and it does not support CFITSIO's extended filename syntax.
[out] | fptr | FITS file pointer |
[in] | name | name of file to create |
[in,out] | status | error status |
Open an existing FITS file on magnetic disk with either readonly or read/write access. The routine does not support CFITSIO's extended filename syntax and simply uses the entire input 'name' string as the name of the file.
[out] | fptr | FITS file pointer |
[in] | name | full name of file to open |
[in] | mode | 0 = open readonly; 1 = read/write |
[in,out] | status | error status |
Open an existing FITS file with either readonly or read/write access. and move to the first HDU that contains 'interesting' data, if the primary array contains a null image (i.e., NAXIS = 0).
[out] | fptr | FITS file pointer |
[in] | name | full name of file to open |
[in] | mode | 0 = open readonly; 1 = read/write |
[in] | status | error status |
unsigned long CFITS_API ffdsum | ( | char * | ascii, |
int | complm, | ||
unsigned long * | sum | ||
) |
int ffdt2s | ( | int | year, |
int | month, | ||
int | day, | ||
char * | datestr, | ||
int * | status | ||
) |
Construct a date character string
[in] | year | year (0 - 9999) |
[in] | month | month (1 - 12) |
[in] | day | day (1 - 31) |
[in,out] | datestr | date string: "YYYY-MM-DD" |
[in,out] | status | error status |
int ffdtdm | ( | fitsfile * | fptr, |
char * | tdimstr, | ||
int | colnum, | ||
int | maxdim, | ||
int * | naxis, | ||
long | naxes[], | ||
int * | status | ||
) |
decode the TDIMnnn keyword to get the dimensionality of a column. Check that the value is legal and consistent with the TFORM value. If colnum = 0, then the validity checking is disabled.
[in] | fptr | FITS file pointer |
[in] | tdimstr | TDIMn keyword value string. e.g. (10,10) |
[in] | colnum | number of the column |
[in] | maxdim | maximum no. of dimensions to read; |
[out] | naxis | number of axes in the data array |
[out] | naxes | length of each data axis |
[in,out] | status | error status |
int ffdtdmll | ( | fitsfile * | fptr, |
char * | tdimstr, | ||
int | colnum, | ||
int | maxdim, | ||
int * | naxis, | ||
LONGLONG | naxes[], | ||
int * | status | ||
) |
decode the TDIMnnn keyword to get the dimensionality of a column. Check that the value is legal and consistent with the TFORM value.
[in] | fptr | FITS file pointer |
[in] | tdimstr | TDIMn keyword value string. e.g. (10,10) |
[in] | colnum | number of the column |
[in] | maxdim | maximum no. of dimensions to read; |
[out] | naxis | number of axes in the data array |
[out] | naxes | length of each data axis |
[in,out] | status | error status |
determine implicit datatype of input string. This assumes that the string conforms to the FITS standard for keyword values, so may not detect all invalid formats.
[in] | cval | formatted string representation of the value |
[out] | dtype | datatype code: C, L, F, I, or X |
[in,out] | status | error status |
int CFITS_API ffeopn | ( | fitsfile ** | fptr, |
const char * | name, | ||
int | mode, | ||
char * | extlist, | ||
int * | hdutype, | ||
int * | status | ||
) |
Open an existing FITS file with either readonly or read/write access. and if the primary array contains a null image (i.e., NAXIS = 0) then attempt to move to the first extension named in the extlist of extension names. If none are found, then simply move to the 2nd extension.
[out] | fptr | FITS file pointer |
[in] | name | full name of file to open |
[in] | mode | 0 = open readonly; 1 = read/write |
[in] | extlist | list of 'good' extensions to move to |
[out] | hdutype | type of extension that is moved to |
[in,out] | status | error status |
int CFITS_API ffeqty | ( | fitsfile * | fptr, |
int | colnum, | ||
int * | typecode, | ||
long * | repeat, | ||
long * | width, | ||
int * | status | ||
) |
Get the 'equivalent' table column type.
This routine is similar to the ffgtcl routine (which returns the physical datatype of the column, as stored in the FITS file) except that if the TSCALn and TZEROn keywords are defined for the column, then it returns the 'equivalent' datatype. Thus, if the column is defined as '1I' (short integer) this routine may return the type as 'TUSHORT' or as 'TFLOAT' depending on the TSCALn and TZEROn values.
Returns the datatype code of the column, as well as the vector repeat count and (if it is an ASCII character column) the width of the field or a unit string within the field. This supports the TFORMn = 'rAw' syntax for specifying arrays of substrings, so if TFORMn = '60A12' then repeat = 60 and width = 12.
[in] | fptr | FITS file pointer |
[in] | colnum | column number |
[out] | typecode | datatype code (21 = short, etc) |
[out] | repeat | repeat count of field |
[out] | width | if ASCII, width of field or unit string |
[in,out] | status | error status |
int CFITS_API ffeqtyll | ( | fitsfile * | fptr, |
int | colnum, | ||
int * | typecode, | ||
LONGLONG * | repeat, | ||
LONGLONG * | width, | ||
int * | status | ||
) |
Get the 'equivalent' table column type.
This routine is similar to the ffgtcl routine (which returns the physical datatype of the column, as stored in the FITS file) except that if the TSCALn and TZEROn keywords are defined for the column, then it returns the 'equivalent' datatype. Thus, if the column is defined as '1I' (short integer) this routine may return the type as 'TUSHORT' or as 'TFLOAT' depending on the TSCALn and TZEROn values.
Returns the datatype code of the column, as well as the vector repeat count and (if it is an ASCII character column) the width of the field or a unit string within the field. This supports the TFORMn = 'rAw' syntax for specifying arrays of substrings, so if TFORMn = '60A12' then repeat = 60 and width = 12.
[in] | fptr | file pointer |
[in] | colnum | column number |
[out] | typecode | datatype code (21 = short, etc) |
[out] | repeat | repeat count of field |
[out] | width | if ASCII, width of field or unit string |
[in,out] | status | error status |
void CFITS_API ffesum | ( | unsigned long | sum, |
int | complm, | ||
char * | ascii | ||
) |
test if the input file specifier is an existing file on disk If the specified file can't be found, it then searches for a compressed version of the file.
[in] | infile | input filename or URL |
[out] | exists | 2 = a compressed version of file exists 1 = yes, disk file exists 0 = no, disk file could not be found -1 = infile is not a disk file (could be a http, ftp, gsiftp, smem, or stdin file) |
[in,out] | status | O status |
int CFITS_API ffextn | ( | char * | url, |
int * | extension_num, | ||
int * | status | ||
) |
Parse the input url string and return the number of the extension that CFITSIO would automatically move to if CFITSIO were to open this input URL. The extension numbers are one's based, so 1 = the primary array, 2 = the first extension, etc.
The extension number that gets returned is determined by the following algorithm:
[in] | url | input filename/URL |
[out] | extension_num | returned extension number |
int CFITS_API ffexts | ( | char * | extspec, |
int * | extnum, | ||
char * | extname, | ||
int * | extvers, | ||
int * | hdutype, | ||
char * | imagecolname, | ||
char * | rowexpress, | ||
int * | status | ||
) |
Parse the input extension specification string, returning either the extension number or the values of the EXTNAME, EXTVERS, and XTENSION keywords in desired extension. Also return the name of the column containing an image, and an expression to be used to determine which row to use, if present.
int CFITS_API fffkls | ( | char * | value, |
int * | status | ||
) |
return the access mode of the FITS file
[in] | fptr | FITS file pointer |
[out] | filemode | open mode of the file |
[in,out] | status | error status |
return the name of the FITS file
[in] | fptr | FITS file pointer |
[out] | filename | name of the file |
[in,out] | status | error status |
int fffree | ( | void * | value, |
int * | status | ||
) |
Free the memory that was previously allocated by CFITSIO, such as by ffgkls or fits_hdr2str
[in] | value | pointer to keyword value |
[in,out] | status | error status |
int CFITS_API fffrow | ( | fitsfile * | infptr, |
char * | expr, | ||
long | firstrow, | ||
long | nrows, | ||
long * | n_good_rows, | ||
char * | row_status, | ||
int * | status | ||
) |
int CFITS_API fffrwc | ( | fitsfile * | fptr, |
char * | expr, | ||
char * | timeCol, | ||
char * | parCol, | ||
char * | valCol, | ||
long | ntimes, | ||
double * | times, | ||
char * | time_status, | ||
int * | status | ||
) |
int CFITS_API ffg2db | ( | fitsfile * | fptr, |
long | group, | ||
unsigned char | nulval, | ||
LONGLONG | ncols, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
unsigned char * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffg2dd | ( | fitsfile * | fptr, |
long | group, | ||
double | nulval, | ||
LONGLONG | ncols, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
double * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffg2de | ( | fitsfile * | fptr, |
long | group, | ||
float | nulval, | ||
LONGLONG | ncols, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
float * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffg2di | ( | fitsfile * | fptr, |
long | group, | ||
short | nulval, | ||
LONGLONG | ncols, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
short * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffg2dj | ( | fitsfile * | fptr, |
long | group, | ||
long | nulval, | ||
LONGLONG | ncols, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
long * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffg2djj | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | nulval, | ||
LONGLONG | ncols, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
LONGLONG * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffg2dk | ( | fitsfile * | fptr, |
long | group, | ||
int | nulval, | ||
LONGLONG | ncols, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
int * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffg2dsb | ( | fitsfile * | fptr, |
long | group, | ||
signed char | nulval, | ||
LONGLONG | ncols, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
signed char * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffg2dui | ( | fitsfile * | fptr, |
long | group, | ||
unsigned short | nulval, | ||
LONGLONG | ncols, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
unsigned short * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffg2duj | ( | fitsfile * | fptr, |
long | group, | ||
unsigned long | nulval, | ||
LONGLONG | ncols, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
unsigned long * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffg2duk | ( | fitsfile * | fptr, |
long | group, | ||
unsigned int | nulval, | ||
LONGLONG | ncols, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
unsigned int * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffg3db | ( | fitsfile * | fptr, |
long | group, | ||
unsigned char | nulval, | ||
LONGLONG | ncols, | ||
LONGLONG | nrows, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
LONGLONG | naxis3, | ||
unsigned char * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffg3dd | ( | fitsfile * | fptr, |
long | group, | ||
double | nulval, | ||
LONGLONG | ncols, | ||
LONGLONG | nrows, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
LONGLONG | naxis3, | ||
double * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffg3de | ( | fitsfile * | fptr, |
long | group, | ||
float | nulval, | ||
LONGLONG | ncols, | ||
LONGLONG | nrows, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
LONGLONG | naxis3, | ||
float * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffg3di | ( | fitsfile * | fptr, |
long | group, | ||
short | nulval, | ||
LONGLONG | ncols, | ||
LONGLONG | nrows, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
LONGLONG | naxis3, | ||
short * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffg3dj | ( | fitsfile * | fptr, |
long | group, | ||
long | nulval, | ||
LONGLONG | ncols, | ||
LONGLONG | nrows, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
LONGLONG | naxis3, | ||
long * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffg3djj | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | nulval, | ||
LONGLONG | ncols, | ||
LONGLONG | nrows, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
LONGLONG | naxis3, | ||
LONGLONG * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffg3dk | ( | fitsfile * | fptr, |
long | group, | ||
int | nulval, | ||
LONGLONG | ncols, | ||
LONGLONG | nrows, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
LONGLONG | naxis3, | ||
int * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffg3dsb | ( | fitsfile * | fptr, |
long | group, | ||
signed char | nulval, | ||
LONGLONG | ncols, | ||
LONGLONG | nrows, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
LONGLONG | naxis3, | ||
signed char * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffg3dui | ( | fitsfile * | fptr, |
long | group, | ||
unsigned short | nulval, | ||
LONGLONG | ncols, | ||
LONGLONG | nrows, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
LONGLONG | naxis3, | ||
unsigned short * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffg3duj | ( | fitsfile * | fptr, |
long | group, | ||
unsigned long | nulval, | ||
LONGLONG | ncols, | ||
LONGLONG | nrows, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
LONGLONG | naxis3, | ||
unsigned long * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffg3duk | ( | fitsfile * | fptr, |
long | group, | ||
unsigned int | nulval, | ||
LONGLONG | ncols, | ||
LONGLONG | nrows, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
LONGLONG | naxis3, | ||
unsigned int * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgabc | ( | int | tfields, |
char ** | tform, | ||
int | space, | ||
long * | rowlen, | ||
long * | tbcol, | ||
int * | status | ||
) |
calculate the starting byte offset of each column of an ASCII table and the total length of a row, in bytes. The input space value determines how many blank spaces to leave between each column (1 is recommended).
[in] | tfields | number of columns in the table |
[in] | tform | value of TFORMn keyword for each column |
[in] | space | number of spaces to leave between cols |
[out] | rowlen | total width of a table row |
[out] | tbcol | starting byte in row for each column |
[in,out] | status | error status |
int CFITS_API ffgacl | ( | fitsfile * | fptr, |
int | colnum, | ||
char * | ttype, | ||
long * | tbcol, | ||
char * | tunit, | ||
char * | tform, | ||
double * | tscal, | ||
double * | tzero, | ||
char * | tnull, | ||
char * | tdisp, | ||
int * | status | ||
) |
get ASCII column keyword values
[in] | fptr | FITS file pointer |
[in] | colnum | column number |
[out] | ttype | TTYPEn keyword value |
[out] | tbcol | TBCOLn keyword value |
[out] | tunit | TUNITn keyword value |
[out] | tform | TFORMn keyword value |
[out] | tscal | TSCALn keyword value |
[out] | tzero | TZEROn keyword value |
[out] | tnull | TNULLn keyword value |
[out] | tdisp | TDISPn keyword value |
[in,out] | status | error status |
int CFITS_API ffgbcl | ( | fitsfile * | fptr, |
int | colnum, | ||
char * | ttype, | ||
char * | tunit, | ||
char * | dtype, | ||
long * | repeat, | ||
double * | tscal, | ||
double * | tzero, | ||
long * | tnull, | ||
char * | tdisp, | ||
int * | status | ||
) |
get BINTABLE column keyword values
[in] | fptr | FITS file pointer |
[in] | colnum | column number |
[out] | ttype | TTYPEn keyword value |
[out] | tunit | TUNITn keyword value |
[out] | dtype | datatype char: I, J, E, D, etc. |
[out] | repeat | vector column repeat count |
[out] | tscal | TSCALn keyword value |
[out] | tzero | TZEROn keyword value |
[out] | tnull | TNULLn keyword value integer cols only |
[out] | tdisp | TDISPn keyword value |
[in,out] | status | error status |
int CFITS_API ffgbclll | ( | fitsfile * | fptr, |
int | colnum, | ||
char * | ttype, | ||
char * | tunit, | ||
char * | dtype, | ||
LONGLONG * | repeat, | ||
double * | tscal, | ||
double * | tzero, | ||
LONGLONG * | tnull, | ||
char * | tdisp, | ||
int * | status | ||
) |
get BINTABLE column keyword values
[in] | fptr | FITS file pointer |
[in] | colnum | column number |
[out] | ttype | TTYPEn keyword value |
[out] | tunit | TUNITn keyword value |
[out] | dtype | datatype char: I, J, E, D, etc. |
[out] | repeat | vector column repeat count |
[out] | tscal | TSCALn keyword value |
[out] | tzero | TZEROn keyword value |
[out] | tnull | TNULLn keyword value integer cols only |
[out] | tdisp | TDISPn keyword value |
[in,out] | status | error status |
int CFITS_API ffgcf | ( | fitsfile * | fptr, |
int | datatype, | ||
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
void * | array, | ||
char * | nullarray, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgcfb | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
unsigned char * | array, | ||
char * | nularray, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgcfc | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
float * | array, | ||
char * | nularray, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgcfd | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
double * | array, | ||
char * | nularray, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgcfe | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
float * | array, | ||
char * | nularray, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgcfi | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
short * | array, | ||
char * | nularray, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgcfj | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
long * | array, | ||
char * | nularray, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgcfjj | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
LONGLONG * | array, | ||
char * | nularray, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgcfk | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
int * | array, | ||
char * | nularray, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgcfl | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
char * | array, | ||
char * | nularray, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgcfm | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
double * | array, | ||
char * | nularray, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgcfs | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
char ** | array, | ||
char * | nularray, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgcfsb | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
signed char * | array, | ||
char * | nularray, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgcfui | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
unsigned short * | array, | ||
char * | nularray, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgcfuj | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
unsigned long * | array, | ||
char * | nularray, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgcfuk | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
unsigned int * | array, | ||
char * | nularray, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgcks | ( | fitsfile * | fptr, |
unsigned long * | datasum, | ||
unsigned long * | hdusum, | ||
int * | status | ||
) |
int CFITS_API ffgcl | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
char * | array, | ||
int * | status | ||
) |
int CFITS_API ffgcnn | ( | fitsfile * | fptr, |
int | casesen, | ||
char * | templt, | ||
char * | colname, | ||
int * | colnum, | ||
int * | status | ||
) |
Return the full column name and column number of the next column whose TTYPEn keyword value matches the input template string. The template may contain the * and ? wildcards. Status = 237 is returned if the match is not unique. If so, one may call this routine again with input status=237 to get the next match. A status value of 219 is returned when there are no more matching columns.
[in] | fptr | FITS file pointer |
[in] | casesen | case sensitive string comparison? 0=no |
[in] | templt | input name of column (w/wildcards) |
[out] | colname | full column name up to 68 + 1 chars long |
[out] | colnum | number of the named column; 1=first col |
[in,out] | status | error status |
Determine the column number corresponding to an input column name. The first column of the table = column 1; This supports the * and ? wild cards in the input template.
[in] | fptr | FITS file pionter |
[in] | casesen | case sensitive string comparison? 0=no |
[in] | templt | input name of column (w/wildcards) |
[out] | colnum | number of the named column; 1=first col |
[in,out] | status | error status |
Read (get) the named keyword, returning the entire keyword card up to 80 characters long. The returned card value is null terminated with any trailing blank characters removed.
If the input name contains wild cards ('?' matches any single char and '*' matches any sequence of chars, # matches any string of decimal digits) then the search ends once the end of header is reached and does not automatically resume from the top of the header.
[in] | fptr | FITS file pointer |
[in] | name | name of keyword to read |
[out] | card | keyword card |
[in,out] | status | error status |
int CFITS_API ffgcv | ( | fitsfile * | fptr, |
int | datatype, | ||
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
void * | nulval, | ||
void * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgcvb | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
unsigned char | nulval, | ||
unsigned char * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgcvc | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
float | nulval, | ||
float * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgcvd | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
double | nulval, | ||
double * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgcve | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
float | nulval, | ||
float * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgcvi | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
short | nulval, | ||
short * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgcvj | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
long | nulval, | ||
long * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgcvjj | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
LONGLONG | nulval, | ||
LONGLONG * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgcvk | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
int | nulval, | ||
int * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgcvl | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
char | nulval, | ||
char * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgcvm | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
double | nulval, | ||
double * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgcvs | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
char * | nulval, | ||
char ** | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgcvsb | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
signed char | nulval, | ||
signed char * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgcvui | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
unsigned short | nulval, | ||
unsigned short * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgcvuj | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
unsigned long | nulval, | ||
unsigned long * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgcvuk | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
unsigned int | nulval, | ||
unsigned int * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgcx | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstbit, | ||
LONGLONG | nbits, | ||
char * | larray, | ||
int * | status | ||
) |
int CFITS_API ffgcxui | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | nrows, | ||
long | firstbit, | ||
int | nbits, | ||
unsigned short * | array, | ||
int * | status | ||
) |
int CFITS_API ffgcxuk | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | nrows, | ||
long | firstbit, | ||
int | nbits, | ||
unsigned int * | array, | ||
int * | status | ||
) |
int CFITS_API ffgdes | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | rownum, | ||
long * | length, | ||
long * | heapaddr, | ||
int * | status | ||
) |
get (read) the variable length vector descriptor from the table.
[in] | fptr | FITS file pointer |
[in] | colnum | column number (1 = 1st column of table) |
[in] | rownum | row number (1 = 1st row of table) |
[in] | length | number of elements in the row |
[in] | heapaddr | heap pointer to the data |
[in] | status | error status |
int CFITS_API ffgdesll | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | rownum, | ||
LONGLONG * | length, | ||
LONGLONG * | heapaddr, | ||
int * | status | ||
) |
get (read) the variable length vector descriptor from the binary table. This is similar to ffgdes, except it supports the full 8-byte range of the length and offset values in 'Q' columns, as well as 'P' columns.
[in] | fptr | FITS file pointer |
[in] | colnum | column number (1 = 1st column of table) |
[in] | rownum | row number (1 = 1st row of table) |
[out] | length | number of elements in the row |
[out] | heapaddr | heap pointer to the data |
[in,out] | *status | error status |
int CFITS_API ffgdess | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | nrows, | ||
long * | length, | ||
long * | heapaddr, | ||
int * | status | ||
) |
get (read) a range of variable length vector descriptors from the table.
[in] | fptr | FITS file pointer |
[in] | colnum | column number (1 = 1st column of table) |
[in] | firstrow | first row (1 = 1st row of table) |
[in] | nrows | number or rows to read |
[out] | length | number of elements in the row |
[out] | heapaddr | heap pointer to the data |
[in,out] | status | error status |
int CFITS_API ffgdessll | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | nrows, | ||
LONGLONG * | length, | ||
LONGLONG * | heapaddr, | ||
int * | status | ||
) |
get (read) a range of variable length vector descriptors from the table.
[in] | fptr | FITS file pointer |
[in] | colnum | column number (1 = 1st column of table) |
[in] | firstrow | first row (1 = 1st row of table) |
[in] | nrows | number or rows to read |
[out] | length | number of elements in the row |
[out] | heapaddr | heap pointer to the data |
[in,out] | status | error status |
void CFITS_API ffgerr | ( | int | status, |
char * | errtext | ||
) |
Return a short descriptive error message that corresponds to the input error status value. The message may be up to 30 characters long, plus the terminating null character.
[in] | status | error status value |
[out] | errtext | error message (max 30 char long + null) |
int CFITS_API ffgextn | ( | fitsfile * | fptr, |
LONGLONG | offset, | ||
LONGLONG | nelem, | ||
void * | array, | ||
int * | status | ||
) |
int CFITS_API ffggpb | ( | fitsfile * | fptr, |
long | group, | ||
long | firstelem, | ||
long | nelem, | ||
unsigned char * | array, | ||
int * | status | ||
) |
int CFITS_API ffggpd | ( | fitsfile * | fptr, |
long | group, | ||
long | firstelem, | ||
long | nelem, | ||
double * | array, | ||
int * | status | ||
) |
int CFITS_API ffggpe | ( | fitsfile * | fptr, |
long | group, | ||
long | firstelem, | ||
long | nelem, | ||
float * | array, | ||
int * | status | ||
) |
int CFITS_API ffggpi | ( | fitsfile * | fptr, |
long | group, | ||
long | firstelem, | ||
long | nelem, | ||
short * | array, | ||
int * | status | ||
) |
int CFITS_API ffggpj | ( | fitsfile * | fptr, |
long | group, | ||
long | firstelem, | ||
long | nelem, | ||
long * | array, | ||
int * | status | ||
) |
int CFITS_API ffggpjj | ( | fitsfile * | fptr, |
long | group, | ||
long | firstelem, | ||
long | nelem, | ||
LONGLONG * | array, | ||
int * | status | ||
) |
int CFITS_API ffggpk | ( | fitsfile * | fptr, |
long | group, | ||
long | firstelem, | ||
long | nelem, | ||
int * | array, | ||
int * | status | ||
) |
int CFITS_API ffggpsb | ( | fitsfile * | fptr, |
long | group, | ||
long | firstelem, | ||
long | nelem, | ||
signed char * | array, | ||
int * | status | ||
) |
int CFITS_API ffggpui | ( | fitsfile * | fptr, |
long | group, | ||
long | firstelem, | ||
long | nelem, | ||
unsigned short * | array, | ||
int * | status | ||
) |
int CFITS_API ffggpuj | ( | fitsfile * | fptr, |
long | group, | ||
long | firstelem, | ||
long | nelem, | ||
unsigned long * | array, | ||
int * | status | ||
) |
int CFITS_API ffggpuk | ( | fitsfile * | fptr, |
long | group, | ||
long | firstelem, | ||
long | nelem, | ||
unsigned int * | array, | ||
int * | status | ||
) |
int CFITS_API ffghad | ( | fitsfile * | fptr, |
long * | headstart, | ||
long * | datastart, | ||
long * | dataend, | ||
int * | status | ||
) |
Return the address (= byte offset) in the FITS file to the beginning of the current HDU, the beginning of the data unit, and the end of the data unit.
[in] | fptr | FITS file pointer |
[out] | headstart | byte offset to beginning of CHDU |
[out] | datastart | byte offset to beginning of next HDU |
[out] | dataend | byte offset to beginning of next HDU |
[in,out] | status | error status |
int CFITS_API ffghadll | ( | fitsfile * | fptr, |
LONGLONG * | headstart, | ||
LONGLONG * | datastart, | ||
LONGLONG * | dataend, | ||
int * | status | ||
) |
Return the address (= byte offset) in the FITS file to the beginning of the current HDU, the beginning of the data unit, and the end of the data unit.
[in] | fptr | FITS file pointer |
[out] | headstart | byte offset to beginning of CHDU |
[out] | datastart | byte offset to beginning of next HDU |
[out] | dataend | byte offset to beginning of next HDU |
[in,out] | status | error status |
int ffghbn | ( | fitsfile * | fptr, |
int | maxfield, | ||
long * | naxis2, | ||
int * | tfields, | ||
char ** | ttype, | ||
char ** | tform, | ||
char ** | tunit, | ||
char * | extnm, | ||
long * | pcount, | ||
int * | status | ||
) |
Get keywords from the Header of the BiNary table: Check that the keywords conform to the FITS standard and return the parameters which describe the table.
[in] | fptr | FITS file pointer |
[in] | maxfield | maximum no. of columns to read; |
[out] | naxis2 | number of rows in the table |
[out] | tfields | number of columns in the table |
[out] | ttype | name of each column |
[out] | tform | TFORMn value for each column |
[out] | tunit | TUNITn value for each column |
[out] | extnm | value of EXTNAME keyword, if any |
[out] | pcount | value of PCOUNT keyword |
[in,out] | status | error status |
int ffghbnll | ( | fitsfile * | fptr, |
int | maxfield, | ||
LONGLONG * | naxis2, | ||
int * | tfields, | ||
char ** | ttype, | ||
char ** | tform, | ||
char ** | tunit, | ||
char * | extnm, | ||
LONGLONG * | pcount, | ||
int * | status | ||
) |
Get keywords from the Header of the BiNary table: Check that the keywords conform to the FITS standard and return the parameters which describe the table.
[in] | fptr | FITS file pointer |
[in] | maxfield | maximum no. of columns to read; |
[out] | naxis2 | number of rows in the table |
[out] | tfields | number of columns in the table |
[out] | ttype | name of each column |
[out] | tform | TFORMn value for each column |
[out] | tunit | TUNITn value for each column |
[out] | extnm | value of EXTNAME keyword, if any |
[out] | pcount | value of PCOUNT keyword |
[in,out] | status | error status |
Return the number of the Current HDU in the FITS file. The primary array is HDU number 1. Note that this is one of the few cfitsio routines that does not return the error status value as the value of the function.
[in] | fptr | FITS file pointer |
[out] | chdunum | number of the CHDU; 1 = primary array |
Return the type of the CHDU. This returns the 'logical' type of the HDU, not necessarily the physical type, so in the case of a compressed image stored in a binary table, this will return the type as an Image, not a binary table.
[in] | fptr | FITS file pointer |
[out] | exttype | type of extension, 0, 1, or 2 for IMAGE_HDU, ASCII_TBL, or BINARY_TBL |
[in,out] | status | error status |
int CFITS_API ffghof | ( | fitsfile * | fptr, |
OFF_T * | headstart, | ||
OFF_T * | datastart, | ||
OFF_T * | dataend, | ||
int * | status | ||
) |
Return the address (= byte offset) in the FITS file to the beginning of the current HDU, the beginning of the data unit, and the end of the data unit.
[in] | fptr | FITS file pointer |
[out] | headstart | byte offset to beginning of CHDU |
[out] | datastart | byte offset to beginning of next HDU |
[out] | dataend | byte offset to beginning of next HDU |
[in,out] | status | error status |
int ffghpr | ( | fitsfile * | fptr, |
int | maxdim, | ||
int * | simple, | ||
int * | bitpix, | ||
int * | naxis, | ||
long | naxes[], | ||
long * | pcount, | ||
long * | gcount, | ||
int * | extend, | ||
int * | status | ||
) |
Get keywords from the Header of the PRimary array: Check that the keywords conform to the FITS standard and return the parameters which determine the size and structure of the primary array or IMAGE extension.
[in] | fptr | FITS file pointer |
[in] | maxdim | maximum no. of dimensions to read; |
[out] | simple | does file conform to FITS standard? 1/0 |
[out] | bitpix | number of bits per data value pixel |
[out] | naxis | number of axes in the data array |
[out] | naxes | length of each data axis |
[out] | pcount | number of group parameters (usually 0) |
[out] | gcount | number of random groups (usually 1 or 0) |
[out] | extend | may FITS file haave extensions? |
[in,out] | status | error status |
int ffghprll | ( | fitsfile * | fptr, |
int | maxdim, | ||
int * | simple, | ||
int * | bitpix, | ||
int * | naxis, | ||
LONGLONG | naxes[], | ||
long * | pcount, | ||
long * | gcount, | ||
int * | extend, | ||
int * | status | ||
) |
Get keywords from the Header of the PRimary array: Check that the keywords conform to the FITS standard and return the parameters which determine the size and structure of the primary array or IMAGE extension.
[in] | fptr | FITS file pointer |
[in] | maxdim | maximum no. of dimensions to read; |
[out] | simple | does file conform to FITS standard? 1/0 |
[out] | bitpix | number of bits per data value pixel |
[out] | naxis | number of axes in the data array |
[out] | naxes | length of each data axis |
[out] | pcount | number of group parameters (usually 0) |
[out] | gcount | number of random groups (usually 1 or 0) |
[out] | extend | may FITS file haave extensions? |
[in,out] | status | error status |
int ffghps | ( | fitsfile * | fptr, |
int * | nexist, | ||
int * | position, | ||
int * | status | ||
) |
return the number of existing keywords and the position of the next keyword that will be read.
[in] | fptr | FITS file pointer |
[out] | nexist | number of existing keywords in header |
[out] | nmore | position of next keyword to be read |
[in,out] | status | error status |
int ffghsp | ( | fitsfile * | fptr, |
int * | nexist, | ||
int * | nmore, | ||
int * | status | ||
) |
returns the number of existing keywords (not counting the END keyword) and the number of more keyword that will fit in the current header without having to insert more FITS blocks.
[in] | fptr | FITS file pointer |
[out] | nexist | number of existing keywords in header |
[out] | nmore | how many more keywords will fit |
[in,out] | status | error status |
int ffghtb | ( | fitsfile * | fptr, |
int | maxfield, | ||
long * | naxis1, | ||
long * | naxis2, | ||
int * | tfields, | ||
char ** | ttype, | ||
long * | tbcol, | ||
char ** | tform, | ||
char ** | tunit, | ||
char * | extnm, | ||
int * | status | ||
) |
Get keywords from the Header of the ASCII TaBle: Check that the keywords conform to the FITS standard and return the parameters which describe the table.
[in] | fptr | FITS file pointer |
[in] | maxfield | maximum no. of columns to read; |
[out] | naxis1 | length of table row in bytes |
[out] | naxis2 | number of rows in the table |
[out] | tfields | number of columns in the table |
[out] | ttype | name of each column |
[out] | tbcol | byte offset in row to each column |
[out] | tform | value of TFORMn keyword for each column |
[out] | tunit | value of TUNITn keyword for each column |
[out] | extnm | value of EXTNAME keyword, if any |
[in,out] | status | error status |
int ffghtbll | ( | fitsfile * | fptr, |
int | maxfield, | ||
LONGLONG * | naxis1, | ||
LONGLONG * | naxis2, | ||
int * | tfields, | ||
char ** | ttype, | ||
LONGLONG * | tbcol, | ||
char ** | tform, | ||
char ** | tunit, | ||
char * | extnm, | ||
int * | status | ||
) |
Get keywords from the Header of the ASCII TaBle: Check that the keywords conform to the FITS standard and return the parameters which describe the table.
[in] | fptr | FITS file pointer |
[in] | maxfield | maximum no. of columns to read; |
[out] | naxis1 | length of table row in bytes |
[out] | naxis2 | number of rows in the table |
[out] | tfields | number of columns in the table |
[out] | ttype | name of each column |
[out] | tbcol | byte offset in row to each column |
[out] | tform | value of TFORMn keyword for each column |
[out] | tunit | value of TUNITn keyword for each column |
[out] | extnm | value of EXTNAME keyword, if any |
[in,out] | status | error status |
int CFITS_API ffgics | ( | fitsfile * | fptr, |
double * | xrval, | ||
double * | yrval, | ||
double * | xrpix, | ||
double * | yrpix, | ||
double * | xinc, | ||
double * | yinc, | ||
double * | rot, | ||
char * | type, | ||
int * | status | ||
) |
int CFITS_API ffgicsa | ( | fitsfile * | fptr, |
char | version, | ||
double * | xrval, | ||
double * | yrval, | ||
double * | xrpix, | ||
double * | yrpix, | ||
double * | xinc, | ||
double * | yinc, | ||
double * | rot, | ||
char * | type, | ||
int * | status | ||
) |
Get the dimension of the image (= NAXIS keyword for normal image, or ZNAXIS for a compressed image) These values are cached for faster access.
[in] | fptr | FITS file pointer |
[out] | naxis | image dimension (NAXIS value) |
[in,out] | status | error status |
Get the datatype of the image (= BITPIX keyword for normal image, or ZBITPIX for a compressed image)
[in] | fptr | FITS file pointer |
[out] | imgtype | image data type |
[in,out] | status | error status |
Get the effective datatype of the image (= BITPIX keyword for normal image, or ZBITPIX for a compressed image)
[in] | fptr | FITS file pointer |
[out] | imgtype | image data type |
[in,out] | status | error status |
int CFITS_API ffgipr | ( | fitsfile * | infptr, |
int | maxaxis, | ||
int * | bitpix, | ||
int * | naxis, | ||
long * | naxes, | ||
int * | status | ||
) |
get the datatype and size of the input image
[in] | infptr | FITS file pointer |
[in] | maxaxis | max number of axes to return |
[out] | bitpix | image data type |
[out] | naxis | image dimension (NAXIS value) |
[out] | naxes | size of image dimensions |
[in,out] | status | error status |
int CFITS_API ffgiprll | ( | fitsfile * | infptr, |
int | maxaxis, | ||
int * | bitpix, | ||
int * | naxis, | ||
LONGLONG * | naxes, | ||
int * | status | ||
) |
get the datatype and size of the input image
[in] | infptr | FITS file pointer |
[in] | maxaxis | max number of axes to return |
[out] | bitpix | image data type |
[out] | naxis | image dimension (NAXIS value) |
[out] | naxes | size of image dimensions |
[in,out] | status | error status |
Get the size of the image dimensions (= NAXISn keywords for normal image, or ZNAXISn for a compressed image) These values are cached for faster access.
[in] | fptr | FITS file pointer |
[in] | nlen | number of axes to return |
[out] | naxes | size of image dimensions |
[in,out] | status | error status |
Get the size of the image dimensions (= NAXISn keywords for normal image, or ZNAXISn for a compressed image)
[in] | fptr | FITS file pointer |
[in] | nlen | number of axes to return |
[out] | naxes | size of image dimensions |
[in,out] | status | error status |
int CFITS_API ffgkcl | ( | char * | tcard | ) |
Return the type classification of the input header record
TYP_STRUC_KEY: SIMPLE, BITPIX, NAXIS, NAXISn, EXTEND, BLOCKED, GROUPS, PCOUNT, GCOUNT, END XTENSION, TFIELDS, TTYPEn, TBCOLn, TFORMn, THEAP, and the first 4 COMMENT keywords in the primary array that define the FITS format.
TYP_CMPRS_KEY: The keywords used in the compressed image format ZIMAGE, ZCMPTYPE, ZNAMEn, ZVALn, ZTILEn, ZBITPIX, ZNAXISn, ZSCALE, ZZERO, ZBLANK, EXTNAME = 'COMPRESSED_IMAGE' ZSIMPLE, ZTENSION, ZEXTEND, ZBLOCKED, ZPCOUNT, ZGCOUNT ZQUANTIZ, ZDITHER0
TYP_SCAL_KEY: BSCALE, BZERO, TSCALn, TZEROn
TYP_NULL_KEY: BLANK, TNULLn
TYP_DIM_KEY: TDIMn
TYP_RANG_KEY: TLMINn, TLMAXn, TDMINn, TDMAXn, DATAMIN, DATAMAX
TYP_UNIT_KEY: BUNIT, TUNITn
TYP_DISP_KEY: TDISPn
TYP_HDUID_KEY: EXTNAME, EXTVER, EXTLEVEL, HDUNAME, HDUVER, HDULEVEL
TYP_CKSUM_KEY CHECKSUM, DATASUM
TYP_WCS_KEY: Primary array: WCAXES, CTYPEn, CUNITn, CRVALn, CRPIXn, CROTAn, CDELTn CDj_is, PVj_ms, LONPOLEs, LATPOLEs
Pixel list: TCTYPn, TCTYns, TCUNIn, TCUNns, TCRVLn, TCRVns, TCRPXn, TCRPks, TCDn_k, TCn_ks, TPVn_m, TPn_ms, TCDLTn, TCROTn
Bintable vector: jCTYPn, jCTYns, jCUNIn, jCUNns, jCRVLn, jCRVns, iCRPXn, iCRPns, jiCDn, jiCDns, jPVn_m, jPn_ms, jCDLTn, jCROTn
TYP_REFSYS_KEY: EQUINOXs, EPOCH, MJD-OBSs, RADECSYS, RADESYSs
TYP_COMM_KEY: COMMENT, HISTORY, (blank keyword)
TYP_CONT_KEY: CONTINUE
TYP_USER_KEY: all other keywords
Read (get) the named keyword, returning the keyword value and comment. The value is just the literal string of characters in the value field of the keyword. In the case of a string valued keyword, the returned value includes the leading and closing quote characters. The value may be up to 70 characters long, and the comment may be up to 72 characters long. If the keyword has no value (no equal sign in column 9) then a null value is returned.
[in] | fptr | FITS file pointer |
[in] | keyname | name of keyword to read |
[out] | keyval | keyword value |
[out] | comm | keyword comment |
[in,out] | status | error status |
This is the original routine for reading long string keywords that use the CONTINUE keyword convention. In 2016 a new routine called ffgsky / fits_read_string_key was added, which may provide a more convenient user interface for most applications.
Get Keyword with possible Long String value: Read (get) the named keyword, returning the value and comment. The returned value string may be arbitrarily long (by using the HEASARC convention for continuing long string values over multiple keywords) so this routine allocates the required memory for the returned string value. It is up to the calling routine to free the memory once it is finished with the value string. The returned comment string may be up to 69 characters long.
[in] | fptr | FITS file pointer |
[in] | keyname | name of keyword to read |
[out] | value | pointer to keyword value |
[out] | comm | keyword comment (may be NULL) |
[in,out] | status | error status |
int ffgknd | ( | fitsfile * | fptr, |
const char * | keyname, | ||
int | nstart, | ||
int | nmax, | ||
double * | value, | ||
int * | nfound, | ||
int * | status | ||
) |
Read (get) an indexed array of keywords with index numbers between NSTART and (NSTART + NMAX -1) inclusive.
[in] | fptr | FITS file pointer |
[in] | keyname | root name of keywords to read |
[in] | nstart | starting index number |
[in] | nmax | maximum number of keywords to return |
[out] | value | array of keyword values |
[out] | nfound | number of values that were returned |
[in,out] | status | error status |
int ffgkne | ( | fitsfile * | fptr, |
const char * | keyname, | ||
int | nstart, | ||
int | nmax, | ||
float * | value, | ||
int * | nfound, | ||
int * | status | ||
) |
Read (get) an indexed array of keywords with index numbers between NSTART and (NSTART + NMAX -1) inclusive.
[in] | fptr | FITS file pointer |
[in] | keyname | root name of keywords to read |
[in] | nstart | starting index number |
[in] | nmax | maximum number of keywords to return |
[out] | value | array of keyword values |
[out] | nfound | number of values that were returned |
[in,out] | status | error status |
int ffgknj | ( | fitsfile * | fptr, |
const char * | keyname, | ||
int | nstart, | ||
int | nmax, | ||
long * | value, | ||
int * | nfound, | ||
int * | status | ||
) |
Read (get) an indexed array of keywords with index numbers between NSTART and (NSTART + NMAX -1) inclusive.
[in] | fptr | FITS file pointer |
[in] | keyname | root name of keywords to read |
[in] | nstart | starting index number |
[in] | nmax | maximum number of keywords to return |
[out] | value | array of keyword values |
[out] | nfound | number of values that were returned |
[in,out] | status | error status |
int ffgknjj | ( | fitsfile * | fptr, |
const char * | keyname, | ||
int | nstart, | ||
int | nmax, | ||
LONGLONG * | value, | ||
int * | nfound, | ||
int * | status | ||
) |
Read (get) an indexed array of keywords with index numbers between NSTART and (NSTART + NMAX -1) inclusive.
[in] | fptr | FITS file pointer |
[in] | keyname | root name of keywords to read |
[in] | nstart | starting index number |
[in] | nmax | maximum number of keywords to return |
[out] | value | array of keyword values |
[out] | nfound | number of values that were returned |
[in,out] | status | error status |
int ffgknl | ( | fitsfile * | fptr, |
const char * | keyname, | ||
int | nstart, | ||
int | nmax, | ||
int * | value, | ||
int * | nfound, | ||
int * | status | ||
) |
Read (get) an indexed array of keywords with index numbers between NSTART and (NSTART + NMAX -1) inclusive. The returned value = 1 if the keyword is true, else = 0 if false.
[in] | fptr | FITS file pointer |
[in] | keyname | root name of keywords to read |
[in] | nstart | starting index number |
[in] | nmax | maximum number of keywords to return |
[out] | value | array of keyword values |
[out] | nfound | number of values that were returned |
[in,out] | status | error status |
int ffgknm | ( | char * | card, |
char * | name, | ||
int * | length, | ||
int * | status | ||
) |
Return the name of the keyword, and the name length. This supports the ESO HIERARCH convention where keyword names may be > 8 characters long.
[in] | card | keyword card |
[out] | name | name of the keyword |
[out] | length | length of the keyword name |
[in,out] | status | error status |
int ffgkns | ( | fitsfile * | fptr, |
const char * | keyname, | ||
int | nstart, | ||
int | nmax, | ||
char * | value[], | ||
int * | nfound, | ||
int * | status | ||
) |
Read (get) an indexed array of keywords with index numbers between NSTART and (NSTART + NMAX -1) inclusive. This routine does NOT support the HEASARC long string convention.
[in] | fptr | FITS file pointer |
[in] | keyname | root name of keywords to read |
[in] | nstart | starting index number |
[in] | nmax | maximum number of keywords to return |
[out] | value | array of pointers to keyword values |
[out] | nfound | number of values that were returned |
[in,out] | status | error status |
Get the length of the keyword value string. This routine explicitly supports the CONTINUE convention for long string values.
[in] | fptr | FITS file pointer |
[in] | keyname | name of keyword to read |
[out] | length | length of the string value |
[in,out] | status | error status |
int ffgky | ( | fitsfile * | fptr, |
int | datatype, | ||
const char * | keyname, | ||
void * | value, | ||
char * | comm, | ||
int * | status | ||
) |
Read (get) the keyword value and comment from the FITS header. Reads a keyword value with the datatype specified by the 2nd argument.
[in] | fptr | FITS file pointer |
[in] | datatype | datatype of the value |
[in] | keyname | name of keyword to read |
[out] | value | keyword value |
[out] | comm | keyword comment |
[in,out] | status | error status |
Read (get) the named keyword, returning the value and comment. The keyword must have a complex value. No implicit data conversion will be performed.
[in] | fptr | FITS file pointer |
[in] | keyname | name of keyword to read |
[out] | value | keyword value (real,imag) |
[out] | comm | keyword comment |
[in,out] | status | error status |
Read (get) the named keyword, returning the value and comment. The value will be implicitly converted to a double if it not already of this datatype. The comment may be up to 69 characters long.
[in] | fptr | FITS file pointer |
[in] | keyname | name of keyword to read |
[out] | value | keyword value |
[out] | comm | keyword comment |
[in,out] | status | error status |
Read (get) the named keyword, returning the value and comment. The value will be implicitly converted to a float if it not already of this datatype. The comment may be up to 69 characters long.
[in] | fptr | FITS file pointer |
[in] | keyname | name of keyword to read |
[out] | value | keyword value |
[out] | comm | keyword comment |
[in,out] | status | error status |
Read (get) the named keyword, returning the value and comment. The value will be implicitly converted to a (long) integer if it not already of this datatype. The comment may be up to 69 characters long.
[in] | fptr | FITS file pointer |
[in] | keyname | name of keyword to read |
[out] | value | keyword value |
[out] | comm | keyword comment |
[in,out] | status | error status |
Read (get) the named keyword, returning the value and comment. The value will be implicitly converted to a (long) integer if it not already of this datatype. The comment may be up to 69 characters long.
[in] | fptr | FITS file pointer |
[in] | keyname | name of keyword to read |
[out] | value | keyword value |
[out] | comm | keyword comment |
[in,out] | status | error status |
Read (get) the named keyword, returning the value and comment. The returned value = 1 if the keyword is true, else = 0 if false. The comment may be up to 69 characters long.
[in] | fptr | FITS file pointer |
[in] | keyname | name of keyword to read |
[in] | value | keyword value |
[in] | comm | keyword comment |
[in,out] | status | error status |
Read (get) the named keyword, returning the value and comment. The keyword must have a complex value. No implicit data conversion will be performed.
[in] | fptr | FITS file pointer |
[in] | keyname | name of keyword to read |
[out] | value | keyword value (real,imag) |
[out] | comm | keyword comment |
[in,out] | status | error status |
int ffgkyn | ( | fitsfile * | fptr, |
int | nkey, | ||
char * | keyname, | ||
char * | value, | ||
char * | comm, | ||
int * | status | ||
) |
Read (get) the nkey-th keyword returning the keyword name, value and comment. The value is just the literal string of characters in the value field of the keyword. In the case of a string valued keyword, the returned value includes the leading and closing quote characters. The value may be up to 70 characters long, and the comment may be up to 72 characters long. If the keyword has no value (no equal sign in column 9) then a null value is returned. If comm = NULL, then do not return the comment string.
[in] | fptr | FITS file pointer |
[in] | nkey | number of the keyword to read |
[out] | keyname | name of the keyword |
[out] | value | keyword value |
[out] | comm | keyword comment |
[in,out] | status | error status |
int CFITS_API ffgkys | ( | fitsfile * | fptr, |
const char * | keyname, | ||
char * | value, | ||
char * | comm, | ||
int * | status | ||
) |
int ffgkyt | ( | fitsfile * | fptr, |
const char * | keyname, | ||
long * | ivalue, | ||
double * | fraction, | ||
char * | comm, | ||
int * | status | ||
) |
Read (get) the named keyword, returning the value and comment. The integer and fractional parts of the value are returned in separate variables, to allow more numerical precision to be passed. This effectively passes a 'triple' precision value, with a 4-byte integer and an 8-byte fraction. The comment may be up to 69 characters long.
[in] | fptr | FITS file pointer |
[in] | keyname | name of keyword to read |
[out] | ivalue | integer part of keyword value |
[out] | fraction | fractional part of keyword value |
[out] | comm | keyword comment |
[in,out] | status | error status |
int CFITS_API ffgmsg | ( | char * | err_message | ) |
get oldest message from error stack, ignoring markers
int CFITS_API ffgmtf | ( | fitsfile * | infptr, |
fitsfile * | outfptr, | ||
long | member, | ||
int | tfopt, | ||
int * | status | ||
) |
Get the number of columns in the table (= TFIELDS keyword)
[in] | fptr | FITS file pointer |
[out] | ncols | number of columns in the table |
[in,out] | status | error status |
Get the number of rows in the table (= NAXIS2 keyword)
[in] | fptr | FITS file pointer |
[out] | nrows | number of rows in the table |
[in,out] | status | error status |
Get the number of rows in the table (= NAXIS2 keyword)
[in] | fptr | FITS file pointer |
[out] | nrows | number of rows in the table |
[in,out] | status | error status |
int ffgnxk | ( | fitsfile * | fptr, |
char ** | inclist, | ||
int | ninc, | ||
char ** | exclist, | ||
int | nexc, | ||
char * | card, | ||
int * | status | ||
) |
Return the next keyword that matches one of the names in inclist but does not match any of the names in exclist. The search goes from the current position to the end of the header, only. Wild card characters may be used in the name lists ('*', '?' and '#').
[in] | fptr | FITS file pointer |
[in] | inclist | list of included keyword names |
[in] | ninc | number of names in inclist |
[in] | exclist | list of excluded keyword names |
[in] | nexc | number of names in exclist |
[out] | card | first matching keyword |
[in,out] | status | error status |
int CFITS_API ffgpf | ( | fitsfile * | fptr, |
int | datatype, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
void * | array, | ||
char * | nullarray, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgpfb | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
unsigned char * | array, | ||
char * | nularray, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgpfd | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
double * | array, | ||
char * | nularray, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgpfe | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
float * | array, | ||
char * | nularray, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgpfi | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
short * | array, | ||
char * | nularray, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgpfj | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
long * | array, | ||
char * | nularray, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgpfjj | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
LONGLONG * | array, | ||
char * | nularray, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgpfk | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
int * | array, | ||
char * | nularray, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgpfsb | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
signed char * | array, | ||
char * | nularray, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgpfui | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
unsigned short * | array, | ||
char * | nularray, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgpfuj | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
unsigned long * | array, | ||
char * | nularray, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgpfuk | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
unsigned int * | array, | ||
char * | nularray, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgpv | ( | fitsfile * | fptr, |
int | datatype, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
void * | nulval, | ||
void * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgpvb | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
unsigned char | nulval, | ||
unsigned char * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgpvd | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
double | nulval, | ||
double * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgpve | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
float | nulval, | ||
float * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgpvi | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
short | nulval, | ||
short * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgpvj | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
long | nulval, | ||
long * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgpvjj | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
LONGLONG | nulval, | ||
LONGLONG * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgpvk | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
int | nulval, | ||
int * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgpvsb | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
signed char | nulval, | ||
signed char * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgpvui | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
unsigned short | nulval, | ||
unsigned short * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgpvuj | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
unsigned long | nulval, | ||
unsigned long * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgpvuk | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
unsigned int | nulval, | ||
unsigned int * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgpxf | ( | fitsfile * | fptr, |
int | datatype, | ||
long * | firstpix, | ||
LONGLONG | nelem, | ||
void * | array, | ||
char * | nullarray, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgpxfll | ( | fitsfile * | fptr, |
int | datatype, | ||
LONGLONG * | firstpix, | ||
LONGLONG | nelem, | ||
void * | array, | ||
char * | nullarray, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgpxv | ( | fitsfile * | fptr, |
int | datatype, | ||
long * | firstpix, | ||
LONGLONG | nelem, | ||
void * | nulval, | ||
void * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgpxvll | ( | fitsfile * | fptr, |
int | datatype, | ||
LONGLONG * | firstpix, | ||
LONGLONG | nelem, | ||
void * | nulval, | ||
void * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int ffgrec | ( | fitsfile * | fptr, |
int | nrec, | ||
char * | card, | ||
int * | status | ||
) |
Read (get) the nrec-th keyword, returning the entire keyword card up to 80 characters long. The first keyword in the header has nrec = 1, not 0. The returned card value is null terminated with any trailing blank characters removed. If nrec = 0, then this routine simply moves the current header pointer to the top of the header.
[in] | fptr | FITS file pointer |
[in] | nrec | number of keyword to read |
[out] | card | keyword card |
[in,out] | status | error status |
int ffgsdt | ( | int * | day, |
int * | month, | ||
int * | year, | ||
int * | status | ||
) |
Get current System DaTe (GMT if available). Return integer values of the day, month, and year. This routine is included for backward compatibility with the Fortran FITSIO library.
[in] | day | Day of the month |
[in] | month | Numerical month (1=Jan, etc.) |
[in] | year | Year (1999, 2000, etc.) |
[in,out] | status | error status |
int CFITS_API ffgsfb | ( | fitsfile * | fptr, |
int | colnum, | ||
int | naxis, | ||
long * | naxes, | ||
long * | blc, | ||
long * | trc, | ||
long * | inc, | ||
unsigned char * | array, | ||
char * | flagval, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgsfd | ( | fitsfile * | fptr, |
int | colnum, | ||
int | naxis, | ||
long * | naxes, | ||
long * | blc, | ||
long * | trc, | ||
long * | inc, | ||
double * | array, | ||
char * | flagval, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgsfe | ( | fitsfile * | fptr, |
int | colnum, | ||
int | naxis, | ||
long * | naxes, | ||
long * | blc, | ||
long * | trc, | ||
long * | inc, | ||
float * | array, | ||
char * | flagval, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgsfi | ( | fitsfile * | fptr, |
int | colnum, | ||
int | naxis, | ||
long * | naxes, | ||
long * | blc, | ||
long * | trc, | ||
long * | inc, | ||
short * | array, | ||
char * | flagval, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgsfj | ( | fitsfile * | fptr, |
int | colnum, | ||
int | naxis, | ||
long * | naxes, | ||
long * | blc, | ||
long * | trc, | ||
long * | inc, | ||
long * | array, | ||
char * | flagval, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgsfjj | ( | fitsfile * | fptr, |
int | colnum, | ||
int | naxis, | ||
long * | naxes, | ||
long * | blc, | ||
long * | trc, | ||
long * | inc, | ||
LONGLONG * | array, | ||
char * | flagval, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgsfk | ( | fitsfile * | fptr, |
int | colnum, | ||
int | naxis, | ||
long * | naxes, | ||
long * | blc, | ||
long * | trc, | ||
long * | inc, | ||
int * | array, | ||
char * | flagval, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgsfsb | ( | fitsfile * | fptr, |
int | colnum, | ||
int | naxis, | ||
long * | naxes, | ||
long * | blc, | ||
long * | trc, | ||
long * | inc, | ||
signed char * | array, | ||
char * | flagval, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgsfui | ( | fitsfile * | fptr, |
int | colnum, | ||
int | naxis, | ||
long * | naxes, | ||
long * | blc, | ||
long * | trc, | ||
long * | inc, | ||
unsigned short * | array, | ||
char * | flagval, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgsfuj | ( | fitsfile * | fptr, |
int | colnum, | ||
int | naxis, | ||
long * | naxes, | ||
long * | blc, | ||
long * | trc, | ||
long * | inc, | ||
unsigned long * | array, | ||
char * | flagval, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgsfuk | ( | fitsfile * | fptr, |
int | colnum, | ||
int | naxis, | ||
long * | naxes, | ||
long * | blc, | ||
long * | trc, | ||
long * | inc, | ||
unsigned int * | array, | ||
char * | flagval, | ||
int * | anynul, | ||
int * | status | ||
) |
int ffgsky | ( | fitsfile * | fptr, |
const char * | keyname, | ||
int | firstchar, | ||
int | maxchar, | ||
char * | value, | ||
int * | valuelen, | ||
char * | comm, | ||
int * | status | ||
) |
Read and return the value of the specified string-valued keyword.
This new routine was added in 2016 to provide a more convenient user interface than the older ffgkls routine.
Read a string keyword, returning up to 'naxchars' characters of the value starting with the 'firstchar' character. The input 'value' string must be allocated at least 1 char bigger to allow for the terminating null character.
This routine may be used to read continued string keywords that use the CONTINUE keyword convention, as well as normal string keywords that are contained within a single header record.
This routine differs from the ffkls routine in that it does not internally allocate memory for the returned value string, and consequently the calling routine does not need to call fffree to free the memory.
[in] | fptr | FITS file pointer |
[in] | keyname | name of keyword to read |
[in] | firstchar | first character of string to return |
[in] | maxchar | maximum length of string to return (string will be null terminated) |
[out] | value | pointer to keyword value |
[out] | valuelen | total length of the keyword value string The returned 'value' string may only contain a piece of the total string, depending on the value of firstchar and maxchar |
[out] | comm | keyword comment (may be NULL) |
[in,out] | status | error status |
int ffgstm | ( | char * | timestr, |
int * | timeref, | ||
int * | status | ||
) |
Returns the current date and time in format 'yyyy-mm-ddThh:mm:ss'.
[in,out] | timestr | returned system date and time string |
[in,out] | timeref | GMT = 0, Local time = 1 |
[in,out] | status | error status |
Read (get) the next keyword record that contains the input character string, returning the entire keyword card up to 80 characters long. The returned card value is null terminated with any trailing blank characters removed.
[in] | fptr | FITS file pointer |
[in] | string | |
[out] | card | |
[in,out] | status | error status |
int CFITS_API ffgsv | ( | fitsfile * | fptr, |
int | datatype, | ||
long * | blc, | ||
long * | trc, | ||
long * | inc, | ||
void * | nulval, | ||
void * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgsvb | ( | fitsfile * | fptr, |
int | colnum, | ||
int | naxis, | ||
long * | naxes, | ||
long * | blc, | ||
long * | trc, | ||
long * | inc, | ||
unsigned char | nulval, | ||
unsigned char * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgsvd | ( | fitsfile * | fptr, |
int | colnum, | ||
int | naxis, | ||
long * | naxes, | ||
long * | blc, | ||
long * | trc, | ||
long * | inc, | ||
double | nulval, | ||
double * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgsve | ( | fitsfile * | fptr, |
int | colnum, | ||
int | naxis, | ||
long * | naxes, | ||
long * | blc, | ||
long * | trc, | ||
long * | inc, | ||
float | nulval, | ||
float * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgsvi | ( | fitsfile * | fptr, |
int | colnum, | ||
int | naxis, | ||
long * | naxes, | ||
long * | blc, | ||
long * | trc, | ||
long * | inc, | ||
short | nulval, | ||
short * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgsvj | ( | fitsfile * | fptr, |
int | colnum, | ||
int | naxis, | ||
long * | naxes, | ||
long * | blc, | ||
long * | trc, | ||
long * | inc, | ||
long | nulval, | ||
long * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgsvjj | ( | fitsfile * | fptr, |
int | colnum, | ||
int | naxis, | ||
long * | naxes, | ||
long * | blc, | ||
long * | trc, | ||
long * | inc, | ||
LONGLONG | nulval, | ||
LONGLONG * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgsvk | ( | fitsfile * | fptr, |
int | colnum, | ||
int | naxis, | ||
long * | naxes, | ||
long * | blc, | ||
long * | trc, | ||
long * | inc, | ||
int | nulval, | ||
int * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgsvsb | ( | fitsfile * | fptr, |
int | colnum, | ||
int | naxis, | ||
long * | naxes, | ||
long * | blc, | ||
long * | trc, | ||
long * | inc, | ||
signed char | nulval, | ||
signed char * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgsvui | ( | fitsfile * | fptr, |
int | colnum, | ||
int | naxis, | ||
long * | naxes, | ||
long * | blc, | ||
long * | trc, | ||
long * | inc, | ||
unsigned short | nulval, | ||
unsigned short * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgsvuj | ( | fitsfile * | fptr, |
int | colnum, | ||
int | naxis, | ||
long * | naxes, | ||
long * | blc, | ||
long * | trc, | ||
long * | inc, | ||
unsigned long | nulval, | ||
unsigned long * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgsvuk | ( | fitsfile * | fptr, |
int | colnum, | ||
int | naxis, | ||
long * | naxes, | ||
long * | blc, | ||
long * | trc, | ||
long * | inc, | ||
unsigned int | nulval, | ||
unsigned int * | array, | ||
int * | anynul, | ||
int * | status | ||
) |
int CFITS_API ffgtbb | ( | fitsfile * | fptr, |
LONGLONG | firstrow, | ||
LONGLONG | firstchar, | ||
LONGLONG | nchars, | ||
unsigned char * | values, | ||
int * | status | ||
) |
int CFITS_API ffgtcl | ( | fitsfile * | fptr, |
int | colnum, | ||
int * | typecode, | ||
long * | repeat, | ||
long * | width, | ||
int * | status | ||
) |
Get Type of table column. Returns the datatype code of the column, as well as the vector repeat count and (if it is an ASCII character column) the width of the field or a unit string within the field. This supports the TFORMn = 'rAw' syntax for specifying arrays of substrings, so if TFORMn = '60A12' then repeat = 60 and width = 12.
[in] | fptr | FITS file pointer |
[in] | colnum | column number |
[out] | typecode | datatype code (21 = short, etc) |
[out] | repeat | repeat count of field |
[out] | width | if ASCII, width of field or unit string |
[in,out] | status | error status |
int CFITS_API ffgtclll | ( | fitsfile * | fptr, |
int | colnum, | ||
int * | typecode, | ||
LONGLONG * | repeat, | ||
LONGLONG * | width, | ||
int * | status | ||
) |
Get Type of table column. Returns the datatype code of the column, as well as the vector repeat count and (if it is an ASCII character column) the width of the field or a unit string within the field. This supports the TFORMn = 'rAw' syntax for specifying arrays of substrings, so if TFORMn = '60A12' then repeat = 60 and width = 12.
[in] | fptr | FITS file pointer |
[in] | colnum | column number |
[out] | typecode | datatype code (21 = short, etc) |
[out] | repeat | repeat count of field |
[out] | width | if ASCII, width of field or unit string |
[in,out] | status | error status |
int CFITS_API ffgtcs | ( | fitsfile * | fptr, |
int | xcol, | ||
int | ycol, | ||
double * | xrval, | ||
double * | yrval, | ||
double * | xrpix, | ||
double * | yrpix, | ||
double * | xinc, | ||
double * | yinc, | ||
double * | rot, | ||
char * | type, | ||
int * | status | ||
) |
int ffgtdm | ( | fitsfile * | fptr, |
int | colnum, | ||
int | maxdim, | ||
int * | naxis, | ||
long | naxes[], | ||
int * | status | ||
) |
read and parse the TDIMnnn keyword to get the dimensionality of a column
[in] | fptr | FITS file pointer |
[in] | colnum | number of the column to read |
[in] | maxdim | maximum no. of dimensions to read; |
[out] | naxis | number of axes in the data array |
[out] | naxes | length of each data axis |
[in,out] | status | error status |
int ffgtdmll | ( | fitsfile * | fptr, |
int | colnum, | ||
int | maxdim, | ||
int * | naxis, | ||
LONGLONG | naxes[], | ||
int * | status | ||
) |
read and parse the TDIMnnn keyword to get the dimensionality of a column
[in] | fptr | FITS file pointer |
[in] | colnum | number of the column to read |
[in] | maxdim | maximum no. of dimensions to read; |
[out] | naxis | number of axes in the data array |
[out] | naxes | length of each data axis |
[in,out] | status | error status |
int CFITS_API ffgthd | ( | char * | tmplt, |
char * | card, | ||
int * | hdtype, | ||
int * | status | ||
) |
'Get Template HeaDer' parse a template header line and create a formated character string which is suitable for appending to a FITS header
[in] | tmplt | input header template string |
[out] | card | returned FITS header record |
[out] | hdtype | how to interpreter the returned card string -2 = modify the name of a keyword; the old keyword name is returned starting at address chars[0]; the new name is returned starting at address char[40] (to be consistent with the Fortran version). Both names are null terminated. -1 = card contains the name of a keyword that is to be deleted 0 = append this keyword if it doesn't already exist, or modify the value if the keyword already exists. 1 = append this comment keyword ('HISTORY', 'COMMENT', or blank keyword name) 2 = this is the END keyword; do not write it to the header |
[in,out] | status | error status |
Read (get) the units string from the comment field of the existing keyword. This routine uses a local FITS convention (not defined in the official FITS standard) in which the units are enclosed in square brackets following the '/' comment field delimiter, e.g.:
KEYWORD = 12 / [kpc] comment string goes here
[in] | fptr | FITS file pointer |
[in] | keyname | name of keyword to read |
[out] | unit | keyword units |
[in,out] | status | error status |
based on the number of keywords which have already been written, plus the number of keywords to reserve space for, we then can define where the data unit should start (it must start at the beginning of a 2880-byte logical block).
This routine will only have any effect if the starting location of the data unit following the header is not already defined. In any case, it is always possible to add more keywords to the header even if the data has already been written. It is just more efficient to reserve the space in advance.
[in] | fptr | FITS file pointer |
[in] | morekeys | reserve space for this many keywords |
[in,out] | status | error status |
int ffhdr2str | ( | fitsfile * | fptr, |
int | exclude_comm, | ||
char ** | exclist, | ||
int | nexc, | ||
char ** | header, | ||
int * | nkeys, | ||
int * | status | ||
) |
read header keywords into a long string of chars. This routine allocates memory for the string, so the calling routine must eventually free the memory when it is not needed any more. If exclude_comm is TRUE, then all the COMMENT, HISTORY, and <blank> keywords will be excluded from the output string of keywords. Any other list of keywords to be excluded may be specified with the exclist parameter.
[in] | fptr | FITS file pointer |
[in] | exclude_comm | if TRUE, exclude commentary keywords |
[in] | exclist | list of excluded keyword names |
[in] | nexc | number of names in exclist |
[out] | header | returned header string |
[out] | nkeys | returned number of 80-char keywords |
[in,out] | status | error status |
int CFITS_API ffhist | ( | fitsfile ** | fptr, |
char * | outfile, | ||
int | imagetype, | ||
int | naxis, | ||
char | colname[4][FLEN_VALUE], | ||
double * | minin, | ||
double * | maxin, | ||
double * | binsizein, | ||
char | minname[4][FLEN_VALUE], | ||
char | maxname[4][FLEN_VALUE], | ||
char | binname[4][FLEN_VALUE], | ||
double | weightin, | ||
char | wtcol[FLEN_VALUE], | ||
int | recip, | ||
char * | rowselect, | ||
int * | status | ||
) |
int CFITS_API ffhist2 | ( | fitsfile ** | fptr, |
char * | outfile, | ||
int | imagetype, | ||
int | naxis, | ||
char | colname[4][FLEN_VALUE], | ||
double * | minin, | ||
double * | maxin, | ||
double * | binsizein, | ||
char | minname[4][FLEN_VALUE], | ||
char | maxname[4][FLEN_VALUE], | ||
char | binname[4][FLEN_VALUE], | ||
double | weightin, | ||
char | wtcol[FLEN_VALUE], | ||
int | recip, | ||
char * | rowselect, | ||
int * | status | ||
) |
CFITS_API fitsfile* ffhist3 | ( | fitsfile * | fptr, |
char * | outfile, | ||
int | imagetype, | ||
int | naxis, | ||
char | colname[4][FLEN_VALUE], | ||
double * | minin, | ||
double * | maxin, | ||
double * | binsizein, | ||
char | minname[4][FLEN_VALUE], | ||
char | maxname[4][FLEN_VALUE], | ||
char | binname[4][FLEN_VALUE], | ||
double | weightin, | ||
char | wtcol[FLEN_VALUE], | ||
int | recip, | ||
char * | selectrow, | ||
int * | status | ||
) |
int CFITS_API ffibin | ( | fitsfile * | fptr, |
LONGLONG | naxis2, | ||
int | tfields, | ||
char ** | ttype, | ||
char ** | tform, | ||
char ** | tunit, | ||
const char * | extname, | ||
LONGLONG | pcount, | ||
int * | status | ||
) |
int CFITS_API fficls | ( | fitsfile * | fptr, |
int | firstcol, | ||
int | ncols, | ||
char ** | ttype, | ||
char ** | tform, | ||
int * | status | ||
) |
int CFITS_API ffifile | ( | char * | url, |
char * | urltype, | ||
char * | infilex, | ||
char * | outfile, | ||
char * | extspec, | ||
char * | rowfilterx, | ||
char * | binspec, | ||
char * | colspec, | ||
char * | pixfilter, | ||
int * | status | ||
) |
fits_parse_input_filename parse the input URL into its basic components. This routine does not support the compspec component.
[in] | url | input filename |
[in] | urltype | e.g., 'file://', 'http://', 'mem://' |
[in] | infilex | root filename (may be complete path) |
[in] | outfile | optional output file name |
[in] | extspec | extension spec: +n or [extname, extver] |
[in] | rowfilterx | boolean row filter expression |
[in] | binspec | histogram binning specifier |
[in] | colspec | column or keyword modifier expression |
[in] | pixfilter | pixel filter expression |
int CFITS_API ffifile2 | ( | char * | url, |
char * | urltype, | ||
char * | infilex, | ||
char * | outfile, | ||
char * | extspec, | ||
char * | rowfilterx, | ||
char * | binspec, | ||
char * | colspec, | ||
char * | pixfilter, | ||
char * | compspec, | ||
int * | status | ||
) |
fits_parse_input_filename parse the input URL into its basic components. This routine is big and ugly and should be redesigned someday!
[in] | url | input filename |
[in] | urltype | e.g., 'file://', 'http://', 'mem://' |
[in] | infilex | root filename (may be complete path) |
[in] | outfile | optional output file name |
[in] | extspec | extension spec: +n or [extname, extver] |
[in] | rowfilterx | boolean row filter expression |
[in] | binspec | histogram binning specifier |
[in] | colspec | column or keyword modifier expression |
[in] | pixfilter | pixel filter expression |
[in] | compspec | image compression specification |
int CFITS_API ffikfc | ( | fitsfile * | fptr, |
const char * | keyname, | ||
float * | value, | ||
int | decim, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffikfm | ( | fitsfile * | fptr, |
const char * | keyname, | ||
double * | value, | ||
int | decim, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffikls | ( | fitsfile * | fptr, |
const char * | keyname, | ||
const char * | value, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffikyc | ( | fitsfile * | fptr, |
const char * | keyname, | ||
float * | value, | ||
int | decim, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffikyd | ( | fitsfile * | fptr, |
const char * | keyname, | ||
double | value, | ||
int | decim, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffikye | ( | fitsfile * | fptr, |
const char * | keyname, | ||
float | value, | ||
int | decim, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffikyf | ( | fitsfile * | fptr, |
const char * | keyname, | ||
float | value, | ||
int | decim, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffikyg | ( | fitsfile * | fptr, |
const char * | keyname, | ||
double | value, | ||
int | decim, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffikyj | ( | fitsfile * | fptr, |
const char * | keyname, | ||
LONGLONG | value, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffikyl | ( | fitsfile * | fptr, |
const char * | keyname, | ||
int | value, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffikym | ( | fitsfile * | fptr, |
const char * | keyname, | ||
double * | value, | ||
int | decim, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffikys | ( | fitsfile * | fptr, |
const char * | keyname, | ||
const char * | value, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffimem | ( | fitsfile ** | fptr, |
void ** | buffptr, | ||
size_t * | buffsize, | ||
size_t | deltasize, | ||
void *(*)(void *p, size_t newsize) | mem_realloc, | ||
int * | status | ||
) |
Create and initialize a new FITS file in memory
[out] | fptr | FITS file pointer |
[in] | buffptr | address of memory pointer |
[in] | buffsize | size of buffer, in bytes |
[in] | deltasize | increment for future realloc's |
[in] | mem_realloc | function |
[in,out] | status | error status |
int CFITS_API ffimport_file | ( | char * | filename, |
char ** | contents, | ||
int * | status | ||
) |
Read and concatenate all the lines from the given text file. User must free the pointer returned in contents. Pointer is guaranteed to hold 2 characters more than the length of the text... allows the calling routine to append (or prepend) a newline (or quotes?) without reallocating memory.
[in] | filename | Text file to read |
[in] | contents | Pointer to pointer to hold file |
[in] | status | CFITSIO error code |
Create and initialize a new FITS file.
[out] | fptr | FITS file pointer |
[in] | name | name of file to create |
[in,out] | status | error status |
int CFITS_API ffinttyp | ( | char * | cval, |
int * | dtype, | ||
int * | negative, | ||
int * | status | ||
) |
determine implicit datatype of input integer string. This assumes that the string conforms to the FITS standard for integer keyword value, so may not detect all invalid formats.
[in] | cval | formatted string representation of the integer |
[out] | dtype | datatype code: TBYTE, TSHORT, TUSHORT, etc |
[out] | negative | is cval negative? |
[in,out] | status | error status |
Open an existing FITS file with either readonly or read/write access. and move to the first HDU that contains 'interesting' image (not an table).
[out] | fptr | FITS file pointer |
[in] | name | full name of file to open |
[in] | mode | 0 = open readonly; 1 = read/write |
[in,out] | status | error status |
int CFITS_API ffitab | ( | fitsfile * | fptr, |
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
int | tfields, | ||
char ** | ttype, | ||
long * | tbcol, | ||
char ** | tform, | ||
char ** | tunit, | ||
const char * | extname, | ||
int * | status | ||
) |
int CFITS_API ffiter | ( | int | ncols, |
iteratorCol * | data, | ||
long | offset, | ||
long | nPerLoop, | ||
int(*)(long totaln, long offset, long firstn, long nvalues, int narrays, iteratorCol *data, void *userPointer) | workFn, | ||
void * | userPointer, | ||
int * | status | ||
) |
int CFITS_API ffiurl | ( | char * | url, |
char * | urltype, | ||
char * | infilex, | ||
char * | outfile, | ||
char * | extspec, | ||
char * | rowfilterx, | ||
char * | binspec, | ||
char * | colspec, | ||
int * | status | ||
) |
parse the input URL into its basic components. This routine does not support the pixfilter or compspec components.
[in] | url | input filename |
[in] | urltype | e.g., 'file://', 'http://', 'mem://' |
[in] | infilex | root filename (may be complete path) |
[in] | outfile | optional output file name |
[in] | extspec | extension spec: +n or [extname, extver] |
[in] | rowfilterx | boolean row filter expression |
[in] | binspec | histogram binning specifier |
[in] | colspec | column or keyword modifier expression |
Construct a keyword name string by appending the index number to the root. e.g., if root = "TTYPE" and value = 12 then keyname = "TTYPE12". Note: this allows keyword names longer than 8 characters.
[in] | keyroot | root string for keyword name keyword name |
[in] | value | index number to be appended to root name |
[out] | keyname | output root + index keyword name |
[in,out] | status | error status |
Move to Absolute Header Data unit. Move to the specified HDU and read the header to initialize the table structure. Note that extnum is one based, so the primary array is extnum = 1.
[in] | fptr | FITS file pointer |
[in] | hdunum | number of the HDU to move to |
[out] | exttype | type of extension, 0, 1, or 2 |
[in,out] | status | error status |
int ffmaky | ( | fitsfile * | fptr, |
int | nrec, | ||
int * | status | ||
) |
[in] | fptr | FITS file pointer |
[in] | nrec | one-based keyword number to move to |
[in,out] | status | error status |
int CFITS_API ffmkfc | ( | fitsfile * | fptr, |
const char * | keyname, | ||
float * | value, | ||
int | decim, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffmkfm | ( | fitsfile * | fptr, |
const char * | keyname, | ||
double * | value, | ||
int | decim, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffmkky | ( | const char * | keyname, |
char * | value, | ||
const char * | comm, | ||
char * | card, | ||
int * | status | ||
) |
Make a complete FITS 80-byte keyword card from the input name, value and comment strings. Output card is null terminated without any trailing blanks.
[in] | keyname | keyword name |
[in] | value | keyword value |
[in] | comm | keyword comment |
[out] | card | constructed keyword card |
[in,out] | status | error status |
int CFITS_API ffmkls | ( | fitsfile * | fptr, |
const char * | keyname, | ||
const char * | value, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffmkyc | ( | fitsfile * | fptr, |
const char * | keyname, | ||
float * | value, | ||
int | decim, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffmkyd | ( | fitsfile * | fptr, |
const char * | keyname, | ||
double | value, | ||
int | decim, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffmkye | ( | fitsfile * | fptr, |
const char * | keyname, | ||
float | value, | ||
int | decim, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffmkyf | ( | fitsfile * | fptr, |
const char * | keyname, | ||
float | value, | ||
int | decim, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffmkyg | ( | fitsfile * | fptr, |
const char * | keyname, | ||
double | value, | ||
int | decim, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffmkyj | ( | fitsfile * | fptr, |
const char * | keyname, | ||
LONGLONG | value, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffmkyl | ( | fitsfile * | fptr, |
const char * | keyname, | ||
int | value, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffmkym | ( | fitsfile * | fptr, |
const char * | keyname, | ||
double * | value, | ||
int | decim, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffmkys | ( | fitsfile * | fptr, |
const char * | keyname, | ||
const char * | value, | ||
const char * | comm, | ||
int * | status | ||
) |
Move to the next HDU with a given extension type (IMAGE_HDU, ASCII_TBL, BINARY_TBL, or ANY_HDU), extension name (EXTNAME or HDUNAME keyword), and EXTVERS keyword values. If hduvers = 0, then move to the first HDU with the given type and name regardless of EXTVERS value. If no matching HDU is found in the file, then the current open HDU will remain unchanged.
[in] | fptr | FITS file pointer |
[in] | exttype | type of extension, 0, 1, or 2 |
[in] | hduname | desired EXTNAME value for the HDU |
[in] | hduver | desired EXTVERS value for the HDU |
[in,out] | status | error status |
Move a Relative number of Header Data units. Offset to the specified extension and read the header to initialize the HDU structure.
[in] | fptr | FITS file pointer |
[in] | hdumov | rel. no. of HDUs to move by (+ or -) |
[out] | exttype | type of extension, 0, 1, or 2 |
[in,out] | status | error status |
int ffmrky | ( | fitsfile * | fptr, |
int | nmove, | ||
int * | status | ||
) |
[in] | fptr | FITS file pointer |
[in] | nmove | relative number of keywords to move |
[in,out] | status | error status |
int ffnchk | ( | fitsfile * | fptr, |
int * | status | ||
) |
function returns the position of the first null character (ASCII 0), if any, in the current header. Null characters are illegal, but the other CFITSIO routines that read the header will not detect this error, because the null gets interpreted as a normal end of string character.
[in] | fptr | FITS file pointer |
[in,out] | status | error status |
Construct a keyword name string by appending the root string to the index number. e.g., if root = "TTYPE" and value = 12 then keyname = "12TTYPE".
[in] | value | index number to be appended to root name |
[in] | keyroot | root string for keyword name |
[out] | keyname | output root + index keyword name |
[in,out] | status | error status |
int CFITS_API ffomem | ( | fitsfile ** | fptr, |
const char * | name, | ||
int | mode, | ||
void ** | buffptr, | ||
size_t * | buffsize, | ||
size_t | deltasize, | ||
void *(*)(void *p, size_t newsize) | mem_realloc, | ||
int * | status | ||
) |
Open an existing FITS file in core memory. This is a specialized version of ffopen.
[out] | fptr | FITS file pointer |
[in] | name | name of file to open |
[in] | mode | 0 = open readonly; 1 = read/write |
[in] | buffptr | address of memory pointer |
[in] | buffsize | size of buffer, in bytes |
[in] | deltasize | increment for future realloc's |
[in] | mem_realloc | function |
[in,out] | status | error status |
Open an existing FITS file with either readonly or read/write access.
[out] | fptr | FITS file pointer |
[in] | name | full name of file to open |
[in] | mode | 0 = open readonly; 1 = read/write |
[in,out] | status | error status |
int CFITS_API ffopentest | ( | int | soname, |
fitsfile ** | fptr, | ||
const char * | name, | ||
int | mode, | ||
int * | status | ||
) |
Open an existing FITS file with either readonly or read/write access. First test that the SONAME of fitsio.h used to build the CFITSIO library is the same as was used in compiling the application program that links to the library.
[in] | soname | CFITSIO shared library version application program (fitsio.h file) |
[out] | fptr | FITS file pointer |
[in] | name | full name of file to open |
[in] | mode | /* I - 0 = open readonly; 1 = read/write |
[in,out] | status | error status |
int CFITS_API ffp2db | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | ncols, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
unsigned char * | array, | ||
int * | status | ||
) |
int CFITS_API ffp2dd | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | ncols, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
double * | array, | ||
int * | status | ||
) |
int CFITS_API ffp2de | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | ncols, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
float * | array, | ||
int * | status | ||
) |
int CFITS_API ffp2di | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | ncols, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
short * | array, | ||
int * | status | ||
) |
int CFITS_API ffp2dj | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | ncols, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
long * | array, | ||
int * | status | ||
) |
int CFITS_API ffp2djj | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | ncols, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
LONGLONG * | array, | ||
int * | status | ||
) |
int CFITS_API ffp2dk | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | ncols, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
int * | array, | ||
int * | status | ||
) |
int CFITS_API ffp2dsb | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | ncols, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
signed char * | array, | ||
int * | status | ||
) |
int CFITS_API ffp2dui | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | ncols, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
unsigned short * | array, | ||
int * | status | ||
) |
int CFITS_API ffp2duj | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | ncols, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
unsigned long * | array, | ||
int * | status | ||
) |
int CFITS_API ffp2duk | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | ncols, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
unsigned int * | array, | ||
int * | status | ||
) |
int CFITS_API ffp3db | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | ncols, | ||
LONGLONG | nrows, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
LONGLONG | naxis3, | ||
unsigned char * | array, | ||
int * | status | ||
) |
int CFITS_API ffp3dd | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | ncols, | ||
LONGLONG | nrows, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
LONGLONG | naxis3, | ||
double * | array, | ||
int * | status | ||
) |
int CFITS_API ffp3de | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | ncols, | ||
LONGLONG | nrows, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
LONGLONG | naxis3, | ||
float * | array, | ||
int * | status | ||
) |
int CFITS_API ffp3di | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | ncols, | ||
LONGLONG | nrows, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
LONGLONG | naxis3, | ||
short * | array, | ||
int * | status | ||
) |
int CFITS_API ffp3dj | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | ncols, | ||
LONGLONG | nrows, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
LONGLONG | naxis3, | ||
long * | array, | ||
int * | status | ||
) |
int CFITS_API ffp3djj | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | ncols, | ||
LONGLONG | nrows, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
LONGLONG | naxis3, | ||
LONGLONG * | array, | ||
int * | status | ||
) |
int CFITS_API ffp3dk | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | ncols, | ||
LONGLONG | nrows, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
LONGLONG | naxis3, | ||
int * | array, | ||
int * | status | ||
) |
int CFITS_API ffp3dsb | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | ncols, | ||
LONGLONG | nrows, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
LONGLONG | naxis3, | ||
signed char * | array, | ||
int * | status | ||
) |
int CFITS_API ffp3dui | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | ncols, | ||
LONGLONG | nrows, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
LONGLONG | naxis3, | ||
unsigned short * | array, | ||
int * | status | ||
) |
int CFITS_API ffp3duj | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | ncols, | ||
LONGLONG | nrows, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
LONGLONG | naxis3, | ||
unsigned long * | array, | ||
int * | status | ||
) |
int CFITS_API ffp3duk | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | ncols, | ||
LONGLONG | nrows, | ||
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
LONGLONG | naxis3, | ||
unsigned int * | array, | ||
int * | status | ||
) |
int CFITS_API ffpcl | ( | fitsfile * | fptr, |
int | datatype, | ||
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
void * | array, | ||
int * | status | ||
) |
int CFITS_API ffpclb | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
unsigned char * | array, | ||
int * | status | ||
) |
int CFITS_API ffpclc | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
float * | array, | ||
int * | status | ||
) |
int CFITS_API ffpcld | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
double * | array, | ||
int * | status | ||
) |
int CFITS_API ffpcle | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
float * | array, | ||
int * | status | ||
) |
int CFITS_API ffpcli | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
short * | array, | ||
int * | status | ||
) |
int CFITS_API ffpclj | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
long * | array, | ||
int * | status | ||
) |
int CFITS_API ffpcljj | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
LONGLONG * | array, | ||
int * | status | ||
) |
int CFITS_API ffpclk | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
int * | array, | ||
int * | status | ||
) |
int CFITS_API ffpcll | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
char * | array, | ||
int * | status | ||
) |
int CFITS_API ffpclm | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
double * | array, | ||
int * | status | ||
) |
int CFITS_API ffpcls | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
char ** | array, | ||
int * | status | ||
) |
int CFITS_API ffpclsb | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
signed char * | array, | ||
int * | status | ||
) |
int CFITS_API ffpclu | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
int * | status | ||
) |
int CFITS_API ffpclui | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
unsigned short * | array, | ||
int * | status | ||
) |
int CFITS_API ffpcluj | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
unsigned long * | array, | ||
int * | status | ||
) |
int CFITS_API ffpcluk | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
unsigned int * | array, | ||
int * | status | ||
) |
int CFITS_API ffpclx | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | frow, | ||
long | fbit, | ||
long | nbit, | ||
char * | larray, | ||
int * | status | ||
) |
int CFITS_API ffpcn | ( | fitsfile * | fptr, |
int | datatype, | ||
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
void * | array, | ||
void * | nulval, | ||
int * | status | ||
) |
int CFITS_API ffpcnb | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
unsigned char * | array, | ||
unsigned char | nulvalue, | ||
int * | status | ||
) |
int CFITS_API ffpcnd | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
double * | array, | ||
double | nulvalue, | ||
int * | status | ||
) |
int CFITS_API ffpcne | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
float * | array, | ||
float | nulvalue, | ||
int * | status | ||
) |
int CFITS_API ffpcni | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
short * | array, | ||
short | nulvalue, | ||
int * | status | ||
) |
int CFITS_API ffpcnj | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
long * | array, | ||
long | nulvalue, | ||
int * | status | ||
) |
int CFITS_API ffpcnjj | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
LONGLONG * | array, | ||
LONGLONG | nulvalue, | ||
int * | status | ||
) |
int CFITS_API ffpcnk | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
int * | array, | ||
int | nulvalue, | ||
int * | status | ||
) |
int CFITS_API ffpcnl | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
char * | array, | ||
char | nulvalue, | ||
int * | status | ||
) |
int CFITS_API ffpcns | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
char ** | array, | ||
char * | nulvalue, | ||
int * | status | ||
) |
int CFITS_API ffpcnsb | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
signed char * | array, | ||
signed char | nulvalue, | ||
int * | status | ||
) |
int CFITS_API ffpcnui | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
unsigned short * | array, | ||
unsigned short | nulvalue, | ||
int * | status | ||
) |
int CFITS_API ffpcnuj | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
unsigned long * | array, | ||
unsigned long | nulvalue, | ||
int * | status | ||
) |
int CFITS_API ffpcnuk | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | firstrow, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
unsigned int * | array, | ||
unsigned int | nulvalue, | ||
int * | status | ||
) |
Write 1 or more COMMENT keywords. If the comment string is too long to fit on a single keyword (72 chars) then it will automatically be continued on multiple CONTINUE keywords.
[in] | fptr | FITS file pointer |
[in] | comm | comment string |
[in,out] | status | error status |
int ffpdat | ( | fitsfile * | fptr, |
int * | status | ||
) |
Write the DATE keyword into the FITS header. If the keyword already exists then the date will simply be updated in the existing keyword.
[in] | fptr | FITS file pointer |
[in,out] | status | error status |
int CFITS_API ffpdes | ( | fitsfile * | fptr, |
int | colnum, | ||
LONGLONG | rownum, | ||
LONGLONG | length, | ||
LONGLONG | heapaddr, | ||
int * | status | ||
) |
put (write) the variable length vector descriptor to the table.
[in] | fptr | FITS file pointer |
[in] | colnum | column number (1 = 1st column of table) |
[in] | rownum | row number (1 = 1st row of table) |
[in] | length | number of elements in the row |
[in] | heapaddr | heap pointer to the data |
[in,out] | status | error status |
int CFITS_API ffpextn | ( | fitsfile * | fptr, |
LONGLONG | offset, | ||
LONGLONG | nelem, | ||
void * | array, | ||
int * | status | ||
) |
int CFITS_API ffpgpb | ( | fitsfile * | fptr, |
long | group, | ||
long | firstelem, | ||
long | nelem, | ||
unsigned char * | array, | ||
int * | status | ||
) |
int CFITS_API ffpgpd | ( | fitsfile * | fptr, |
long | group, | ||
long | firstelem, | ||
long | nelem, | ||
double * | array, | ||
int * | status | ||
) |
int CFITS_API ffpgpe | ( | fitsfile * | fptr, |
long | group, | ||
long | firstelem, | ||
long | nelem, | ||
float * | array, | ||
int * | status | ||
) |
int CFITS_API ffpgpi | ( | fitsfile * | fptr, |
long | group, | ||
long | firstelem, | ||
long | nelem, | ||
short * | array, | ||
int * | status | ||
) |
int CFITS_API ffpgpj | ( | fitsfile * | fptr, |
long | group, | ||
long | firstelem, | ||
long | nelem, | ||
long * | array, | ||
int * | status | ||
) |
int CFITS_API ffpgpjj | ( | fitsfile * | fptr, |
long | group, | ||
long | firstelem, | ||
long | nelem, | ||
LONGLONG * | array, | ||
int * | status | ||
) |
int CFITS_API ffpgpk | ( | fitsfile * | fptr, |
long | group, | ||
long | firstelem, | ||
long | nelem, | ||
int * | array, | ||
int * | status | ||
) |
int CFITS_API ffpgpsb | ( | fitsfile * | fptr, |
long | group, | ||
long | firstelem, | ||
long | nelem, | ||
signed char * | array, | ||
int * | status | ||
) |
int CFITS_API ffpgpui | ( | fitsfile * | fptr, |
long | group, | ||
long | firstelem, | ||
long | nelem, | ||
unsigned short * | array, | ||
int * | status | ||
) |
int CFITS_API ffpgpuj | ( | fitsfile * | fptr, |
long | group, | ||
long | firstelem, | ||
long | nelem, | ||
unsigned long * | array, | ||
int * | status | ||
) |
int CFITS_API ffpgpuk | ( | fitsfile * | fptr, |
long | group, | ||
long | firstelem, | ||
long | nelem, | ||
unsigned int * | array, | ||
int * | status | ||
) |
int ffphbn | ( | fitsfile * | fptr, |
LONGLONG | naxis2, | ||
int | tfields, | ||
char ** | ttype, | ||
char ** | tform, | ||
char ** | tunit, | ||
const char * | extnmx, | ||
LONGLONG | pcount, | ||
int * | status | ||
) |
Put required Header keywords into the Binary Table:
[in] | fptr | FITS file pointer |
[in] | naxis2 | number of rows in the table |
[in] | tfields | number of columns in the table |
[in] | ttype | name of each column |
[in] | tform | value of TFORMn keyword for each column |
[in] | tunit | value of TUNITn keyword for each column |
[in] | extnmx | value of EXTNAME keyword, if any |
[in] | pcount | size of the variable length heap area |
[in,out] | status | error status |
int ffphext | ( | fitsfile * | fptr, |
const char * | xtensionx, | ||
int | bitpix, | ||
int | naxis, | ||
long | naxes[], | ||
LONGLONG | pcount, | ||
LONGLONG | gcount, | ||
int * | status | ||
) |
Put required Header keywords into a conforming extension:
[in] | fptr | FITS file pointer |
[in] | xtensionx | value for the XTENSION keyword |
[in] | bitpix | value for the BIXPIX keyword |
[in] | naxis | value for the NAXIS keyword |
[in] | naxes | value for the NAXISn keywords |
[in] | pcount | value for the PCOUNT keyword |
[in] | gcount | value for the GCOUNT keyword |
[in,out] | status | error status |
Write 1 or more HISTORY keywords. If the history string is too long to fit on a single keyword (72 chars) then it will automatically be continued on multiple HISTORY keywords.
[in] | fptr | FITS file pointer |
[in] | history | history string |
[in,out] | status | error status |
int ffphpr | ( | fitsfile * | fptr, |
int | simple, | ||
int | bitpix, | ||
int | naxis, | ||
long | naxes[], | ||
LONGLONG | pcount, | ||
LONGLONG | gcount, | ||
int | extend, | ||
int * | status | ||
) |
write required primary header keywords
[in] | fptr | FITS file pointer |
[in] | simple | does file conform to FITS standard? 1/0 |
[in] | bitpix | number of bits per data value pixel |
[in] | naxis | number of axes in the data array |
[in] | naxes | length of each data axis |
[in] | pcount | number of group parameters (usually 0) |
[in] | gcount | number of random groups (usually 1 or 0) |
[in] | extend | may FITS file have extensions? |
[in,out] | status | error status |
int ffphprll | ( | fitsfile * | fptr, |
int | simple, | ||
int | bitpix, | ||
int | naxis, | ||
LONGLONG | naxes[], | ||
LONGLONG | pcount, | ||
LONGLONG | gcount, | ||
int | extend, | ||
int * | status | ||
) |
write required primary header keywords
[in] | fptr | FITS file pointer |
[in] | simple | does file conform to FITS standard? 1/0 |
[in] | bitpix | number of bits per data value pixel |
[in] | naxis | number of axes in the data array |
[in] | naxes | length of each data axis |
[in] | pcount | number of group parameters (usually 0) |
[in] | gcount | number of random groups (usually 1 or 0 |
[in] | extend | may FITS file have extensions? |
[in,out] | status | error status |
int ffphps | ( | fitsfile * | fptr, |
int | bitpix, | ||
int | naxis, | ||
long | naxes[], | ||
int * | status | ||
) |
write STANDARD set of required primary header keywords
[in] | fptr | FITS file pointer |
[in] | bitpix | number of bits per data value pixel |
[in] | naxis | number of axes in the data array |
[in] | naxes | length of each data axis |
[in,out] | status | error status |
write STANDARD set of required primary header keywords
[in] | fptr | FITS file pointer |
[in] | bitpix | number of bits per data value pixel |
[in] | naxis | number of axes in the data array |
[in] | naxes | length of each data axis |
[in,out] | status | error status |
int ffphtb | ( | fitsfile * | fptr, |
LONGLONG | naxis1, | ||
LONGLONG | naxis2, | ||
int | tfields, | ||
char ** | ttype, | ||
long * | tbcol, | ||
char ** | tform, | ||
char ** | tunit, | ||
const char * | extnmx, | ||
int * | status | ||
) |
Put required Header keywords into the ASCII TaBle:
[in] | fptr | FITS file pointer |
[in] | naxis1 | width of row in the table |
[in] | naxis2 | number of rows in the table |
[in] | tfields | number of columns in the table |
[in] | ttype | name of each column |
[in] | tbcol | byte offset in row to each column |
[in] | tform | value of TFORMn keyword for each column |
[in] | tunit | value of TUNITn keyword for each column |
[in] | extnmx | value of EXTNAME keyword, if any |
[in,out] | status | error status |
int CFITS_API ffpkfc | ( | fitsfile * | fptr, |
const char * | keyname, | ||
float * | value, | ||
int | decim, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffpkfm | ( | fitsfile * | fptr, |
const char * | keyname, | ||
double * | value, | ||
int | decim, | ||
const char * | comm, | ||
int * | status | ||
) |
int ffpkls | ( | fitsfile * | fptr, |
const char * | keyname, | ||
const char * | value, | ||
const char * | comm, | ||
int * | status | ||
) |
Write (put) the keyword, value and comment into the FITS header. This routine is a modified version of ffpkys which supports the HEASARC long string convention and can write arbitrarily long string keyword values. The value is continued over multiple keywords that have the name COMTINUE without an equal sign in column 9 of the card. This routine also supports simple string keywords which are less than 69 characters in length.
[in] | fptr | FITS file pointer |
[in] | keyname | name of keyword to write |
[in] | value | keyword value |
[in] | comm | keyword comment |
[in,out] | status | error status |
int ffpknd | ( | fitsfile * | fptr, |
const char * | keyroot, | ||
int | nstart, | ||
int | nkey, | ||
double * | value, | ||
int | decim, | ||
char * | comm[], | ||
int * | status | ||
) |
Write (put) an indexed array of keywords with index numbers between NSTART and (NSTART + NKEY -1) inclusive. Writes exponential double values.
[in] | fptr | FITS file pointer |
[in] | keyroot | root name of keywords to write |
[in] | nstart | starting index number |
[in] | nkey | number of keywords to write |
[in] | value | array of keyword values |
[in] | decim | number of decimals to display |
[in] | comm | array of pointers to keyword comment |
[in,out] | status | error status |
int ffpkne | ( | fitsfile * | fptr, |
const char * | keyroot, | ||
int | nstart, | ||
int | nkey, | ||
float * | value, | ||
int | decim, | ||
char * | comm[], | ||
int * | status | ||
) |
Write (put) an indexed array of keywords with index numbers between NSTART and (NSTART + NKEY -1) inclusive. Writes exponential float values.
[in] | fptr | FITS file pointer |
[in] | keyroot | root name of keywords to write |
[in] | nstart | starting index number |
[in] | nkey | number of keywords to write |
[in] | value | array of keyword values |
[in] | decim | number of decimals to display |
[in] | comm | array of pointers to keyword comment |
[in,out] | status | error status |
int ffpknf | ( | fitsfile * | fptr, |
const char * | keyroot, | ||
int | nstart, | ||
int | nkey, | ||
float * | value, | ||
int | decim, | ||
char * | comm[], | ||
int * | status | ||
) |
Write (put) an indexed array of keywords with index numbers between NSTART and (NSTART + NKEY -1) inclusive. Writes fixed float values.
[in] | fptr | FITS file pointer |
[in] | keyroot | root name of keywords to write |
[in] | nstart | starting index number |
[in] | nkey | number of keywords to write |
[in] | value | array of keyword values |
[in] | decim | number of decimals to display |
[in] | comm | array of pointers to keyword comment |
[in,out] | status | error status |
int ffpkng | ( | fitsfile * | fptr, |
const char * | keyroot, | ||
int | nstart, | ||
int | nkey, | ||
double * | value, | ||
int | decim, | ||
char * | comm[], | ||
int * | status | ||
) |
Write (put) an indexed array of keywords with index numbers between NSTART and (NSTART + NKEY -1) inclusive. Writes fixed double values.
[in] | fptr | FITS file pointer |
[in] | keyroot | root name of keywords to write |
[in] | nstart | starting index number |
[in] | nkey | number of keywords to write |
[in] | value | array of keyword values |
[in] | decim | number of decimals to display |
[in] | comm | array of pointers to keyword comment |
[in,out] | status | error status |
int ffpknj | ( | fitsfile * | fptr, |
const char * | keyroot, | ||
int | nstart, | ||
int | nkey, | ||
long * | value, | ||
char * | comm[], | ||
int * | status | ||
) |
Write (put) an indexed array of keywords with index numbers between NSTART and (NSTART + NKEY -1) inclusive. Write integer keywords
[in] | fptr | FITS file pointer |
[in] | keyroot | root name of keywords to write |
[in] | nstart | starting index number |
[in] | nkey | number of keywords to write |
[in] | value | array of keyword values |
[in] | comm | array of pointers to keyword comment |
[in,out] | status | error status |
int ffpknjj | ( | fitsfile * | fptr, |
const char * | keyroot, | ||
int | nstart, | ||
int | nkey, | ||
LONGLONG * | value, | ||
char * | comm[], | ||
int * | status | ||
) |
Write (put) an indexed array of keywords with index numbers between NSTART and (NSTART + NKEY -1) inclusive. Write integer keywords
[in] | fptr | FITS file pointer |
[in] | keyroot | root name of keywords to write |
[in] | nstart | starting index number |
[in] | nkey | number of keywords to write |
[in] | value | array of keyword values |
[in] | comm | array of pointers to keyword comment |
[in,out] | status | error status |
int ffpknl | ( | fitsfile * | fptr, |
const char * | keyroot, | ||
int | nstart, | ||
int | nkey, | ||
int * | value, | ||
char * | comm[], | ||
int * | status | ||
) |
Write (put) an indexed array of keywords with index numbers between NSTART and (NSTART + NKEY -1) inclusive. Writes logical keywords Values equal to zero will be written as a False FITS keyword value; any other non-zero value will result in a True FITS keyword.
[in] | fptr | FITS file pointer |
[in] | keyroot | root name of keywords to write |
[in] | nstart | starting index number |
[in] | nkey | number of keywords to write |
[in] | value | array of keyword values |
[in] | comm | array of pointers to keyword comment |
[in,out] | status | error status |
int ffpkns | ( | fitsfile * | fptr, |
const char * | keyroot, | ||
int | nstart, | ||
int | nkey, | ||
char * | value[], | ||
char * | comm[], | ||
int * | status | ||
) |
Write (put) an indexed array of keywords with index numbers between NSTART and (NSTART + NKEY -1) inclusive. Writes string keywords. The value strings will be truncated at 68 characters, and the HEASARC long string keyword convention is not supported by this routine.
[in] | fptr | FITS file pointer |
[in] | keyroot | root name of keywords to write |
[in] | nstart | starting index number |
[in] | nkey | number of keywords to write |
[in] | value | array of pointers to keyword values |
[in] | comm | array of pointers to keyword comment |
[in,out] | status | error status |
read keywords from template file and append to the FITS file
[in] | fptr | FITS file pointer |
[in] | filename | name of template file |
[in,out] | status | error status |
int ffpky | ( | fitsfile * | fptr, |
int | datatype, | ||
const char * | keyname, | ||
void * | value, | ||
const char * | comm, | ||
int * | status | ||
) |
Write (put) the keyword, value and comment into the FITS header. Writes a keyword value with the datatype specified by the 2nd argument.
[in] | fptr | FITS file pointer |
[in] | datatype | datatype of the value |
[in] | keyname | name of keyword to write |
[in] | value | keyword value |
[in] | comm | keyword comment |
[in,out] | status | error status |
int CFITS_API ffpkyc | ( | fitsfile * | fptr, |
const char * | keyname, | ||
float * | value, | ||
int | decim, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffpkyd | ( | fitsfile * | fptr, |
const char * | keyname, | ||
double | value, | ||
int | decim, | ||
const char * | comm, | ||
int * | status | ||
) |
int ffpkye | ( | fitsfile * | fptr, |
const char * | keyname, | ||
float | value, | ||
int | decim, | ||
const char * | comm, | ||
int * | status | ||
) |
Write (put) the keyword, value and comment into the FITS header. Writes an exponential float keyword value.
[in] | fptr | FITS file pointer |
[in] | keyname | name of keyword to write |
[in] | value | keyword value |
[in] | decim | number of decimal places to display |
[in] | comm | keyword comment |
[in,out] | status | error status |
int ffpkyf | ( | fitsfile * | fptr, |
const char * | keyname, | ||
float | value, | ||
int | decim, | ||
const char * | comm, | ||
int * | status | ||
) |
Write (put) the keyword, value and comment into the FITS header. Writes a fixed float keyword value.
[in] | fptr | FITS file pointer |
[in] | keyname | name of keyword to write |
[in] | value | keyword value |
[in] | decim | number of decimal places to display |
[in] | comm | keyword comment |
[in,out] | status | error status |
int ffpkyg | ( | fitsfile * | fptr, |
const char * | keyname, | ||
double | value, | ||
int | decim, | ||
const char * | comm, | ||
int * | status | ||
) |
Write (put) the keyword, value and comment into the FITS header. Writes a fixed double keyword value.
int ffpkyj | ( | fitsfile * | fptr, |
const char * | keyname, | ||
LONGLONG | value, | ||
const char * | comm, | ||
int * | status | ||
) |
Write (put) the keyword, value and comment into the FITS header. Writes an integer keyword value.
[in] | fptr | FITS file pointer |
[in] | keyname | name of keyword to write |
[in] | value | keyword value |
[in] | comm | keyword comment |
[in,out] | status | error status |
Write (put) the keyword, value and comment into the FITS header. Values equal to 0 will result in a False FITS keyword; any other non-zero value will result in a True FITS keyword.
[in] | fptr | FITS file pointer |
[in] | keyname | name of keyword to write |
[in] | value | keyword value |
[in] | comm | keyword comment |
[in,out] | status | error status |
int CFITS_API ffpkym | ( | fitsfile * | fptr, |
const char * | keyname, | ||
double * | value, | ||
int | decim, | ||
const char * | comm, | ||
int * | status | ||
) |
int ffpkys | ( | fitsfile * | fptr, |
const char * | keyname, | ||
const char * | value, | ||
const char * | comm, | ||
int * | status | ||
) |
Write (put) the keyword, value and comment into the FITS header. The value string will be truncated at 68 characters which is the maximum length that will fit on a single FITS keyword.
[in] | fptr | FITS file pointer |
[in] | keyname | name of keyword to write |
[in] | value | keyword value |
[in] | comm | keyword comment |
[in,out] | status | error status |
int ffpkyt | ( | fitsfile * | fptr, |
const char * | keyname, | ||
long | intval, | ||
double | fraction, | ||
const char * | comm, | ||
int * | status | ||
) |
Write (put) a 'triple' precision keyword where the integer and fractional parts of the value are passed in separate parameters to increase the total amount of numerical precision.
[in] | fptr | FITS file pointer |
[in] | keyname | name of keyword to write |
[in] | intval | integer part of value |
[in] | fraction | fractional part of value |
[in] | comm | keyword comment |
[in,out] | status | error status |
Write (put) a null-valued keyword and comment into the FITS header.
[in] | fptr | FITS file pointer |
[in] | keyname | name of keyword to write |
[in] | comm | keyword comment |
[in,out] | status | error status |
int ffplsw | ( | fitsfile * | fptr, |
int * | status | ||
) |
Write the LONGSTRN keyword and a series of related COMMENT keywords which document that this FITS header may contain long string keyword values which are continued over multiple keywords using the HEASARC long string keyword convention. If the LONGSTRN keyword already exists then this routine simple returns without doing anything.
[in] | fptr | FITS file pointer |
[in,out] | status | error status |
void CFITS_API ffpmrk | ( | void | ) |
write a marker to the stack. It is then possible to pop only those messages following the marker off of the stack, leaving the previous messages unaffected.
The marker is ignored by the ffgmsg routine.
int CFITS_API ffppn | ( | fitsfile * | fptr, |
int | datatype, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
void * | array, | ||
void * | nulval, | ||
int * | status | ||
) |
int CFITS_API ffppnb | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
unsigned char * | array, | ||
unsigned char | nulval, | ||
int * | status | ||
) |
int CFITS_API ffppnd | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
double * | array, | ||
double | nulval, | ||
int * | status | ||
) |
int CFITS_API ffppne | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
float * | array, | ||
float | nulval, | ||
int * | status | ||
) |
int CFITS_API ffppni | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
short * | array, | ||
short | nulval, | ||
int * | status | ||
) |
int CFITS_API ffppnj | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
long * | array, | ||
long | nulval, | ||
int * | status | ||
) |
int CFITS_API ffppnjj | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
LONGLONG * | array, | ||
LONGLONG | nulval, | ||
int * | status | ||
) |
int CFITS_API ffppnk | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
int * | array, | ||
int | nulval, | ||
int * | status | ||
) |
int CFITS_API ffppnsb | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
signed char * | array, | ||
signed char | nulval, | ||
int * | status | ||
) |
int CFITS_API ffppnui | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
unsigned short * | array, | ||
unsigned short | nulval, | ||
int * | status | ||
) |
int CFITS_API ffppnuj | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
unsigned long * | array, | ||
unsigned long | nulval, | ||
int * | status | ||
) |
int CFITS_API ffppnuk | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
unsigned int * | array, | ||
unsigned int | nulval, | ||
int * | status | ||
) |
int CFITS_API ffppr | ( | fitsfile * | fptr, |
int | datatype, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
void * | array, | ||
int * | status | ||
) |
int CFITS_API ffpprb | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
unsigned char * | array, | ||
int * | status | ||
) |
int CFITS_API ffpprd | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
double * | array, | ||
int * | status | ||
) |
int CFITS_API ffppre | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
float * | array, | ||
int * | status | ||
) |
int CFITS_API ffppri | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
short * | array, | ||
int * | status | ||
) |
int CFITS_API ffpprj | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
long * | array, | ||
int * | status | ||
) |
int CFITS_API ffpprjj | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
LONGLONG * | array, | ||
int * | status | ||
) |
int CFITS_API ffpprk | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
int * | array, | ||
int * | status | ||
) |
int CFITS_API ffpprsb | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
signed char * | array, | ||
int * | status | ||
) |
int CFITS_API ffppru | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
int * | status | ||
) |
int CFITS_API ffpprui | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
unsigned short * | array, | ||
int * | status | ||
) |
int CFITS_API ffppruj | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
unsigned long * | array, | ||
int * | status | ||
) |
int CFITS_API ffppruk | ( | fitsfile * | fptr, |
long | group, | ||
LONGLONG | firstelem, | ||
LONGLONG | nelem, | ||
unsigned int * | array, | ||
int * | status | ||
) |
int CFITS_API ffppx | ( | fitsfile * | fptr, |
int | datatype, | ||
long * | firstpix, | ||
LONGLONG | nelem, | ||
void * | array, | ||
int * | status | ||
) |
int CFITS_API ffppxll | ( | fitsfile * | fptr, |
int | datatype, | ||
LONGLONG * | firstpix, | ||
LONGLONG | nelem, | ||
void * | array, | ||
int * | status | ||
) |
int CFITS_API ffppxn | ( | fitsfile * | fptr, |
int | datatype, | ||
long * | firstpix, | ||
LONGLONG | nelem, | ||
void * | array, | ||
void * | nulval, | ||
int * | status | ||
) |
int CFITS_API ffppxnll | ( | fitsfile * | fptr, |
int | datatype, | ||
LONGLONG * | firstpix, | ||
LONGLONG | nelem, | ||
void * | array, | ||
void * | nulval, | ||
int * | status | ||
) |
write a keyword record (80 bytes long) to the end of the header
[in] | fptr | FITS file pointer |
[in] | card | string to be written |
[in,out] | status | error status |
int CFITS_API ffpss | ( | fitsfile * | fptr, |
int | datatype, | ||
long * | fpixel, | ||
long * | lpixel, | ||
void * | array, | ||
int * | status | ||
) |
int CFITS_API ffpssb | ( | fitsfile * | fptr, |
long | group, | ||
long | naxis, | ||
long * | naxes, | ||
long * | fpixel, | ||
long * | lpixel, | ||
unsigned char * | array, | ||
int * | status | ||
) |
int CFITS_API ffpssd | ( | fitsfile * | fptr, |
long | group, | ||
long | naxis, | ||
long * | naxes, | ||
long * | fpixel, | ||
long * | lpixel, | ||
double * | array, | ||
int * | status | ||
) |
int CFITS_API ffpsse | ( | fitsfile * | fptr, |
long | group, | ||
long | naxis, | ||
long * | naxes, | ||
long * | fpixel, | ||
long * | lpixel, | ||
float * | array, | ||
int * | status | ||
) |
int CFITS_API ffpssi | ( | fitsfile * | fptr, |
long | group, | ||
long | naxis, | ||
long * | naxes, | ||
long * | fpixel, | ||
long * | lpixel, | ||
short * | array, | ||
int * | status | ||
) |
int CFITS_API ffpssj | ( | fitsfile * | fptr, |
long | group, | ||
long | naxis, | ||
long * | naxes, | ||
long * | fpixel, | ||
long * | lpixel, | ||
long * | array, | ||
int * | status | ||
) |
int CFITS_API ffpssjj | ( | fitsfile * | fptr, |
long | group, | ||
long | naxis, | ||
long * | naxes, | ||
long * | fpixel, | ||
long * | lpixel, | ||
LONGLONG * | array, | ||
int * | status | ||
) |
int CFITS_API ffpssk | ( | fitsfile * | fptr, |
long | group, | ||
long | naxis, | ||
long * | naxes, | ||
long * | fpixel, | ||
long * | lpixel, | ||
int * | array, | ||
int * | status | ||
) |
int CFITS_API ffpsssb | ( | fitsfile * | fptr, |
long | group, | ||
long | naxis, | ||
long * | naxes, | ||
long * | fpixel, | ||
long * | lpixel, | ||
signed char * | array, | ||
int * | status | ||
) |
int CFITS_API ffpssui | ( | fitsfile * | fptr, |
long | group, | ||
long | naxis, | ||
long * | naxes, | ||
long * | fpixel, | ||
long * | lpixel, | ||
unsigned short * | array, | ||
int * | status | ||
) |
int CFITS_API ffpssuj | ( | fitsfile * | fptr, |
long | group, | ||
long | naxis, | ||
long * | naxes, | ||
long * | fpixel, | ||
long * | lpixel, | ||
unsigned long * | array, | ||
int * | status | ||
) |
int CFITS_API ffpssuk | ( | fitsfile * | fptr, |
long | group, | ||
long | naxis, | ||
long * | naxes, | ||
long * | fpixel, | ||
long * | lpixel, | ||
unsigned int * | array, | ||
int * | status | ||
) |
int CFITS_API ffpsvc | ( | char * | card, |
char * | value, | ||
char * | comm, | ||
int * | status | ||
) |
ParSe the Value and Comment strings from the input header card string. If the card contains a quoted string value, the returned value string includes the enclosing quote characters. If comm = NULL, don't return the comment string.
[in] | card | FITS header card (nominally 80 bytes long) |
[out] | value | value string parsed from the card |
[out] | comm | comment string parsed from the card |
[in,out] | status | error status |
int CFITS_API ffptbb | ( | fitsfile * | fptr, |
LONGLONG | firstrow, | ||
LONGLONG | firstchar, | ||
LONGLONG | nchars, | ||
unsigned char * | values, | ||
int * | status | ||
) |
int ffptdm | ( | fitsfile * | fptr, |
int | colnum, | ||
int | naxis, | ||
long | naxes[], | ||
int * | status | ||
) |
write the TDIMnnn keyword describing the dimensionality of a column
[in] | fptr | FITS file pointer |
[in] | colnum | column number |
[in] | naxis | number of axes in the data array |
[in] | naxes | length of each data axis |
[in,out] | status | error status |
write the TDIMnnn keyword describing the dimensionality of a column
[in] | fptr | FITS file pointer |
[in] | colnum | column number |
[in] | naxis | number of axes in the data array |
[in] | naxes | length of each data axis |
[in,out] | status | error status |
ReDEFine the structure of a data unit. This routine re-reads the CHDU header keywords to determine the structure and length of the current data unit. This redefines the start of the next HDU.
[in] | fptr | FITS file pointer |
[in,out] | status | error status |
Reopen an existing FITS file with either readonly or read/write access. The reopened file shares the same FITSfile structure but may point to a different HDU within the file.
[in] | openfptr | FITS file pointer to open file |
[out] | newfptr | pointer to new re opened file |
[in,out] | status | error status |
void CFITS_API ffrprt | ( | FILE * | stream, |
int | status | ||
) |
Print out report of cfitsio error status and messages on the error stack. Uses C FILE stream.
int CFITS_API ffrtnm | ( | char * | url, |
char * | rootname, | ||
int * | status | ||
) |
parse the input URL, returning the root name (filetype://basename).
int CFITS_API ffrwrg | ( | char * | rowlist, |
LONGLONG | maxrows, | ||
int | maxranges, | ||
int * | numranges, | ||
long * | minrow, | ||
long * | maxrow, | ||
int * | status | ||
) |
int CFITS_API ffrwrgll | ( | char * | rowlist, |
LONGLONG | maxrows, | ||
int | maxranges, | ||
int * | numranges, | ||
LONGLONG * | minrow, | ||
LONGLONG * | maxrow, | ||
int * | status | ||
) |
int ffs2dt | ( | char * | datestr, |
int * | year, | ||
int * | month, | ||
int * | day, | ||
int * | status | ||
) |
Parse a date character string into year, month, and day values
[in] | datestr | date string: "YYYY-MM-DD" or "dd/mm/yy" |
[in,out] | year | year (0 - 9999) |
[in,out] | month | month (1 - 12) |
[in,out] | day | day (1 - 31) |
[in,out] | status | error status |
int CFITS_API ffs2tm | ( | char * | datestr, |
int * | year, | ||
int * | month, | ||
int * | day, | ||
int * | hour, | ||
int * | minute, | ||
double * | second, | ||
int * | status | ||
) |
int CFITS_API fftexp | ( | fitsfile * | fptr, |
char * | expr, | ||
int | maxdim, | ||
int * | datatype, | ||
long * | nelem, | ||
int * | naxis, | ||
long * | naxes, | ||
int * | status | ||
) |
Return the number of HDUs that currently exist in the file.
[in] | fptr | FITS file pointer |
[out] | nhdu | number of HDUs in the file |
[in,out] | status | error status |
int CFITS_API fftheap | ( | fitsfile * | fptr, |
LONGLONG * | heapsz, | ||
LONGLONG * | unused, | ||
LONGLONG * | overlap, | ||
int * | valid, | ||
int * | status | ||
) |
Tests the contents of the binary table variable length array heap. Returns the number of bytes that are currently not pointed to by any of the descriptors, and also the number of bytes that are pointed to by more than one descriptor. It returns valid = FALSE if any of the descriptors point to addresses that are out of the bounds of the heap.
[in] | fptr | |
[out] | heapsz | current size of the heap |
[out] | unused | no. of unused bytes in the heap |
[out] | overlap | no. of bytes shared by > 1 descriptors |
[out] | valid | are all the heap addresses valid? |
[in,out] | status | error status |
int fftm2s | ( | int | year, |
int | month, | ||
int | day, | ||
int | hour, | ||
int | minute, | ||
double | second, | ||
int | decimals, | ||
char * | datestr, | ||
int * | status | ||
) |
Construct a date and time character string
[in] | year | year (0 - 9999) |
[in] | month | month (1 - 12) |
[in] | day | day (1 - 31) |
[in] | hour | hour (0 - 23) |
[in] | minute | minute (0 - 59) |
[in] | second | second (0. - 60.9999999) |
[in] | decimals | number of decimal points to write |
[in,out] | datestr | date string: "YYYY-MM-DDThh:mm:ss.ddd" or "hh:mm:ss.ddd" if year, month day = 0 |
[in,out] | status | error status |
Open an existing FITS file with either readonly or read/write access. and move to the first HDU that contains 'interesting' table (not an image).
[out] | fptr | FITS file pointer |
[in] | name | full name of file to open |
[in] | mode | 0 = open readonly; 1 = read/write |
[in,out] | status | error status |
int CFITS_API fftplt | ( | fitsfile ** | fptr, |
const char * | filename, | ||
const char * | tempname, | ||
int * | status | ||
) |
Create and initialize a new FITS file based on a template file. Uses C fopen and fgets functions.
[out] | fptr | FITS file pointer |
[in] | filename | name of file to create |
[in] | tempname | name of template file |
[in,out] | status | error status |
int CFITS_API fftrec | ( | char * | card, |
int * | status | ||
) |
Test that the keyword card conforms to the FITS standard. Must contain only printable ASCII characters;
[in] | card | keyword card to test |
[in,out] | status | error status |
int CFITS_API ffukfc | ( | fitsfile * | fptr, |
const char * | keyname, | ||
float * | value, | ||
int | decim, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffukfm | ( | fitsfile * | fptr, |
const char * | keyname, | ||
double * | value, | ||
int | decim, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffukls | ( | fitsfile * | fptr, |
const char * | keyname, | ||
const char * | value, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffuky | ( | fitsfile * | fptr, |
int | datatype, | ||
const char * | keyname, | ||
void * | value, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffukyc | ( | fitsfile * | fptr, |
const char * | keyname, | ||
float * | value, | ||
int | decim, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffukyd | ( | fitsfile * | fptr, |
const char * | keyname, | ||
double | value, | ||
int | decim, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffukye | ( | fitsfile * | fptr, |
const char * | keyname, | ||
float | value, | ||
int | decim, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffukyf | ( | fitsfile * | fptr, |
const char * | keyname, | ||
float | value, | ||
int | decim, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffukyg | ( | fitsfile * | fptr, |
const char * | keyname, | ||
double | value, | ||
int | decim, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffukyj | ( | fitsfile * | fptr, |
const char * | keyname, | ||
LONGLONG | value, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffukyl | ( | fitsfile * | fptr, |
const char * | keyname, | ||
int | value, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffukym | ( | fitsfile * | fptr, |
const char * | keyname, | ||
double * | value, | ||
int | decim, | ||
const char * | comm, | ||
int * | status | ||
) |
int CFITS_API ffukys | ( | fitsfile * | fptr, |
const char * | keyname, | ||
const char * | value, | ||
const char * | comm, | ||
int * | status | ||
) |
void CFITS_API ffupch | ( | char * | string | ) |
convert string to upper case, in place.
return the prefix string associated with the driver in use by the fitsfile pointer fptr
int ffverifydate | ( | int | year, |
int | month, | ||
int | day, | ||
int * | status | ||
) |
Verify that the date is valid
[in] | year | year (0 - 9999) |
[in] | month | month (1 - 12) |
[in] | day | day (1 - 31) |
[in,out] | status | error status |
float CFITS_API ffvers | ( | float * | version | ) |
return the current version number of the FITSIO software
[in,out] | version | version number |
int CFITS_API ffwldp | ( | double | xpix, |
double | ypix, | ||
double | xref, | ||
double | yref, | ||
double | xrefpix, | ||
double | yrefpix, | ||
double | xinc, | ||
double | yinc, | ||
double | rot, | ||
char * | type, | ||
double * | xpos, | ||
double * | ypos, | ||
int * | status | ||
) |
int CFITS_API ffxypx | ( | double | xpos, |
double | ypos, | ||
double | xref, | ||
double | yref, | ||
double | xrefpix, | ||
double | yrefpix, | ||
double | xinc, | ||
double | yinc, | ||
double | rot, | ||
char * | type, | ||
double * | xpix, | ||
double * | ypix, | ||
int * | status | ||
) |
int CFITS_API fits_calc_binning | ( | fitsfile * | fptr, |
int | naxis, | ||
char | colname[4][FLEN_VALUE], | ||
double * | minin, | ||
double * | maxin, | ||
double * | binsizein, | ||
char | minname[4][FLEN_VALUE], | ||
char | maxname[4][FLEN_VALUE], | ||
char | binname[4][FLEN_VALUE], | ||
int * | colnum, | ||
long * | haxes, | ||
float * | amin, | ||
float * | amax, | ||
float * | binsize, | ||
int * | status | ||
) |
int CFITS_API fits_compress_img | ( | fitsfile * | infptr, |
fitsfile * | outfptr, | ||
int | compress_type, | ||
long * | tilesize, | ||
int | parm1, | ||
int | parm2, | ||
int * | status | ||
) |
Compress the input FITS Binary Table.
First divide the table into equal sized chunks (analogous to image tiles) where all the contain the same number of rows (except perhaps for the last chunk which may contain fewer rows). The chunks should not be too large to copy into memory (currently, about 100 MB max seems a reasonable size).
Then, on a chunk by piece basis, do the following:
int CFITS_API fits_copy_cell2image | ( | fitsfile * | fptr, |
fitsfile * | newptr, | ||
char * | colname, | ||
long | rownum, | ||
int * | status | ||
) |
Copy a table cell of a given row and column into an image extension. The output file must already have been created. A new image extension will be created in that file.
[in] | fptr | point to input table |
[out] | newptr | existing output file; new image HDU will be appended to it |
[in] | colname | column name / number containing the image |
[in] | rownum | number of the row containing the image |
[in,out] | status | error status |
int CFITS_API fits_copy_image2cell | ( | fitsfile * | fptr, |
fitsfile * | newptr, | ||
char * | colname, | ||
long | rownum, | ||
int | copykeyflag, | ||
int * | status | ||
) |
Copy an image extension into a table cell at a given row and column. The table must have already been created. If the "colname" column exists, it will be used, otherwise a new column will be created in the table.
The "copykeyflag" parameter controls which keywords to copy from the input image to the output table header (with any appropriate translation).
copykeyflag = 0 – no keywords will be copied copykeyflag = 1 – essentially all keywords will be copied copykeyflag = 2 – copy only the WCS related keywords
[in] | fptr | pointer to input image extension |
[in] | newptr | pointer to output table |
[in] | colname | name of column containing the image |
[in] | rownum | number of the row containing the image |
[in] | copykeyflag | controls which keywords to copy |
[in,out] | status | error status |
int CFITS_API fits_copy_image_section | ( | fitsfile * | fptr, |
fitsfile * | newptr, | ||
char * | expr, | ||
int * | status | ||
) |
copies an image section from the input file to a new output HDU
[in] | fptr | pointer to input image |
[in] | newptr | pointer to output image |
[in] | expr | Image section expression |
int CFITS_API fits_copy_pixlist2image | ( | fitsfile * | infptr, |
fitsfile * | outfptr, | ||
int | firstkey, | ||
int | naxis, | ||
int * | colnum, | ||
int * | status | ||
) |
Copy relevant keywords from the pixel list table header into a newly created primary array header. Convert names of keywords where appropriate. See fits_translate_pixkeyword() for the definitions.
Translation begins at header record number 'firstkey', and continues to the end of the header.
[in] | infptr | pointer to input HDU |
[in] | outfptr | pointer to output HDU |
[in] | firstkey | first HDU record number to start with |
[in] | naxis | number of axes in the image |
[in] | colnum | numbers of the columns to be binned |
[in,out] | status | error status |
THIS IS AN OBSOLETE ROUTINE. USE fits_img_decompress instead!!!
This routine decompresses the whole image and writes it to the output file.
[in] | infptr | image (bintable) to uncompress |
[in] | outfptr | empty HDU for output uncompressed image |
[in,out] | status | error status |
int fits_delete_iraf_file | ( | const char * | filename, |
int * | status | ||
) |
int fits_get_compression_type | ( | fitsfile * | fptr, |
int * | ctype, | ||
int * | status | ||
) |
This routine returns the image compression algorithm that should be used when writing a FITS image. The image is divided into tiles, and each tile is compressed and stored in a row of at variable length binary table column.
[in] | fptr | FITS file pointer |
[in] | ctype | image compression type code; allowed values: RICE_1, GZIP_1, GZIP_2, PLIO_1, HCOMPRESS_1, BZIP2_1 |
[in,out] | status | error status |
int fits_get_dither_seed | ( | fitsfile * | fptr, |
int * | offset, | ||
int * | status | ||
) |
This routine returns the value of the dithering offset parameter that is used when compressing floating point images. The image is divided into tiles, and each tile is compressed and stored in a row of at variable length binary table column.
[in] | fptr | FITS file pointer |
[in] | offset | dithering offset parameter value |
[in,out] | status | error status |
int fits_get_hcomp_smooth | ( | fitsfile * | fptr, |
int * | smooth, | ||
int * | status | ||
) |
[in] | fptr | FITS file pointer |
[in] | smooth | Hcompress smooth parameter value |
[in,out] | status | error status |
int fits_get_noise_bits | ( | fitsfile * | fptr, |
int * | noisebits, | ||
int * | status | ||
) |
This routine returns the value of the noice_bits parameter that should be used when compressing floating point images. The image is divided into tiles, and each tile is compressed and stored in a row of at variable length binary table column.
This result is rounded to the nearest integer.
[in] | fptr | FITS file pointer |
[in] | noisebits | noise_bits parameter value (default = 4). noise bits = natural logarithm (quantize level) / natural log (2). |
[in,out] | status | error status |
int fits_get_quantize_level | ( | fitsfile * | fptr, |
float * | qlevel, | ||
int * | status | ||
) |
This routine returns the value of the noice_bits parameter that should be used when compressing floating point images. The image is divided into tiles, and each tile is compressed and stored in a row of at variable length binary table column.
[in] | fptr | FITS file pointer |
[in] | qlevel | quantize level parameter value |
[in,out] | status | error status |
int CFITS_API fits_get_section_range | ( | char ** | ptr, |
long * | secmin, | ||
long * | secmax, | ||
long * | incre, | ||
int * | status | ||
) |
Parse the input image section specification string, returning the min, max and increment values. Typical string = "1:512:2" or "1:512"
int fits_get_tile_dim | ( | fitsfile * | fptr, |
int | ndim, | ||
long * | dims, | ||
int * | status | ||
) |
This routine returns the size (dimension) of the image compression tiles that should be used when writing a FITS image. The image is divided into tiles, and each tile is compressed and stored in a row of at variable length binary table column.
[in] | fptr | FITS file pointer |
[in] | ndim | number of dimensions in the compressed image |
[in] | dims | size of image compression tile in each dimension default tile size = (NAXIS1, 1, 1, ...) |
[in,out] | status | error status |
int CFITS_API fits_get_token | ( | char ** | ptr, |
char * | delimiter, | ||
char * | token, | ||
int * | isanumber | ||
) |
parse off the next token, delimited by a character in 'delimiter', from the input ptr string; increment *ptr to the end of the token. Returns the length of the token, not including the delimiter char;
[out] | isanumber | is this token a number? |
int CFITS_API fits_get_token2 | ( | char ** | ptr, |
char * | delimiter, | ||
char ** | token, | ||
int * | isanumber, | ||
int * | status | ||
) |
parse off the next token, delimited by a character in 'delimiter', from the input ptr string; increment *ptr to the end of the token. Returns the length of the token, not including the delimiter char;
This routine allocates the *token string; the calling routine must free it
[out] | isanumber | is this token a number? |
int CFITS_API fits_hcompress | ( | int * | a, |
int | nx, | ||
int | ny, | ||
int | scale, | ||
char * | output, | ||
long * | nbytes, | ||
int * | status | ||
) |
int CFITS_API fits_hcompress64 | ( | LONGLONG * | a, |
int | nx, | ||
int | ny, | ||
int | scale, | ||
char * | output, | ||
long * | nbytes, | ||
int * | status | ||
) |
int CFITS_API fits_hdecompress | ( | unsigned char * | input, |
int | smooth, | ||
int * | a, | ||
int * | nx, | ||
int * | ny, | ||
int * | scale, | ||
int * | status | ||
) |
int CFITS_API fits_hdecompress64 | ( | unsigned char * | input, |
int | smooth, | ||
LONGLONG * | a, | ||
int * | nx, | ||
int * | ny, | ||
int * | scale, | ||
int * | status | ||
) |
This routine initializes the output table, copies all the keywords, and loops through the input image, compressing the data and writing the compressed tiles to the output table.
This is a high level routine that is called by the fpack and funpack FITS compression utilities.
[in] | infptr | pointer to image to be compressed |
[in] | outfptr | empty HDU for output compressed image |
[in,out] | status | error status |
This routine decompresses the whole image and writes it to the output file.
[in] | infptr | image (bintable) to uncompress |
[in] | outfptr | empty HDU for output uncompressed image |
[in,out] | status | error status |
This routine reads the header of the input tile compressed image and converts it to that of a standard uncompress FITS image.
[in] | infptr | image (bintable) to uncompress |
[in] | outfptr | empty HDU for output uncompressed image |
[in,out] | status | error status |
int CFITS_API fits_img_stats_float | ( | float * | array, |
long | nx, | ||
long | ny, | ||
int | nullcheck, | ||
float | nullvalue, | ||
long * | ngoodpix, | ||
float * | minvalue, | ||
float * | maxvalue, | ||
double * | mean, | ||
double * | sigma, | ||
double * | noise1, | ||
double * | noise2, | ||
double * | noise3, | ||
double * | noise5, | ||
int * | status | ||
) |
int CFITS_API fits_img_stats_int | ( | int * | array, |
long | nx, | ||
long | ny, | ||
int | nullcheck, | ||
int | nullvalue, | ||
long * | ngoodpix, | ||
int * | minvalue, | ||
int * | maxvalue, | ||
double * | mean, | ||
double * | sigma, | ||
double * | noise1, | ||
double * | noise2, | ||
double * | noise3, | ||
double * | noise5, | ||
int * | status | ||
) |
int CFITS_API fits_img_stats_short | ( | short * | array, |
long | nx, | ||
long | ny, | ||
int | nullcheck, | ||
short | nullvalue, | ||
long * | ngoodpix, | ||
short * | minvalue, | ||
short * | maxvalue, | ||
double * | mean, | ||
double * | sigma, | ||
double * | noise1, | ||
double * | noise2, | ||
double * | noise3, | ||
double * | noise5, | ||
int * | status | ||
) |
int CFITS_API fits_init_cfitsio | ( | void | ) |
initialize anything that is required before using the CFITSIO routines
Returns TRUE if the CHDU is a compressed image, else returns zero.
[in] | fptr | FITS file pointer |
[in,out] | status | error status |
int CFITS_API fits_is_reentrant | ( | void | ) |
Was CFITSIO compiled with the -D_REENTRANT flag? 1 = yes, 0 = no. Note that specifying the -D_REENTRANT flag is required, but may not be sufficient, to ensure that CFITSIO can be safely used in a multi-threaded environoment.
void CFITS_API* fits_iter_get_array | ( | iteratorCol * | col | ) |
char CFITS_API* fits_iter_get_colname | ( | iteratorCol * | col | ) |
int CFITS_API fits_iter_get_colnum | ( | iteratorCol * | col | ) |
int CFITS_API fits_iter_get_datatype | ( | iteratorCol * | col | ) |
CFITS_API fitsfile* fits_iter_get_file | ( | iteratorCol * | col | ) |
int CFITS_API fits_iter_get_iotype | ( | iteratorCol * | col | ) |
long CFITS_API fits_iter_get_repeat | ( | iteratorCol * | col | ) |
char CFITS_API* fits_iter_get_tdisp | ( | iteratorCol * | col | ) |
long CFITS_API fits_iter_get_tlmax | ( | iteratorCol * | col | ) |
long CFITS_API fits_iter_get_tlmin | ( | iteratorCol * | col | ) |
char CFITS_API* fits_iter_get_tunit | ( | iteratorCol * | col | ) |
int CFITS_API fits_iter_set_by_name | ( | iteratorCol * | col, |
fitsfile * | fptr, | ||
char * | colname, | ||
int | datatype, | ||
int | iotype | ||
) |
int CFITS_API fits_iter_set_by_num | ( | iteratorCol * | col, |
fitsfile * | fptr, | ||
int | colnum, | ||
int | datatype, | ||
int | iotype | ||
) |
int CFITS_API fits_iter_set_colname | ( | iteratorCol * | col, |
char * | colname | ||
) |
int CFITS_API fits_iter_set_colnum | ( | iteratorCol * | col, |
int | colnum | ||
) |
int CFITS_API fits_iter_set_datatype | ( | iteratorCol * | col, |
int | datatype | ||
) |
int CFITS_API fits_iter_set_file | ( | iteratorCol * | col, |
fitsfile * | fptr | ||
) |
int CFITS_API fits_iter_set_iotype | ( | iteratorCol * | col, |
int | iotype | ||
) |
int CFITS_API fits_make_hist | ( | fitsfile * | fptr, |
fitsfile * | histptr, | ||
int | bitpix, | ||
int | naxis, | ||
long * | naxes, | ||
int * | colnum, | ||
float * | amin, | ||
float * | amax, | ||
float * | binsize, | ||
float | weight, | ||
int | wtcolnum, | ||
int | recip, | ||
char * | selectrow, | ||
int * | status | ||
) |
int CFITS_API fits_pixel_filter | ( | PixelFilter * | filter, |
int * | status | ||
) |
int CFITS_API fits_rebin_wcs | ( | fitsfile * | fptr, |
int | naxis, | ||
float * | amin, | ||
float * | binsize, | ||
int * | status | ||
) |
int CFITS_API fits_select_image_section | ( | fitsfile ** | fptr, |
char * | outfile, | ||
char * | expr, | ||
int * | status | ||
) |
copies an image section from the input file to a new output file. Any HDUs preceding or following the image are also copied to the output file.
[in,out] | fptr | pointer to input image; on output it points to the new subimage |
[in] | outfile | name for output file |
[in] | expr | Image section expression |
Set the preference for various compression options, based on keywords in the input file that provide guidance about how the HDU should be compressed when written to the output file.
int fits_set_compression_type | ( | fitsfile * | fptr, |
int | ctype, | ||
int * | status | ||
) |
This routine specifies the image compression algorithm that should be used when writing a FITS image. The image is divided into tiles, and each tile is compressed and stored in a row of at variable length binary table column.
[in] | fptr | FITS file pointer |
[in] | ctype | mage compression type code; allowed values: RICE_1, GZIP_1, GZIP_2, PLIO_1, HCOMPRESS_1, BZIP2_1, and NOCOMPRESS |
[in,out] | status) | error status |
int fits_set_dither_offset | ( | fitsfile * | fptr, |
int | offset, | ||
int * | status | ||
) |
The name of this routine has changed. This is kept just for backwards compatibility with any software that calls the old name
[in] | fptr | FITS file pointer |
[in] | offset | random dithering offset value (1 to 10000) |
[in,out] | status | error status |
int fits_set_dither_seed | ( | fitsfile * | fptr, |
int | seed, | ||
int * | status | ||
) |
This routine specifies the value of the offset that should be applied when calculating the random dithering when quantizing floating point iamges. A random offset should be applied to each image to avoid quantization effects when taking the difference of 2 images, or co-adding a set of images. Without this random offset, the corresponding pixel in every image will have exactly the same dithering.
offset = 0 means use the default random dithering based on system time offset = negative means randomly chose dithering based on 1st tile checksum offset = [1 - 10000] means use that particular dithering pattern
[in] | fptr | FITS file pointer |
[in] | seed | random dithering seed value (1 to 10000) |
[in,out] | status | error status |
int fits_set_hcomp_scale | ( | fitsfile * | fptr, |
float | scale, | ||
int * | status | ||
) |
This routine specifies the value of the hcompress scale parameter.
[in] | fptr | FITS file pointer |
[in] | scale | hcompress scale parameter value (default = 0.) |
[in,out] | status | error status |
int fits_set_hcomp_smooth | ( | fitsfile * | fptr, |
int | smooth, | ||
int * | status | ||
) |
This routine specifies the value of the hcompress scale parameter.
[in] | fptr | FITS file pointer |
[in] | smooth | hcompress smooth parameter value if scale > 1 and smooth != 0, then the image will be smoothed when it is decompressed to remove some of the 'blockiness' in the image produced by the lossy compression |
[in,out] | status | error status |
int fits_set_huge_hdu | ( | fitsfile * | fptr, |
int | huge, | ||
int * | status | ||
) |
This routine specifies whether the HDU that is being compressed is so large (i.e., > 4 GB) that the 'Q' type variable length array columns should be used rather than the normal 'P' type. The allows the heap pointers to be stored as 64-bit quantities, rather than just 32-bits.
[in] | fptr | FITS file pointer |
[in] | huge | True (!= 0) or False (0) |
[in,out] | status | error status |
int fits_set_lossy_int | ( | fitsfile * | fptr, |
int | lossy_int, | ||
int * | status | ||
) |
This routine specifies whether images with integer pixel values should quantized and compressed the same way float images are compressed. The default is to not do this, and instead apply a lossless compression algorithm to integer images.
[in] | fptr | FITS file pointer |
[in] | lossy_int | True (!= 0) or False (0) |
[in,out] | status | error status |
int fits_set_noise_bits | ( | fitsfile * | fptr, |
int | noisebits, | ||
int * | status | ||
) |
THIS ROUTINE IS PROVIDED ONLY FOR BACKWARDS COMPATIBILITY; ALL NEW SOFTWARE SHOULD CALL fits_set_quantize_level INSTEAD
This routine specifies the value of the noice_bits parameter that should be used when compressing floating point images. The image is divided into tiles, and each tile is compressed and stored in a row of at variable length binary table column.
[in] | fptr | FITS file pointer |
[in] | noisebits | noise_bits parameter value (default = 4) |
[in,out] | status | error status |
int fits_set_quantize_dither | ( | fitsfile * | fptr, |
int | dither, | ||
int * | status | ||
) |
the name of this routine has changed. This is kept here only for backwards compatibility for any software that may be calling the old routine.
[in] | fptr | FITS file pointer |
[in] | dither | dither type |
[in,out] | status | error status |
int fits_set_quantize_level | ( | fitsfile * | fptr, |
float | qlevel, | ||
int * | status | ||
) |
This routine specifies the value of the quantization level, q, that should be used when compressing floating point images. The image is divided into tiles, and each tile is compressed and stored in a row of at variable length binary table column.
[in] | fptr | FITS file pointer |
[in] | qlevel | floating point quantization level |
[in,out] | status | error status |
int fits_set_quantize_method | ( | fitsfile * | fptr, |
int | method, | ||
int * | status | ||
) |
This routine specifies what type of dithering (randomization) should be performed when quantizing floating point images to integer prior to compression. A value of -1 means do no dithering. A value of 0 means use the default SUBTRACTIVE_DITHER_1 (which is equivalent to dither = 1). A value of 2 means use SUBTRACTIVE_DITHER_2.
[in] | fptr | FITS file pointer |
[in] | method | quantization method |
[in,out] | status | error status |
int fits_set_tile_dim | ( | fitsfile * | fptr, |
int | ndim, | ||
long * | dims, | ||
int * | status | ||
) |
This routine specifies the size (dimension) of the image compression tiles that should be used when writing a FITS image. The image is divided into tiles, and each tile is compressed and stored in a row of at variable length binary table column.
[in] | fptr | FITS file pointer |
[in] | ndim | number of dimensions in the compressed image |
[in] | dims | size of image compression tile in each dimension default tile size = (NAXIS1, 1, 1, ...) |
[in,out] | status | error status |
char CFITS_API* fits_split_names | ( | char * | list | ) |
A sequence of calls to fits_split_names will split the input string into name tokens. The string typically contains a list of file or column names. The names must be delimited by a comma and/or spaces. This routine ignores spaces and commas that occur within parentheses, brackets, or curly brackets. It also strips any leading and trailing blanks from the returned name.
This routine is similar to the ANSI C 'strtok' function:
The first call to fits_split_names has a non-null input string. It finds the first name in the string and terminates it by overwriting the next character of the string with a '\0' and returns a pointer to the name. Each subsequent call, indicated by a NULL value of the input string, returns the next name, searching from just past the end of the previous name. It returns NULL when no further names are found.
The following line illustrates how a string would be split into 3 names: myfile[1][bin (x,y)=4], file2.fits file3.fits ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ 1st name 2nd name 3rd name
NOTE: This routine is not thread-safe. This routine is simply provided as a utility routine for other external software. It is not used by any CFITSIO routine.
[in] | list | input list of names |
int CFITS_API fits_translate_keyword | ( | char * | inrec, |
char * | outrec, | ||
char * | patterns[][2], | ||
int | npat, | ||
int | n_value, | ||
int | n_offset, | ||
int | n_range, | ||
int * | pat_num, | ||
int * | i, | ||
int * | j, | ||
int * | m, | ||
int * | n, | ||
int * | status | ||
) |
Translate a keyword name to a new name, based on a set of patterns. The user passes an array of patterns to be matched. Input pattern number i is pattern[i][0], and output pattern number i is pattern[i][1]. Keywords are matched against the input patterns. If a match is found then the keyword is re-written according to the output pattern.
Order is important. The first match is accepted. The fastest match will be made when templates with the same first character are grouped together.
Several characters have special meanings:
i,j - single digits, preserved in output template n - column number of one or more digits, preserved in output template m - generic number of one or more digits, preserved in output template a - coordinate designator, preserved in output template # - number of one or more digits ? - any character - only allowed in first character position, to match all keywords; only useful as last pattern in the list
i, j, n, and m are returned by the routine.
For example, the input pattern "iCTYPn" will match "1CTYP5" (if n_value is 5); the output pattern "CTYPEi" will be re-written as "CTYPE1". Notice that "i" is preserved.
The following output patterns are special
Special output pattern characters:
"-" - do not copy a keyword that matches the corresponding input pattern "+" - copy the input unchanged
The inrec string could be just the 8-char keyword name, or the entire 80-char header record. Characters 9 = 80 in the input string simply get appended to the translated keyword name.
If n_range = 0, then only keywords with 'n' equal to n_value will be considered as a pattern match. If n_range = +1, then all values of 'n' greater than or equal to n_value will be a match, and if -1, then values of 'n' less than or equal to n_value will match.
This routine was written by Craig Markwardt, GSFC
[in] | inrec | input string |
[out] | outrec | output converted string, or a null string if input does not match any of the patterns |
[in] | patterns | pointer to input / output string |
[in] | npat | number of templates passed |
[in] | n_value | base 'n' template value of interest |
[in] | n_offset | offset to be applied to the 'n' |
[in] | n_range | controls range of 'n' template |
[out] | pat_num | matched pattern number (0 based) or -1 |
[out] | i | value of i, if any, else 0 |
[out] | j | value of j, if any, else 0 |
[out] | m | value of m, if any, else 0 |
[out] | n | value of n, if any, else 0 |
[in,out] | status) | /* IO - error status |
int CFITS_API fits_translate_keywords | ( | fitsfile * | infptr, |
fitsfile * | outfptr, | ||
int | firstkey, | ||
char * | patterns[][2], | ||
int | npat, | ||
int | n_value, | ||
int | n_offset, | ||
int | n_range, | ||
int * | status | ||
) |
Copy relevant keywords from the table header into the newly created primary array header. Convert names of keywords where appropriate. See fits_translate_keyword() for the definitions.
Translation begins at header record number 'firstkey', and continues to the end of the header.
This routine was written by Craig Markwardt, GSFC
[in] | infptr | pointer to input HDU |
[in] | outfptr | pointer to output HDU |
[in] | firstkey | first HDU record number to start with |
[in] | patterns | pointer to input / output keyword templates |
[in] | npat | number of templates passed |
[in] | n_value | base 'n' template value of interest |
[in] | n_offset | offset to be applied to the 'n' |
[in] | n_range | controls range of 'n' template |
[in,out] | status | error status |
Uncompress the table that was compressed with fits_compress_table