cfitsio  3390
Functions
putkey.c File Reference
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <time.h>
#include <stddef.h>
#include "fitsio2.h"
Include dependency graph for putkey.c:

Functions

int ffcrim (fitsfile *fptr, int bitpix, int naxis, long *naxes, int *status)
 
int ffcrimll (fitsfile *fptr, int bitpix, int naxis, LONGLONG *naxes, int *status)
 
int ffcrtb (fitsfile *fptr, int tbltype, LONGLONG naxis2, int tfields, char **ttype, char **tform, char **tunit, const char *extnm, int *status)
 
int ffpktp (fitsfile *fptr, const char *filename, int *status)
 
int ffpky (fitsfile *fptr, int datatype, const char *keyname, void *value, const char *comm, int *status)
 
int ffprec (fitsfile *fptr, const char *card, int *status)
 
int ffpkyu (fitsfile *fptr, const char *keyname, const char *comm, int *status)
 
int ffpkys (fitsfile *fptr, const char *keyname, const char *value, const char *comm, int *status)
 
int ffpkls (fitsfile *fptr, const char *keyname, const char *value, const char *comm, int *status)
 
int ffplsw (fitsfile *fptr, int *status)
 
int ffpkyl (fitsfile *fptr, const char *keyname, int value, const char *comm, int *status)
 
int ffpkyj (fitsfile *fptr, const char *keyname, LONGLONG value, const char *comm, int *status)
 
int ffpkyf (fitsfile *fptr, const char *keyname, float value, int decim, const char *comm, int *status)
 
int ffpkye (fitsfile *fptr, const char *keyname, float value, int decim, const char *comm, int *status)
 
int ffpkyg (fitsfile *fptr, const char *keyname, double value, int decim, const char *comm, int *status)
 
int ffpkyd (fitsfile *fptr, const char *keyname, double value, int decim, const char *comm, int *status)
 
int ffpkyc (fitsfile *fptr, const char *keyname, float *value, int decim, const char *comm, int *status)
 
int ffpkym (fitsfile *fptr, const char *keyname, double *value, int decim, const char *comm, int *status)
 
int ffpkfc (fitsfile *fptr, const char *keyname, float *value, int decim, const char *comm, int *status)
 
int ffpkfm (fitsfile *fptr, const char *keyname, double *value, int decim, const char *comm, int *status)
 
int ffpkyt (fitsfile *fptr, const char *keyname, long intval, double fraction, const char *comm, int *status)
 
int ffpcom (fitsfile *fptr, const char *comm, int *status)
 
int ffphis (fitsfile *fptr, const char *history, int *status)
 
int ffpdat (fitsfile *fptr, int *status)
 
int ffverifydate (int year, int month, int day, int *status)
 
int ffgstm (char *timestr, int *timeref, int *status)
 
int ffdt2s (int year, int month, int day, char *datestr, int *status)
 
int ffs2dt (char *datestr, int *year, int *month, int *day, int *status)
 
int fftm2s (int year, int month, int day, int hour, int minute, double second, int decimals, char *datestr, int *status)
 
int ffs2tm (char *datestr, int *year, int *month, int *day, int *hour, int *minute, double *second, int *status)
 
int ffgsdt (int *day, int *month, int *year, int *status)
 
int ffpkns (fitsfile *fptr, const char *keyroot, int nstart, int nkey, char *value[], char *comm[], int *status)
 
int ffpknl (fitsfile *fptr, const char *keyroot, int nstart, int nkey, int *value, char *comm[], int *status)
 
int ffpknj (fitsfile *fptr, const char *keyroot, int nstart, int nkey, long *value, char *comm[], int *status)
 
int ffpknjj (fitsfile *fptr, const char *keyroot, int nstart, int nkey, LONGLONG *value, char *comm[], int *status)
 
int ffpknf (fitsfile *fptr, const char *keyroot, int nstart, int nkey, float *value, int decim, char *comm[], int *status)
 
int ffpkne (fitsfile *fptr, const char *keyroot, int nstart, int nkey, float *value, int decim, char *comm[], int *status)
 
