cfitsio  4.0.0
About: CFITSIO is a library of C and Fortran subroutines for reading and writing data files in the FITS (Flexible Image Transport System) data format.
  Fossies Dox: cfitsio-4.0.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

fitscore.c File Reference
#include <string.h>
#include <limits.h>
#include <stdlib.h>
#include <math.h>
#include <ctype.h>
#include <errno.h>
#include <stddef.h>
#include <locale.h>
#include "fitsio2.h"
Include dependency graph for fitscore.c:

Go to the source code of this file.

Macros

#define errmsgsiz   25
 
#define ESMARKER   27 /* Escape character is used as error stack marker */
 
#define DelAll   1 /* delete all messages on the error stack */
 
#define DelMark   2 /* delete newest messages back to and including marker */
 
#define DelNewest   3 /* delete the newest message from the stack */
 
#define GetMesg   4 /* pop and return oldest message, ignoring marks */
 
#define PutMesg   5 /* add a new message to the stack */
 
#define PutMark   6 /* add a marker to the stack */
 

Functions

float ffvers (float *version)
 
int ffflnm (fitsfile *fptr, char *filename, int *status)
  More...
 
int ffflmd (fitsfile *fptr, int *filemode, int *status)
  More...
 
void ffgerr (int status, char *errtext)
  More...
 
void ffpmsg (const char *err_message)
  More...
 
void ffpmrk (void)
  More...
 
int ffgmsg (char *err_message)
  More...
 
void ffcmsg (void)
  More...
 
void ffcmrk (void)
  More...
 
void ffxmsg (int action, char *errmsg)
  More...
 
int ffpxsz (int datatype)
  More...
 
int fftkey (const char *keyword, int *status)
  More...
 
int fftrec (char *card, int *status)
  More...
 
void ffupch (char *string)
  More...
 
int ffmkky (const char *keyname, char *value, const char *comm, char *card, int *status)
  More...
 
int ffmkey (fitsfile *fptr, const char *card, int *status)
  More...
 
int ffkeyn (const char *keyroot, int value, char *keyname, int *status)
  More...
 
int ffnkey (int value, const char *keyroot, char *keyname, int *status)
  More...
 
int ffpsvc (char *card, char *value, char *comm, int *status)
  More...
 
int ffgthd (char *tmplt, char *card, int *hdtype, int *status)
  More...
 
int 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)
  More...
 
int 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)
  More...
 
int fits_copy_pixlist2image (fitsfile *infptr, fitsfile *outfptr, int firstkey, int naxis, int *colnum, int *status)
  More...
 
int fits_translate_pixkeyword (char *inrec, char *outrec, char *patterns[][2], int npat, int naxis, int *colnum, int *pat_num, int *i, int *j, int *n, int *m, int *l, int *status)
  More...
 
int ffasfm (char *tform, int *dtcode, long *twidth, int *decimals, int *status)
  More...
 
int ffbnfm (char *tform, int *dtcode, long *trepeat, long *twidth, int *status)
  More...
 
int ffbnfmll (char *tform, int *dtcode, LONGLONG *trepeat, long *twidth, int *status)
  More...
 
void ffcfmt (char *tform, char *cform)
  More...
 
void ffcdsp (char *tform, char *cform)
  More...
 
int ffgcno (fitsfile *fptr, int casesen, char *templt, int *colnum, int *status)
  More...
 
int ffgcnn (fitsfile *fptr, int casesen, char *templt, char *colname, int *colnum, int *status)
  More...
 
void ffcmps (char *templt, char *colname, int casesen, int *match, int *exact)
  More...
 
int ffgtcl (fitsfile *fptr, int colnum, int *typecode, long *repeat, long *width, int *status)
  More...
 
int ffgtclll (fitsfile *fptr, int colnum, int *typecode, LONGLONG *repeat, LONGLONG *width, int *status)
  More...
 
int ffeqty (fitsfile *fptr, int colnum, int *typecode, long *repeat, long *width, int *status)
  More...
 
int ffeqtyll (fitsfile *fptr, int colnum, int *typecode, LONGLONG *repeat, LONGLONG *width, int *status)
  More...
 
int ffgncl (fitsfile *fptr, int *ncols, int *status)
  More...
 
int ffgnrw (fitsfile *fptr, long *nrows, int *status)
  More...
 
int ffgnrwll (fitsfile *fptr, LONGLONG *nrows, int *status)
  More...
 
int ffgacl (fitsfile *fptr, int colnum, char *ttype, long *tbcol, char *tunit, char *tform, double *tscal, double *tzero, char *tnull, char *tdisp, int *status)
  More...
 
int ffgbcl (fitsfile *fptr, int colnum, char *ttype, char *tunit, char *dtype, long *repeat, double *tscal, double *tzero, long *tnull, char *tdisp, int *status)
  More...
 
int ffgbclll (fitsfile *fptr, int colnum, char *ttype, char *tunit, char *dtype, LONGLONG *repeat, double *tscal, double *tzero, LONGLONG *tnull, char *tdisp, int *status)
  More...
 
int ffghdn (fitsfile *fptr, int *chdunum)
  More...
 
int ffghadll (fitsfile *fptr, LONGLONG *headstart, LONGLONG *datastart, LONGLONG *dataend, int *status)
  More...
 
int ffghof (fitsfile *fptr, long *headstart, long *datastart, long *dataend, int *status)
  More...
 
int ffghad (fitsfile *fptr, long *headstart, long *datastart, long *dataend, int *status)
  More...
 
int ffrhdu (fitsfile *fptr, int *hdutype, int *status)
  More...
 
int ffpinit (fitsfile *fptr, int *status)
  More...
 
int ffainit (fitsfile *fptr, int *status)
  More...
 
int ffbinit (fitsfile *fptr, int *status)
  More...
 
int ffgabc (int tfields, char **tform, int space, long *rowlen, long *tbcol, int *status)
  More...
 
int ffgtbc (fitsfile *fptr, LONGLONG *totalwidth, int *status)
  More...
 
