Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

Image File I/O Functions
[Image Container]


Files

file  psImageIO.h
 Contains image input/output routines.

Functions

psImagepsImageReadSection (psImage *output, psS32 col0, psS32 row0, psS32 numCols, psS32 numRows, psS32 z, char *extname, psS32 extnum, char *filename)
 Read an image or subimage from a FITS file specified by a filename.
psBool psImageWriteSection (psImage *input, psS32 col0, psS32 row0, psS32 z, char *extname, psS32 extnum, char *filename)
 Read an image or subimage from a FITS file specified by a filename.


Function Documentation

psImage* psImageReadSection psImage output,
psS32  col0,
psS32  row0,
psS32  numCols,
psS32  numRows,
psS32  z,
char *  extname,
psS32  extnum,
char *  filename
 

Read an image or subimage from a FITS file specified by a filename.

return psImage* The image read from the specified file. NULL signifies that a problem had occured.

Parameters:
output  the output psImage to recycle, or NULL if new psImage desired
col0  the column index of the origin to start reading
row0  the row index of the origin to start reading
numCols  the number of desired columns to read
numRows  the number of desired rows to read
z  the z index to read if file is organized as a 3D image cube.
extname  the image extension to read (this should match the EXTNAME keyword in the extension If NULL, the extnum parameter is to be used instead
extnum  the image extension to read (0=PHU, 1=first extension, etc.) This is only used if extname is NULL
filename  the filename of the FITS image file to read

psBool psImageWriteSection psImage input,
psS32  col0,
psS32  row0,
psS32  z,
char *  extname,
psS32  extnum,
char *  filename
 

Read an image or subimage from a FITS file specified by a filename.

return psBool TRUE is successful, otherwise FALSE.

Parameters:
input  the psImage to write
col0  the column index of the origin to start writing
row0  the row index of the origin to start writing
z  the z index to start writing
extname  the image extension to write (this should match the EXTNAME keyword in the extension If NULL, the extnum parameter is to be used instead
extnum  the image extension to write (0=PHU, 1=first extension, etc.) This is only used if extname is NULL.
filename  the filename of the FITS image file to write


Generated on Mon Apr 4 18:24:47 2005 for Pan-STARRS Foundation Library by  doxygen 1.3.9.1