int ffpkng (fitsfile *fptr, const char *keyroot, int nstart, int nkey, double *value, int decim, char *comm[], int *status)
 
int ffpknd (fitsfile *fptr, const char *keyroot, int nstart, int nkey, double *value, int decim, char *comm[], int *status)
 
int ffptdm (fitsfile *fptr, int colnum, int naxis, long naxes[], int *status)
 
int ffptdmll (fitsfile *fptr, int colnum, int naxis, LONGLONG naxes[], int *status)
 
int ffphps (fitsfile *fptr, int bitpix, int naxis, long naxes[], int *status)
 
int ffphpsll (fitsfile *fptr, int bitpix, int naxis, LONGLONG naxes[], int *status)
 
int ffphpr (fitsfile *fptr, int simple, int bitpix, int naxis, long naxes[], LONGLONG pcount, LONGLONG gcount, int extend, int *status)
 
int ffphprll (fitsfile *fptr, int simple, int bitpix, int naxis, LONGLONG naxes[], LONGLONG pcount, LONGLONG gcount, int extend, int *status)
 
int ffphtb (fitsfile *fptr, LONGLONG naxis1, LONGLONG naxis2, int tfields, char **ttype, long *tbcol, char **tform, char **tunit, const char *extnmx, int *status)
 
int ffphbn (fitsfile *fptr, LONGLONG naxis2, int tfields, char **ttype, char **tform, char **tunit, const char *extnmx, LONGLONG pcount, int *status)
 
int ffphext (fitsfile *fptr, const char *xtensionx, int bitpix, int naxis, long naxes[], LONGLONG pcount, LONGLONG gcount, int *status)
 
int ffi2c (LONGLONG ival, char *cval, int *status)
 
int ffl2c (int lval, char *cval, int *status)
 
int ffs2c (const char *instr, char *outstr, int *status)
 
int ffr2f (float fval, int decim, char *cval, int *status)
 
int ffr2e (float fval, int decim, char *cval, int *status)
 
int ffd2f (double dval, int decim, char *cval, int *status)
 
int ffd2e (double dval, int decim, char *cval, int *status)
 

Function Documentation

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.

Parameters
[in]fptrFITS file pointer
[in]bitpixbits per pixel
[in]naxisnumber of axes in the array
[in]naxessize of each axis
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