int ffgtbp (fitsfile *fptr, char *name, char *value, int *status)
  More...
 
int ffgcprll (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG firstelem, LONGLONG nelem, int writemode, double *scale, double *zero, char *tform, long *twidth, int *tcode, int *maxelem, LONGLONG *startpos, LONGLONG *elemnum, long *incre, LONGLONG *repeat, LONGLONG *rowlen, int *hdutype, LONGLONG *tnull, char *snull, int *status)
  More...
 
int fftheap (fitsfile *fptr, LONGLONG *heapsz, LONGLONG *unused, LONGLONG *overlap, int *valid, int *status)
  More...
 
int ffcmph (fitsfile *fptr, int *status)
  More...
 
int ffgdes (fitsfile *fptr, int colnum, LONGLONG rownum, long *length, long *heapaddr, int *status)
  More...
 
int ffgdesll (fitsfile *fptr, int colnum, LONGLONG rownum, LONGLONG *length, LONGLONG *heapaddr, int *status)
  More...
 
int ffgdess (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG nrows, long *length, long *heapaddr, int *status)
  More...
 
int ffgdessll (fitsfile *fptr, int colnum, LONGLONG firstrow, LONGLONG nrows, LONGLONG *length, LONGLONG *heapaddr, int *status)
  More...
 
int ffpdes (fitsfile *fptr, int colnum, LONGLONG rownum, LONGLONG length, LONGLONG heapaddr, int *status)
  More...
 
int ffchdu (fitsfile *fptr, int *status)
  More...
 
int ffuptf (fitsfile *fptr, int *status)
  More...
 
int ffrdef (fitsfile *fptr, int *status)
  More...
 
int ffhdef (fitsfile *fptr, int morekeys, int *status)
  More...
 
int ffwend (fitsfile *fptr, int *status)
  More...
 
int ffpdfl (fitsfile *fptr, int *status)
  More...
 
int ffchfl (fitsfile *fptr, int *status)
  More...
 
int ffcdfl (fitsfile *fptr, int *status)
  More...
 
int ffcrhd (fitsfile *fptr, int *status)
  More...
 
int ffdblk (fitsfile *fptr, long nblocks, int *status)
  More...
 
int ffghdt (fitsfile *fptr, int *exttype, int *status)
  More...
 
int fits_is_reentrant (void)
 
int fits_is_compressed_image (fitsfile *fptr, int *status)
  More...
 
int ffgipr (fitsfile *infptr, int maxaxis, int *bitpix, int *naxis, long *naxes, int *status)
  More...
 
int ffgiprll (fitsfile *infptr, int maxaxis, int *bitpix, int *naxis, LONGLONG *naxes, int *status)
  More...
 
int ffgidt (fitsfile *fptr, int *imgtype, int *status)
  More...
 
int ffgiet (fitsfile *fptr, int *imgtype, int *status)
  More...
 
int ffgidm (fitsfile *fptr, int *naxis, int *status)
  More...
 
int ffgisz (fitsfile *fptr, int nlen, long *naxes, int *status)
  More...
 
int ffgiszll (fitsfile *fptr, int nlen, LONGLONG *naxes, int *status)
  More...
 
int ffmahd (fitsfile *fptr, int hdunum, int *exttype, int *status)
  More...
 
int ffmrhd (fitsfile *fptr, int hdumov, int *exttype, int *status)
  More...
 
int ffmnhd (fitsfile *fptr, int exttype, char *hduname, int hduver, int *status)
  More...
 
int ffthdu (fitsfile *fptr, int *nhdu, int *status)
  More...
 
int ffgext (fitsfile *fptr, int hdunum, int *exttype, int *status)
  More...
 
int ffiblk (fitsfile *fptr, long nblock, int headdata, int *status)
  More...
 
int ffgkcl (char *tcard)
  More...
 
int ffdtyp (const char *cval, char *dtype, int *status)
  More...
 
int ffinttyp (char *cval, int *dtype, int *negative, int *status)
  More...
 
int ffc2x (const char *cval, char *dtype, long *ival, int *lval, char *sval, double *dval, int *status)
  More...
 
int ffc2xx (const char *cval, char *dtype, LONGLONG *ival, int *lval, char *sval, double *dval, int *status)
  More...
 
int ffc2uxx (const char *cval, char *dtype, ULONGLONG *ival, int *lval, char *sval, double *dval, int *status)
  More...
 
int ffc2i (const char *cval, long *ival, int *status)
  More...
 
int ffc2j (const char *cval, LONGLONG *ival, int *status)
  More...
 
int ffc2uj (const char *cval, ULONGLONG *ival, int *status)
  More...
 
int ffc2l (const char *cval, int *lval, int *status)
  More...
 
int ffc2r (const char *cval, float *fval, int *status)
  More...
 
int ffc2d (const char *cval, double *dval, int *status)
  More...
 
int ffc2ii (const char *cval, long *ival, int *status)
  More...
 
int ffc2jj (const char *cval, LONGLONG *ival, int *status)
  More...
 
int ffc2ujj (const char *cval, ULONGLONG *ival, int *status)
  More...
 
int ffc2ll (const char *cval, int *lval, int *status)
  More...
 
int ffc2s (const char *instr, char *outstr, int *status)
  More...
 
int ffc2rr (const char *cval, float *fval, int *status)
  More...
 
int ffc2dd (const char *cval, double *dval, int *status)
  More...
 
int fits_strcasecmp (const char *s1, const char *s2)
  More...
 
int fits_strncasecmp (const char *s1, const char *s2, size_t n)
  More...
 

Variables

int STREAM_DRIVER = 0
  More...
 
struct lconv * lcxxx
 

Function Documentation

◆ ffainit()

◆ ffasfm()

int ffasfm ( char *  tform,
int *  dtcode,
long *  twidth,
int *  decimals,
int *  status 
)

◆ ffbinit()

◆ ffbnfm()

int ffbnfm ( char *  tform,
int *  dtcode,
long *  trepeat,
long *  twidth,
int *  status 
)

◆ ffbnfmll()

int ffbnfmll ( char *  tform,
int *  dtcode,
LONGLONG trepeat,
long *  twidth,
int *  status 
)

◆ ffc2d()

int ffc2d ( const char *  cval,
double *  dval,
int *  status 
)

Definition at line 9368 of file fitscore.c.

References BAD_DOUBLEKEY, ffc2dd(), ffc2ll(), ffc2s(), ffdtyp(), ffpmsg(), and VALUE_UNDEFINED.

Referenced by ffgknd(), ffgkyd(), ffgkym(), and ffgkyt().

◆ ffc2dd()

int ffc2dd ( const char *  cval,
double *  dval,
int *  status 
)

Definition at line 9704 of file fitscore.c.

References BAD_C2D, dnan, ffpmsg(), and NUM_OVERFLOW.

Referenced by ffc2d(), ffc2i(), ffc2j(), ffc2uj(), ffc2uxx(), ffc2x(), ffc2xx(), ffgphd(), and ffgtbp().

◆ ffc2i()

int ffc2i ( const char *  cval,
long *  ival,
int *  status 
)

Definition at line 9087 of file fitscore.c.

References BAD_INTKEY, ffc2dd(), ffc2x(), ffpmsg(), NUM_OVERFLOW, and VALUE_UNDEFINED.

Referenced by ffgknj(), and ffgkyj().

◆ ffc2ii()

int ffc2ii ( const char *  cval,
long *  ival,
int *  status 
)

◆ ffc2j()

int ffc2j ( const char *  cval,
LONGLONG ival,
int *  status 
)

Definition at line 9148 of file fitscore.c.

References BAD_INTKEY, ffc2dd(), ffc2xx(), ffpmsg(), LONGLONG_MAX, LONGLONG_MIN, NUM_OVERFLOW, and VALUE_UNDEFINED.

Referenced by ffgknjj(), and ffgkyjj().

◆ ffc2jj()

int ffc2jj ( const char *  cval,
LONGLONG ival,
int *  status 
)

Definition at line 9448 of file fitscore.c.

References BAD_C2I, ffpmsg(), and NUM_OVERFLOW.

Referenced by ffc2xx(), ffgphd(), ffgtbp(), and ffgtknjj().

◆ ffc2l()

int ffc2l ( const char *  cval,
int *  lval,
int *  status 
)

Definition at line 9270 of file fitscore.c.

References BAD_LOGICALKEY, ffc2x(), ffpmsg(), and VALUE_UNDEFINED.

Referenced by ffgknl(), and ffgkyl().

◆ ffc2ll()

int ffc2ll ( const char *  cval,
int *  lval,
int *  status 
)

Definition at line 9548 of file fitscore.c.

Referenced by ffc2d(), ffc2r(), ffc2uxx(), ffc2x(), ffc2xx(), and ffgphd().

◆ ffc2r()

int ffc2r ( const char *  cval,
float *  fval,
int *  status 
)

Definition at line 9321 of file fitscore.c.

References BAD_FLOATKEY, ffc2ll(), ffc2rr(), ffc2s(), ffdtyp(), ffpmsg(), and VALUE_UNDEFINED.

Referenced by ffgkne(), ffgkyc(), and ffgkye().

◆ ffc2rr()

int ffc2rr ( const char *  cval,
float *  fval,
int *  status 
)

Definition at line 9628 of file fitscore.c.

References BAD_C2F, ffpmsg(), fnan, and NUM_OVERFLOW.

Referenced by ffasfm(), and ffc2r().

◆ ffc2s()

int ffc2s ( const char *  instr,
char *  outstr,
int *  status 
)

◆ ffc2uj()

int ffc2uj ( const char *  cval,
ULONGLONG ival,
int *  status 
)

Definition at line 9209 of file fitscore.c.

References BAD_INTKEY, DULONGLONG_MAX, ffc2dd(), ffc2uxx(), ffpmsg(), NUM_OVERFLOW, and VALUE_UNDEFINED.

Referenced by ffgkyujj().

◆ ffc2ujj()

int ffc2ujj ( const char *  cval,
ULONGLONG ival,
int *  status 
)

Definition at line 9496 of file fitscore.c.

References BAD_C2I, ffpmsg(), and NUM_OVERFLOW.

Referenced by ffc2uxx().

◆ ffc2uxx()

int ffc2uxx ( const char *  cval,
char *  dtype,
ULONGLONG ival,
int *  lval,
char *  sval,
double *  dval,
int *  status 
)

Definition at line 9058 of file fitscore.c.

References ffc2dd(), ffc2ll(), ffc2s(), ffc2ujj(), and ffdtyp().

Referenced by ffc2uj().

◆ ffc2x()

int ffc2x ( const char *  cval,
char *  dtype,
long *  ival,
int *  lval,
char *  sval,
double *  dval,
int *  status 
)

Definition at line 9000 of file fitscore.c.

References ffc2dd(), ffc2ii(), ffc2ll(), ffc2s(), and ffdtyp().

Referenced by ffc2i(), and ffc2l().

◆ ffc2xx()

int ffc2xx ( const char *  cval,
char *  dtype,
LONGLONG ival,
int *  lval,
char *  sval,
double *  dval,
int *  status 
)

Definition at line 9029 of file fitscore.c.

References ffc2dd(), ffc2jj(), ffc2ll(), ffc2s(), and ffdtyp().

Referenced by ffc2j().

◆ ffcdfl()

int ffcdfl ( fitsfile fptr,
int *  status 
)

ffcdfl : Check Data Unit Fill values

Check that the data unit is correctly filled with zeros or blanks from the end of the data to the end of the current FITS 2880 byte block

Function parameters: fptr Fits file pointer status output error status

Translated ftcdfl into C by Peter Wilson, Oct. 1997

Definition at line 7142 of file fitscore.c.

References ASCII_TBL, BAD_DATA_FILL, FALSE, ffgbyt(), ffmahd(), ffmbyt(), ffpmsg(), fitsfile::Fptr, and fitsfile::HDUposition.

◆ ffcdsp()

void ffcdsp ( char *  tform,
char *  cform 
)

Definition at line 3240 of file fitscore.c.

Referenced by ffgcls().

◆ ffcfmt()

void ffcfmt ( char *  tform,
char *  cform 
)

◆ ffchdu()

int ffchdu ( fitsfile fptr,
int *  status 
)

◆ ffchfl()

int ffchfl ( fitsfile fptr,
int *  status 
)

ffchfl : 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

Function parameters: fptr Fits file pointer status output error status

Translated ftchfl into C by Peter Wilson, Oct. 1997

Definition at line 7071 of file fitscore.c.

References BAD_HEADER_FILL, END_JUNK, FALSE, ffgbyt(), ffmahd(), ffmbyt(), ffpmsg(), FLEN_CARD, fitsfile::Fptr, fitsfile::HDUposition, and TRUE.

◆ ffcmph()

◆ ffcmps()

void ffcmps ( char *  templt,
char *  colname,
int  casesen,
int *  match,
int *  exact 
)

Definition at line 3440 of file fitscore.c.

References FALSE, ffupch(), FLEN_VALUE, FSTRCMP, and TRUE.

Referenced by ffgcnn(), ffgcrd(), ffgnxk(), ffhdr2str(), and ffmnhd().

◆ ffcmrk()

void ffcmrk ( void  )

◆ ffcmsg()

void ffcmsg ( void  )

Definition at line 703 of file fitscore.c.

References DelAll, and ffxmsg().

Referenced by ffcalc_rng(), ffdhdu(), ffedit_columns(), ffgclsb(), find_column(), and main().

◆ ffcrhd()

int ffcrhd ( fitsfile fptr,
int *  status 
)

◆ ffdblk()

int ffdblk ( fitsfile fptr,
long  nblocks,
int *  status 
)

Definition at line 7252 of file fitscore.c.

References ffgbyt(), ffmbyt(), ffpbyt(), ffpmsg(), fftrun(), fitsfile::Fptr, and REPORT_EOF.

Referenced by ffcmph(), ffdcol(), ffdhdu(), ffdrow(), ffmvec(), and ffrsimll().

◆ ffdtyp()

int ffdtyp ( const char *  cval,
char *  dtype,
int *  status 
)

Definition at line 8839 of file fitscore.c.

References VALUE_UNDEFINED.

Referenced by ffc2d(), ffc2r(), ffc2uxx(), ffc2x(), and ffc2xx().

◆ ffeqty()

int ffeqty ( fitsfile fptr,
int  colnum,
int *  typecode,
long *  repeat,
long *  width,
int *  status 
)

Definition at line 3697 of file fitscore.c.

References ffeqtyll().

Referenced by ffcpcl().

◆ ffeqtyll()

int ffeqtyll ( fitsfile fptr,
int  colnum,
int *  typecode,
LONGLONG repeat,
LONGLONG width,
int *  status 
)

◆ ffflmd()

int ffflmd ( fitsfile fptr,
int *  filemode,
int *  status 
)

Definition at line 204 of file fitscore.c.

References fitsfile::Fptr.

Referenced by main().

◆ ffflnm()

int ffflnm ( fitsfile fptr,
char *  filename,
int *  status 
)

Definition at line 193 of file fitscore.c.

References fitsfile::Fptr.

Referenced by fits_copy_image2cell(), and main().

◆ ffgabc()

int ffgabc ( int  tfields,
char **  tform,
int  space,
long *  rowlen,
long *  tbcol,
int *  status 
)

Definition at line 5138 of file fitscore.c.

References ffasfm().

Referenced by ffitab(), and ffphtb().

◆ ffgacl()

int ffgacl ( fitsfile fptr,
int  colnum,
char *  ttype,
long *  tbcol,
char *  tunit,
char *  tform,
double *  tscal,
double *  tzero,
char *  tnull,
char *  tdisp,
int *  status 
)

◆ ffgbcl()

int ffgbcl ( fitsfile fptr,
int  colnum,
char *  ttype,
char *  tunit,
char *  dtype,
long *  repeat,
double *  tscal,
double *  tzero,
long *  tnull,
char *  tdisp,
int *  status 
)

Definition at line 4055 of file fitscore.c.

References ffgbclll().

Referenced by main().

◆ ffgbclll()

int ffgbclll ( fitsfile fptr,
int  colnum,
char *  ttype,
char *  tunit,
char *  dtype,
LONGLONG repeat,
double *  tscal,
double *  tzero,
LONGLONG tnull,
char *  tdisp,
int *  status 
)

◆ ffgcnn()

int ffgcnn ( fitsfile fptr,
int  casesen,
char *  templt,
char *  colname,
int *  colnum,
int *  status 
)

◆ ffgcno()

int ffgcno ( fitsfile fptr,
int  casesen,
char *  templt,
int *  colnum,
int *  status 
)

◆ ffgcprll()

◆ ffgdes()

int ffgdes ( fitsfile fptr,
int  colnum,
LONGLONG  rownum,
long *  length,
long *  heapaddr,
int *  status 
)

Definition at line 6276 of file fitscore.c.

References ffgdesll(), and NUM_OVERFLOW.

Referenced by ffgcx(), ffiter(), and main().

◆ ffgdesll()

int ffgdesll ( fitsfile fptr,
int  colnum,
LONGLONG  rownum,
LONGLONG length,
LONGLONG heapaddr,
int *  status 
)

◆ ffgdess()

int ffgdess ( fitsfile fptr,
int  colnum,
LONGLONG  firstrow,
LONGLONG  nrows,
long *  length,
long *  heapaddr,
int *  status 
)

◆ ffgdessll()

int ffgdessll ( fitsfile fptr,
int  colnum,
LONGLONG  firstrow,
LONGLONG  nrows,
LONGLONG length,
LONGLONG heapaddr,
int *  status 
)

◆ ffgerr()

void ffgerr ( int  status,
char *  errtext 
)

Definition at line 215 of file fitscore.c.

Referenced by main().

◆ ffgext()

int ffgext ( fitsfile fptr,
int  hdunum,
int *  exttype,
int *  status 
)

Definition at line 8007 of file fitscore.c.

References ffmbyt(), ffrhdu(), fitsfile::Fptr, fitsfile::HDUposition, maxvalue, and REPORT_EOF.

Referenced by ffdhdu(), ffflus(), and ffmahd().

◆ ffghad()

int ffghad ( fitsfile fptr,
long *  headstart,
long *  datastart,
long *  dataend,
int *  status 
)

Definition at line 4277 of file fitscore.c.

References ffghadll(), and NUM_OVERFLOW.

◆ ffghadll()

int ffghadll ( fitsfile fptr,
LONGLONG headstart,
LONGLONG datastart,
LONGLONG dataend,
int *  status 
)

◆ ffghdn()

int ffghdn ( fitsfile fptr,
int *  chdunum 
)

Definition at line 4191 of file fitscore.c.

References fitsfile::HDUposition.

Referenced by ffcpfl(), ffextn(), ffflus(), fits_copy_image2cell(), main(), and New_GTI().

◆ ffghdt()

◆ ffghof()

int ffghof ( fitsfile fptr,
long *  headstart,
long *  datastart,
long *  dataend,
int *  status 
)

Definition at line 4240 of file fitscore.c.

References DATA_UNDEFINED, ffmahd(), ffrdef(), fitsfile::Fptr, fitsfile::HDUposition, and OFF_T.

◆ ffgidm()

◆ ffgidt()

int ffgidt ( fitsfile fptr,
int *  imgtype,
int *  status 
)

◆ ffgiet()

int ffgiet ( fitsfile fptr,
int *  imgtype,
int *  status 
)

◆ ffgipr()

int ffgipr ( fitsfile infptr,
int  maxaxis,
int *  bitpix,
int *  naxis,
long *  naxes,
int *  status 
)

Definition at line 7404 of file fitscore.c.

References fits_get_img_dim, fits_get_img_size, and fits_get_img_type.

◆ ffgiprll()

int ffgiprll ( fitsfile infptr,
int  maxaxis,
int *  bitpix,
int *  naxis,
LONGLONG naxes,
int *  status 
)

Definition at line 7433 of file fitscore.c.

References fits_get_img_dim, fits_get_img_sizell, and fits_get_img_type.

Referenced by fits_copy_image2cell().

◆ ffgisz()

int ffgisz ( fitsfile fptr,
int  nlen,
long *  naxes,
int *  status 
)

◆ ffgiszll()

int ffgiszll ( fitsfile fptr,
int  nlen,
LONGLONG naxes,
int *  status 
)

◆ ffgkcl()

◆ ffgmsg()

int ffgmsg ( char *  err_message)

Definition at line 694 of file fitscore.c.

References ffxmsg(), and GetMesg.

Referenced by main().

◆ ffgncl()

int ffgncl ( fitsfile fptr,
int *  ncols,
int *  status 
)

◆ ffgnrw()

int ffgnrw ( fitsfile fptr,
long *  nrows,
int *  status 
)

Definition at line 3927 of file fitscore.c.

References DATA_UNDEFINED, ffmahd(), ffrdef(), fitsfile::Fptr, fitsfile::HDUposition, IMAGE_HDU, and NOT_TABLE.

Referenced by ffffrw().

◆ ffgnrwll()

int ffgnrwll ( fitsfile fptr,
LONGLONG nrows,
int *  status 
)

◆ ffgtbc()

int ffgtbc ( fitsfile fptr,
LONGLONG totalwidth,
int *  status 
)

◆ ffgtbp()

◆ ffgtcl()

int ffgtcl ( fitsfile fptr,
int  colnum,
int *  typecode,
long *  repeat,
long *  width,
int *  status 
)

Definition at line 3605 of file fitscore.c.

References ffgtclll().

Referenced by ffccls(), ffcmph(), ffcpcl(), ffgcdw(), ffgrsz(), ffiter(), ffpcns(), fftheap(), ftgcvsll(), and main().

◆ ffgtclll()

int ffgtclll ( fitsfile fptr,
int  colnum,
int *  typecode,
LONGLONG repeat,
LONGLONG width,
int *  status 
)

◆ ffgthd()

int ffgthd ( char *  tmplt,
char *  card,
int *  hdtype,
int *  status 
)

Definition at line 1579 of file fitscore.c.

References BAD_KEYCHAR, FALSE, ffmkky(), fftkey(), ffupch(), FLEN_KEYWORD, FSTRCMP, FSTRNCMP, NO_QUOTE, and TRUE.

Referenced by ffpktp().

◆ ffhdef()

int ffhdef ( fitsfile fptr,
int  morekeys,
int *  status 
)

Definition at line 6853 of file fitscore.c.

References DATA_UNDEFINED, ffmahd(), ffrdef(), fitsfile::Fptr, and fitsfile::HDUposition.

Referenced by ffcopy(), and main().

◆ ffiblk()

int ffiblk ( fitsfile fptr,
long  nblock,
int  headdata,
int *  status 
)

◆ ffinttyp()

int ffinttyp ( char *  cval,
int *  dtype,
int *  negative,
int *  status 
)

Definition at line 8870 of file fitscore.c.

References BAD_INTKEY, TBYTE, TINT, TLONGLONG, TSBYTE, TSHORT, TUINT, TULONGLONG, TUSHORT, and VALUE_UNDEFINED.

◆ ffkeyn()

◆ ffmahd()

int ffmahd ( fitsfile fptr,
int  hdunum,
int *  exttype,
int *  status 
)

Definition at line 7750 of file fitscore.c.

References BAD_HDU_NUM, END_OF_FILE, ffchdu(), ffgext(), ffghdt(), ffpmsg(), ffrhdu(), FLEN_ERRMSG, fitsfile::Fptr, fitsfile::HDUposition, MEMORY_ALLOCATION, and minvalue.

Referenced by Cffdkopn(), Cffnopn(), ffainit(), ffbinit(), ffccls(), ffcdfl(), ffchdu(), ffchfl(), ffcpcl(), ffcpfl(), ffcphd(), ffcprw(), ffcrhd(), ffcrim(), ffcrimll(), ffcrtb(), ffdcol(), ffdhdu(), ffdrec(), ffdrow(), ffdrrg(), ffdrws(), ffdrwsll(), ffdtdm(), ffdtdmll(), ffeqtyll(), ffgacl(), ffgbclll(), ffgbyt(), ffgbytoff(), ffgcdw(), ffgcls(), ffgcls2(), ffgcnn(), ffgcprll(), ffgcx(), ffgcxui(), ffgcxuk(), ffgdesll(), ffgdess(), ffgdessll(), ffgextn(), ffghadll(), ffghdt(), ffghof(), ffghps(), ffghsp(), ffgidm(), ffgidt(), ffgiet(), ffgisz(), ffgiszll(), ffgncl(), ffgnky(), ffgnrw(), ffgnrwll(), ffgphd(), ffgrsz(), ffgtbb(), ffgtbc(), ffgtbp(), ffgtclll(), ffhdef(), ffhist(), ffhist2(), ffhist3(), ffibin(), ffiblk(), fficls(), ffiimgll(), ffikey(), ffirow(), ffitab(), ffldrc(), ffmaky(), ffmbyt(), ffmkey(), ffmnhd(), ffmrhd(), ffmrky(), ffmvec(), ffnchk(), ffomem(), ffopen(), ffoptplt(), ffpbyt(), ffpbytoff(), ffpcls(), ffpclx(), ffpcnb(), ffpcnd(), ffpcne(), ffpcni(), ffpcnj(), ffpcnjj(), ffpcnk(), ffpcnl(), ffpcns(), ffpcnsb(), ffpcnui(), ffpcnuj(), ffpcnujj(), ffpcnuk(), ffpdes(), ffpextn(), ffphbn(), ffphext(), ffphprll(), ffphtb(), ffpinit(), ffprec(), ffptbb(), ffptdm(), ffptdmll(), ffpthp(), ffrdef(), ffrsimll(), ffsrow(), ffthdu(), fftheap(), fits_calc_binningd(), fits_is_compressed_image(), fits_make_histd(), fits_write_compressed_img(), main(), and New_GTI().

◆ ffmkey()

int ffmkey ( fitsfile fptr,
const char *  card,
int *  status 
)

◆ ffmkky()

◆ ffmnhd()

int ffmnhd ( fitsfile fptr,
int  exttype,
char *  hduname,
int  hduver,
int *  status 
)

◆ ffmrhd()

int ffmrhd ( fitsfile fptr,
int  hdumov,
int *  exttype,
int *  status 
)

Definition at line 7831 of file fitscore.c.

References ffmahd(), and fitsfile::HDUposition.

Referenced by ffcrhd(), ffiblk(), ffoptplt(), and main().

◆ ffnkey()

int ffnkey ( int  value,
const char *  keyroot,
char *  keyname,
int *  status 
)

Definition at line 1338 of file fitscore.c.

References FLEN_VALUE.

Referenced by ffcpcl().

◆ ffpdes()

int ffpdes ( fitsfile fptr,
int  colnum,
LONGLONG  rownum,
LONGLONG  length,
LONGLONG  heapaddr,
int *  status 
)

◆ ffpdfl()

int ffpdfl ( fitsfile fptr,
int *  status 
)

◆ ffpinit()

◆ ffpmrk()

void ffpmrk ( void  )

◆ ffpmsg()

void ffpmsg ( const char *  err_message)

Definition at line 670 of file fitscore.c.

References ffxmsg(), and PutMesg.

Referenced by bz_internal_error(), Cfffiou(), Cffgiou(), Cffinit(), Cffreopen(), Cffrprt(), decode(), decode64(), dodecode(), dodecode64(), encode(), encode64(), error(), ffainit(), ffasfm(), ffbfwt(), ffbinit(), ffbinr(), ffbins(), ffbnfm(), ffbnfmll(), ffc2d(), ffc2dd(), ffc2i(), ffc2ii(), ffc2j(), ffc2jj(), ffc2l(), ffc2r(), ffc2rr(), ffc2s(), ffc2uj(), ffc2ujj(), ffcalc_rng(), ffccls(), ffcdfl(), ffchdu(), ffchfl(), ffclos(), ffcmph(), ffcpcl(), ffcprw(), ffcrow(), ffd2e(), ffd2f(), ffdblk(), ffdcol(), ffdelt(), ffdkey(), ffdrec(), ffdrow(), ffdrrg(), ffdrws(), ffdrwsll(), ffdstr(), ffdt2s(), ffdtdm(), ffdtdmll(), ffedit_columns(), fferror(), ffexts(), ffffrw(), ffflus(), fffrow(), fffrwc(), fffstri1(), fffstri2(), fffstri4(), fffstri8(), fffstrint(), fffstrr4(), fffstrr8(), fffstrs1(), fffstru2(), fffstru4(), fffstru8(), fffstruint(), fffvcl(), ffgcdw(), ffgclb(), ffgcld(), ffgcle(), ffgcli(), ffgclj(), ffgcljj(), ffgclk(), ffgcll(), ffgcls(), ffgcls2(), ffgclsb(), ffgclui(), ffgcluj(), ffgclujj(), ffgcluk(), ffgcnn(), ffgcprll(), ffgcxui(), ffgcxuk(), ffGetVariable(), ffghbn(), ffghbnll(), ffghtb(), ffghtbll(), ffgicsa(), ffgiwcs(), ffgkyc(), ffgkym(), ffgkyn(), ffgmcp(), ffgmf(), ffgmop(), ffgmrm(), ffgmtf(), ffgmul(), ffgnky(), ffgphd(), ffgsfb(), ffgsfd(), ffgsfe(), ffgsfi(), ffgsfj(), ffgsfjj(), ffgsfk(), ffgsfsb(), ffgsfui(), ffgsfuj(), ffgsfujj(), ffgsfuk(), ffgsvb(), ffgsvd(), ffgsve(), ffgsvi(), ffgsvj(), ffgsvjj(), ffgsvk(), ffgsvsb(), ffgsvui(), ffgsvuj(), ffgsvujj(), ffgsvuk(), ffgtam(), ffgtbb(), ffgtbc(), ffgtbp(), ffgtch(), ffgtcm(), ffgtcpr(), ffgtcs(), ffgtdc(), ffgtgc(), ffgtkn(), ffgtknjj(), ffgtnm(), ffgtop(), ffgtrm(), ffgttb(), ffgtvf(), ffgtwcs(), ffh2st(), ffhdr2str(), ffhist(), ffhist2(), ffhist3(), ffi2c(), ffibin(), fficls(), ffifile2(), ffiimg(), ffiimgll(), ffikfc(), ffikfm(), ffikls(), ffikyc(), ffikym(), ffimem(), ffimport_file(), ffinit(), ffiprs(), ffirow(), ffitab(), ffiter(), fflex(), ffmahd(), ffmkfc(), ffmkfm(), ffmkky(), ffmkls(), ffmkyc(), ffmkym(), ffmvec(), ffomem(), ffopen(), ffp3djj(), ffp3dujj(), ffpbyt(), ffpclb(), ffpcld(), ffpcle(), ffpcli(), ffpclj(), ffpcljj(), ffpclk(), ffpcll(), ffpcls(), ffpclsb(), ffpclu(), ffpcluc(), ffpclui(), ffpcluj(), ffpclujj(), ffpcluk(), ffpdes(), ffpdfl(), ffphbn(), ffphext(), ffphprll(), ffphtb(), ffpinit(), ffpkfc(), ffpkfm(), ffpktp(), ffpky(), ffpkyc(), ffpkym(), ffpkyt(), ffppnjj(), ffppnujj(), ffpprjj(), ffpprn(), ffppru(), ffpprujj(), ffpssjj(), ffpssujj(), ffpsvc(), ffptbb(), ffptdm(), ffptdmll(), ffr2e(), ffr2f(), ffread(), ffrhdu(), ffrsimll(), ffrwrg(), ffrwrgll(), ffs2dt(), ffs2tm(), ffselect_table(), ffshft(), ffsrow(), ffstmo(), fftheap(), fftkey(), fftkyn(), fftm2s(), fftrec(), ffu2c(), ffupck(), ffuptf(), ffvcfm(), ffverifydate(), ffwend(), ffwrite(), file_compress_open(), file_create(), file_open(), find_column(), find_keywd(), fits_already_open(), fits_calc_binningd(), fits_clean_url(), fits_compress_table(), fits_copy_cell2image(), fits_copy_image2cell(), fits_copy_image_section(), fits_decomp_img(), fits_encode_url(), fits_get_compression_type(), fits_get_cwd(), fits_get_section_range(), fits_get_tile_dim(), fits_get_token2(), fits_get_url(), fits_img_compress(), fits_img_decompress_header(), fits_init_cfitsio(), fits_init_randoms(), fits_int_to_longlong_inplace(), fits_make_histd(), fits_path2url(), fits_pixel_filter(), fits_rcomp(), fits_rcomp_byte(), fits_rcomp_short(), fits_rdecomp(), fits_rdecomp_byte(), fits_rdecomp_short(), fits_read_ascii_region(), fits_read_compressed_img(), fits_read_compressed_pixels(), fits_read_fits_region(), fits_read_write_compressed_img(), fits_register_driver(), fits_relurl2url(), fits_sbyte_to_int_inplace(), fits_select_image_section(), fits_set_compression_pref(), fits_set_compression_type(), fits_set_dither_seed(), fits_set_noise_bits(), fits_set_quantize_method(), fits_set_tile_dim(), fits_short_to_int_inplace(), fits_shuffle_4bytes(), fits_ubyte_to_int_inplace(), fits_uncompress_table(), fits_url2relurl(), fits_ushort_to_int_inplace(), fits_write_compressed_img(), fits_write_compressed_pixels(), fitsio_init_lock(), getirafpixname(), hinv(), hinv64(), htrans(), htrans64(), imcomp_compress_image(), imcomp_compress_tile(), imcomp_convert_tile_tbyte(), imcomp_convert_tile_tdouble(), imcomp_convert_tile_tfloat(), imcomp_convert_tile_tint(), imcomp_convert_tile_tsbyte(), imcomp_convert_tile_tshort(), imcomp_convert_tile_tuint(), imcomp_convert_tile_tushort(), imcomp_decompress_tile(), imcomp_get_compressed_image_par(), imcomp_init_table(), imcomp_write_nocompress_tile(), iraf2str(), irafgetc(), irafrdhead(), irafrdimage(), iraftofits(), load_column(), mem_close_comp(), mem_compress_open(), mem_compress_stdin_open(), mem_create(), mem_create_comp(), mem_createmem(), mem_iraf_open(), mem_rawfile_open(), mem_truncate(), mem_write(), parse_data(), pixel_filter_helper(), qtree_decode(), qtree_decode64(), qtree_encode(), qtree_encode64(), same_path(), set_image_col_types(), Setup_DataArrays(), standardize_path(), stdin2file(), stdin2mem(), stdin_open(), stdout_close(), uncompress_hkdata(), and yyGetVariable().

◆ ffpsvc()

int ffpsvc ( char *  card,
char *  value,
char *  comm,
int *  status 
)

◆ ffpxsz()

int ffpxsz ( int  datatype)

Definition at line 866 of file fitscore.c.

References TBYTE, TDOUBLE, TFLOAT, TINT, TLOGICAL, TLONG, TSHORT, TUINT, TULONG, and TUSHORT.

Referenced by fits_read_compressed_pixels(), and fits_write_compressed_pixels().

◆ ffrdef()

◆ ffrhdu()

int ffrhdu ( fitsfile fptr,
int *  hdutype,
int *  status 
)

◆ ffthdu()

int ffthdu ( fitsfile fptr,
int *  nhdu,
int *  status 
)

Definition at line 7976 of file fitscore.c.

References DATA_UNDEFINED, ffmahd(), fitsfile::Fptr, and fitsfile::HDUposition.

Referenced by main().

◆ fftheap()

int fftheap ( fitsfile fptr,
LONGLONG heapsz,
LONGLONG unused,
LONGLONG overlap,
int *  valid,
int *  status 
)

◆ fftkey()

int fftkey ( const char *  keyword,
int *  status 
)

Definition at line 895 of file fitscore.c.

References BAD_KEYCHAR, ffpmsg(), and FLEN_ERRMSG.

Referenced by ffgthd(), ffikey(), ffikls(), ffmkey(), ffmkky(), ffmkls(), ffpkls(), and ffprec().

◆ fftrec()

int fftrec ( char *  card,
int *  status 
)

Definition at line 965 of file fitscore.c.

References BAD_KEYCHAR, ffpmsg(), and FLEN_ERRMSG.

Referenced by ffgkyn(), and ffgphd().

◆ ffupch()

void ffupch ( char *  string)

Definition at line 1016 of file fitscore.c.

Referenced by ffasfm(), ffbnfm(), ffbnfmll(), ffcmps(), ffexts(), ffgkcl(), ffgthd(), fficls(), ffphbn(), ffphtb(), and New_GTI().

◆ ffuptf()

int ffuptf ( fitsfile fptr,
int *  status 
)

◆ ffwend()

int ffwend ( fitsfile fptr,
int *  status 
)

◆ ffxmsg()

void ffxmsg ( int  action,
char *  errmsg 
)

◆ fits_copy_pixlist2image()

int fits_copy_pixlist2image ( fitsfile infptr,
fitsfile outfptr,
int  firstkey,
int  naxis,
int *  colnum,
int *  status 
)

Definition at line 2232 of file fitscore.c.

References ffghsp(), ffgrec(), ffprec(), fits_translate_pixkeyword(), and FLEN_CARD.

Referenced by ffgtcs(), ffhist2(), and ffhist3().

◆ fits_is_compressed_image()

int fits_is_compressed_image ( fitsfile fptr,
int *  status 
)

Definition at line 7376 of file fitscore.c.

References DATA_UNDEFINED, ffmahd(), ffrdef(), fitsfile::Fptr, and fitsfile::HDUposition.

Referenced by ffcnvthdr2str(), ffg3db(), ffg3dd(), ffg3de(), ffg3di(), ffg3dj(), ffg3djj(), ffg3dk(), ffg3dsb(), ffg3dui(), ffg3duj(), ffg3dujj(), ffg3duk(), ffgpfb(), ffgpfd(), ffgpfe(), ffgpfi(), ffgpfj(), ffgpfjj(), ffgpfk(), ffgpfsb(), ffgpfui(), ffgpfuj(), ffgpfujj(), ffgpfuk(), ffgpvb(), ffgpvd(), ffgpve(), ffgpvi(), ffgpvj(), ffgpvjj(), ffgpvk(), ffgpvsb(), ffgpvui(), ffgpvuj(), ffgpvujj(), ffgpvuk(), ffgpxfll(), ffgpxvll(), ffgsfb(), ffgsfd(), ffgsfe(), ffgsfi(), ffgsfj(), ffgsfjj(), ffgsfk(), ffgsfsb(), ffgsfui(), ffgsfuj(), ffgsfujj(), ffgsfuk(), ffgsv(), ffgsvb(), ffgsvd(), ffgsve(), ffgsvi(), ffgsvj(), ffgsvjj(), ffgsvk(), ffgsvsb(), ffgsvui(), ffgsvuj(), ffgsvujj(), ffgsvuk(), ffmnhd(), ffp3db(), ffp3dd(), ffp3de(), ffp3di(), ffp3dj(), ffp3djj(), ffp3dk(), ffp3dsb(), ffp3dui(), ffp3duj(), ffp3dujj(), ffp3duk(), ffpnul(), ffppnb(), ffppnd(), ffppne(), ffppni(), ffppnj(), ffppnjj(), ffppnk(), ffppnsb(), ffppnui(), ffppnuj(), ffppnujj(), ffppnuk(), ffpprb(), ffpprd(), ffppre(), ffppri(), ffpprj(), ffpprjj(), ffpprk(), ffpprn(), ffpprsb(), ffppru(), ffpprui(), ffppruj(), ffpprujj(), ffppruk(), ffpscl(), ffpssb(), ffpssd(), ffpsse(), ffpssi(), ffpssj(), ffpssjj(), ffpssk(), ffpsssb(), ffpssui(), ffpssuj(), ffpssujj(), ffpssuk(), fits_decomp_img(), fits_img_decompress_header(), fits_read_compressed_img(), fits_read_write_compressed_img(), fits_write_compressed_img(), fp_info_hdu(), fp_pack_hdu(), fp_test(), fp_unpack_hdu(), and main().

◆ fits_strcasecmp()

◆ fits_strncasecmp()

int fits_strncasecmp ( const char *  s1,
const char *  s2,
size_t  n 
)

◆ fits_translate_keyword()

int 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 
)

Definition at line 1891 of file fitscore.c.

References NULL_INPUT_PTR.

Referenced by fits_translate_keywords().

◆ fits_translate_keywords()

int 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 
)

◆ fits_translate_pixkeyword()

int fits_translate_pixkeyword ( char *  inrec,
char *  outrec,
char *  patterns[][2],
int  npat,
int  naxis,
int *  colnum,
int *  pat_num,
int *  i,
int *  j,
int *  n,
int *  m,
int *  l,
int *  status 
)

Definition at line 2390 of file fitscore.c.

References NULL_INPUT_PTR.

Referenced by fits_copy_pixlist2image().