int ffcrimll ( fitsfile fptr,
int  bitpix,
int  naxis,
LONGLONG 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.

Parameters
[in]fptrFITS file pointer
[in]bitpixbits per pixel
[in]naxisnumber of axes in the array
[in]naxessize of each axis
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters
[in]fptrFITS file pointer
[in]tbltypetype of table to create
[in]naxis2number of rows in the table
[in]tfieldsnumber of columns in the table
[in]ttypename of each column
[in]tformvalue of TFORMn keyword for each column
[in]tunitvalue of TUNITn keyword for each column
[in]extnmvalue of EXTNAME keyword, if any
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

int ffd2e ( double  dval,
int  decim,
char *  cval,
int *  status 
)

convert double value to a null-terminated exponential format string.

Parameters
[in]dvalvalue to be converted to a string
[in]decimnumber of decimal places to display
[in]cvalcharacter string representation of the value
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

int ffd2f ( double  dval,
int  decim,
char *  cval,
int *  status 
)

convert double value to a null-terminated F format string

Parameters
[in]dvalvalue to be converted to a string
[in]decimnumber of decimal places to display
[in,out]cvalcharacter string representation of the value
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

int ffdt2s ( int  year,
int  month,
int  day,
char *  datestr,
int *  status 
)

Construct a date character string

Parameters
[in]yearyear (0 - 9999)
[in]monthmonth (1 - 12)
[in]dayday (1 - 31)
[in,out]datestrdate string: "YYYY-MM-DD"
[in,out]statuserror status

Here is the call graph for this function:

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.

Parameters
[in]dayDay of the month
[in]monthNumerical month (1=Jan, etc.)
[in]yearYear (1999, 2000, etc.)
[in,out]statuserror status
int ffgstm ( char *  timestr,
int *  timeref,
int *  status 
)

Returns the current date and time in format 'yyyy-mm-ddThh:mm:ss'.

Parameters
[in,out]timestrreturned system date and time string
[in,out]timerefGMT = 0, Local time = 1
[in,out]statuserror status

Here is the caller graph for this function:

int ffi2c ( LONGLONG  ival,
char *  cval,
int *  status 
)

convert value to a null-terminated formatted string.

Parameters
[in]ivalvalue to be converted to a string
[in,out]cvalcharacter string representation of the value
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

int ffl2c ( int  lval,
char *  cval,
int *  status 
)

convert logical value to a null-terminated formatted string. If the input value == 0, then the output character is the letter F, else the output character is the letter T. The output string is null terminated.

Parameters
[in]lvalvalue to be converted to a string
[in,out]cvalcharacter string representation of the value
[in,out]statuserror status

Here is the caller graph for this function:

int ffpcom ( fitsfile fptr,
const char *  comm,
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.

Parameters
[in]fptrFITS file pointer
[in]commcomment string
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters
[in]fptrFITS file pointer
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

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:

Parameters
[in]fptrFITS file pointer
[in]naxis2number of rows in the table
[in]tfieldsnumber of columns in the table
[in]ttypename of each column
[in]tformvalue of TFORMn keyword for each column
[in]tunitvalue of TUNITn keyword for each column
[in]extnmxvalue of EXTNAME keyword, if any
[in]pcountsize of the variable length heap area
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

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:

Parameters
[in]fptrFITS file pointer
[in]xtensionxvalue for the XTENSION keyword
[in]bitpixvalue for the BIXPIX keyword
[in]naxisvalue for the NAXIS keyword
[in]naxesvalue for the NAXISn keywords
[in]pcountvalue for the PCOUNT keyword
[in]gcountvalue for the GCOUNT keyword
[in,out]statuserror status

Here is the call graph for this function:

int ffphis ( fitsfile fptr,
const char *  history,
int *  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.

Parameters
[in]fptrFITS file pointer
[in]historyhistory string
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

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

Parameters
[in]fptrFITS file pointer
[in]simpledoes file conform to FITS standard? 1/0
[in]bitpixnumber of bits per data value pixel
[in]naxisnumber of axes in the data array
[in]naxeslength of each data axis
[in]pcountnumber of group parameters (usually 0)
[in]gcountnumber of random groups (usually 1 or 0)
[in]extendmay FITS file have extensions?
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

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

Parameters
[in]fptrFITS file pointer
[in]simpledoes file conform to FITS standard? 1/0
[in]bitpixnumber of bits per data value pixel
[in]naxisnumber of axes in the data array
[in]naxeslength of each data axis
[in]pcountnumber of group parameters (usually 0)
[in]gcountnumber of random groups (usually 1 or 0
[in]extendmay FITS file have extensions?
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

int ffphps ( fitsfile fptr,
int  bitpix,
int  naxis,
long  naxes[],
int *  status 
)

write STANDARD set of required primary header keywords

Parameters
[in]fptrFITS file pointer
[in]bitpixnumber of bits per data value pixel
[in]naxisnumber of axes in the data array
[in]naxeslength of each data axis
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

int ffphpsll ( fitsfile fptr,
int  bitpix,
int  naxis,
LONGLONG  naxes[],
int *  status 
)

write STANDARD set of required primary header keywords

Parameters
[in]fptrFITS file pointer
[in]bitpixnumber of bits per data value pixel
[in]naxisnumber of axes in the data array
[in]naxeslength of each data axis
[in,out]statuserror status

Here is the call graph for this function:

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:

Parameters
[in]fptrFITS file pointer
[in]naxis1width of row in the table
[in]naxis2number of rows in the table
[in]tfieldsnumber of columns in the table
[in]ttypename of each column
[in]tbcolbyte offset in row to each column
[in]tformvalue of TFORMn keyword for each column
[in]tunitvalue of TUNITn keyword for each column
[in]extnmxvalue of EXTNAME keyword, if any
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

int ffpkfc ( fitsfile fptr,
const char *  keyname,
float *  value,
int  decim,
const char *  comm,
int *  status 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int ffpkfm ( fitsfile fptr,
const char *  keyname,
double *  value,
int  decim,
const char *  comm,
int *  status 
)

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters
[in]fptrFITS file pointer
[in]keynamename of keyword to write
[in]valuekeyword value
[in]commkeyword comment
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters
[in]fptrFITS file pointer
[in]keyrootroot name of keywords to write
[in]nstartstarting index number
[in]nkeynumber of keywords to write
[in]valuearray of keyword values
[in]decimnumber of decimals to display
[in]commarray of pointers to keyword comment
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters
[in]fptrFITS file pointer
[in]keyrootroot name of keywords to write
[in]nstartstarting index number
[in]nkeynumber of keywords to write
[in]valuearray of keyword values
[in]decimnumber of decimals to display
[in]commarray of pointers to keyword comment
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters
[in]fptrFITS file pointer
[in]keyrootroot name of keywords to write
[in]nstartstarting index number
[in]nkeynumber of keywords to write
[in]valuearray of keyword values
[in]decimnumber of decimals to display
[in]commarray of pointers to keyword comment
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters
[in]fptrFITS file pointer
[in]keyrootroot name of keywords to write
[in]nstartstarting index number
[in]nkeynumber of keywords to write
[in]valuearray of keyword values
[in]decimnumber of decimals to display
[in]commarray of pointers to keyword comment
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

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

Parameters
[in]fptrFITS file pointer
[in]keyrootroot name of keywords to write
[in]nstartstarting index number
[in]nkeynumber of keywords to write
[in]valuearray of keyword values
[in]commarray of pointers to keyword comment
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

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

Parameters
[in]fptrFITS file pointer
[in]keyrootroot name of keywords to write
[in]nstartstarting index number
[in]nkeynumber of keywords to write
[in]valuearray of keyword values
[in]commarray of pointers to keyword comment
[in,out]statuserror status

Here is the call graph for this function:

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.

Parameters
[in]fptrFITS file pointer
[in]keyrootroot name of keywords to write
[in]nstartstarting index number
[in]nkeynumber of keywords to write
[in]valuearray of keyword values
[in]commarray of pointers to keyword comment
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters
[in]fptrFITS file pointer
[in]keyrootroot name of keywords to write
[in]nstartstarting index number
[in]nkeynumber of keywords to write
[in]valuearray of pointers to keyword values
[in]commarray of pointers to keyword comment
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

int ffpktp ( fitsfile fptr,
const char *  filename,
int *  status 
)

read keywords from template file and append to the FITS file

Parameters
[in]fptrFITS file pointer
[in]filenamename of template file
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters
[in]fptrFITS file pointer
[in]datatypedatatype of the value
[in]keynamename of keyword to write
[in]valuekeyword value
[in]commkeyword comment
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

int ffpkyc ( fitsfile fptr,
const char *  keyname,
float *  value,
int  decim,
const char *  comm,
int *  status 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int ffpkyd ( fitsfile fptr,
const char *  keyname,
double  value,
int  decim,
const char *  comm,
int *  status 
)

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters
[in]fptrFITS file pointer
[in]keynamename of keyword to write
[in]valuekeyword value
[in]decimnumber of decimal places to display
[in]commkeyword comment
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters
[in]fptrFITS file pointer
[in]keynamename of keyword to write
[in]valuekeyword value
[in]decimnumber of decimal places to display
[in]commkeyword comment
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters
[in]fptrFITS file pointer
[in]keynamename of keyword to write
[in]valuekeyword value
[in]commkeyword comment
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

int ffpkyl ( fitsfile fptr,
const char *  keyname,
int  value,
const char *  comm,
int *  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.

Parameters
[in]fptrFITS file pointer
[in]keynamename of keyword to write
[in]valuekeyword value
[in]commkeyword comment
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

int ffpkym ( fitsfile fptr,
const char *  keyname,
double *  value,
int  decim,
const char *  comm,
int *  status 
)

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters
[in]fptrFITS file pointer
[in]keynamename of keyword to write
[in]valuekeyword value
[in]commkeyword comment
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters
[in]fptrFITS file pointer
[in]keynamename of keyword to write
[in]intvalinteger part of value
[in]fractionfractional part of value
[in]commkeyword comment
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

int ffpkyu ( fitsfile fptr,
const char *  keyname,
const char *  comm,
int *  status 
)

Write (put) a null-valued keyword and comment into the FITS header.

Parameters
[in]fptrFITS file pointer
[in]keynamename of keyword to write
[in]commkeyword comment
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters
[in]fptrFITS file pointer
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

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

write a keyword record (80 bytes long) to the end of the header

Parameters
[in]fptrFITS file pointer
[in]cardstring to be written
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

int ffptdm ( fitsfile fptr,
int  colnum,
int  naxis,
long  naxes[],
int *  status 
)

write the TDIMnnn keyword describing the dimensionality of a column

Parameters
[in]fptrFITS file pointer
[in]colnumcolumn number
[in]naxisnumber of axes in the data array
[in]naxeslength of each data axis
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

int ffptdmll ( fitsfile fptr,
int  colnum,
int  naxis,
LONGLONG  naxes[],
int *  status 
)

write the TDIMnnn keyword describing the dimensionality of a column

Parameters
[in]fptrFITS file pointer
[in]colnumcolumn number
[in]naxisnumber of axes in the data array
[in]naxeslength of each data axis
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

int ffr2e ( float  fval,
int  decim,
char *  cval,
int *  status 
)

convert float value to a null-terminated exponential format string

Parameters
[in]fvalvalue to be converted to a string
[in]decimnumber of decimal places to display
[in,out]cvalcharacter string representation of the value
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

int ffr2f ( float  fval,
int  decim,
char *  cval,
int *  status 
)

convert float value to a null-terminated F format string

Parameters
[in]fvalvalue to be converted to a string
[in]decimnumber of decimal places to display
[in,out]cvalcharacter string representation of the value
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

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

convert an input string to a quoted string. Leading spaces are significant. FITS string keyword values must be at least 8 chars long so pad out string with spaces if necessary. Example: km/s ==> 'km/s ' Single quote characters in the input string will be replace by two single quote characters. e.g., o'brian ==> 'o''brian'

Parameters
[in]instrnull terminated input string
[in,out]outstrnull terminated quoted output string
[in,out]statuserror status

Here is the caller graph for this function:

int ffs2dt ( char *  datestr,
int *  year,
int *  month,
int *  day,
int *  status 
)

Parse a date character string into year, month, and day values

Parameters
[in]datestrdate string: "YYYY-MM-DD" or "dd/mm/yy"
[in,out]yearyear (0 - 9999)
[in,out]monthmonth (1 - 12)
[in,out]dayday (1 - 31)
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function:

int ffs2tm ( char *  datestr,
int *  year,
int *  month,
int *  day,
int *  hour,
int *  minute,
double *  second,
int *  status 
)

Here is the call graph for this function:

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

Parameters
[in]yearyear (0 - 9999)
[in]monthmonth (1 - 12)
[in]dayday (1 - 31)
[in]hourhour (0 - 23)
[in]minuteminute (0 - 59)
[in]secondsecond (0. - 60.9999999)
[in]decimalsnumber of decimal points to write
[in,out]datestrdate string: "YYYY-MM-DDThh:mm:ss.ddd" or "hh:mm:ss.ddd" if year, month day = 0
[in,out]statuserror status

Here is the call graph for this function:

int ffverifydate ( int  year,
int  month,
int  day,
int *  status 
)

Verify that the date is valid

Parameters
[in]yearyear (0 - 9999)
[in]monthmonth (1 - 12)
[in]dayday (1 - 31)
[in,out]statuserror status

Here is the call graph for this function:

Here is the caller graph for this function: