IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 25, 2004, 10:28:46 AM (22 years ago)
Author:
desonia
Message:

added the (untested) psImageReadSection function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/image/psImage.h

    r746 r777  
    99 *  @author Ross Harman, MHPCC
    1010 *
    11  *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-05-20 01:49:47 $
     11 *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-05-25 20:28:46 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    207207     *   only used if extname is NULL
    208208     */
     209    FILE* file
     210    /**< the file descriptor of the FITS file */
     211);
     212
     213/** Read an image or subimage from a FITS file specified by a filename.
     214 *
     215 *  return psImage*         NULL if an error, otherwise same as input psImage
     216 */
     217int psImageWriteSection(
     218    psImage* input,
     219    /**< the psImage to write */
     220    int col0,
     221    /**< the column index of the origin to start writing */
     222    int row0,
     223    /**< the row index of the origin to start writing */
     224    int z,
     225    /**< the z index to start writing */
     226    char* extname,
     227    /**< the image extension to write (this should match the EXTNAME keyword in
     228     *   the extension If NULL, the extnum parameter is to be used instead
     229     */
     230    int extnum,
     231    /**< the image extension to write (0=PHU, 1=first extension, etc.)  This is
     232     *   only used if extname is NULL.
     233     */
     234    char* filename
     235    /**< the filename of the FITS image file to write */
     236);
     237
     238/** Read an image or subimage from a FITS file from a file descriptor.
     239 *
     240 *  return psImage*         NULL if an error, otherwise same as input psImage
     241 */
     242int psImageFWriteSection(
     243    psImage* input,
     244    /**< the psImage to write */
     245    int col0,
     246    /**< the column index of the origin to start writing */
     247    int row0,
     248    /**< the row index of the origin to start writing */
     249    int z,
     250    /**< the z index to start writing */
     251    char* extname,
     252    /**< the image extension to write (this should match the EXTNAME keyword in
     253     *   the extension If NULL, the extnum parameter is to be used instead
     254     */
     255    int extnum,
     256    /**< the image extension to write (0=PHU, 1=first extension, etc.)  This is
     257     *   only used if extname is NULL.
     258     */
    209259    FILE* f
    210260    /**< the file descriptor of the FITS file */
    211261);
    212262
    213 /** Read an image or subimage from a FITS file specified by a filename.
    214  *
    215  *  return psImage*         NULL if an error, otherwise same as input psImage
    216  */
    217 psImage* psImageWriteSection(
    218     psImage* input,
    219     /**< the psImage to write */
    220     int col0,
    221     /**< the column index of the origin to start writing */
    222     int row0,
    223     /**< the row index of the origin to start writing */
    224     int z,
    225     /**< the z index to start writing */
    226     char* extname,
    227     /**< the image extension to write (this should match the EXTNAME keyword in
    228      *   the extension If NULL, the extnum parameter is to be used instead
    229      */
    230     int extnum,
    231     /**< the image extension to write (0=PHU, 1=first extension, etc.)  This is
    232      *   only used if extname is NULL.
    233      */
    234     char* filename
    235     /**< the filename of the FITS image file to write */
    236 );
    237 
    238 /** Read an image or subimage from a FITS file from a file descriptor.
    239  *
    240  *  return psImage*         NULL if an error, otherwise same as input psImage
    241  */
    242 psImage* psImageFWriteSection(
    243     psImage* input,
    244     /**< the psImage to write */
    245     int col0,
    246     /**< the column index of the origin to start writing */
    247     int row0,
    248     /**< the row index of the origin to start writing */
    249     int z,
    250     /**< the z index to start writing */
    251     char* extname,
    252     /**< the image extension to write (this should match the EXTNAME keyword in
    253      *   the extension If NULL, the extnum parameter is to be used instead
    254      */
    255     int extnum,
    256     /**< the image extension to write (0=PHU, 1=first extension, etc.)  This is
    257      *   only used if extname is NULL.
    258      */
    259     FILE* f
    260     /**< the file descriptor of the FITS file */
    261 );
    262 
    263263#endif
Note: See TracChangeset for help on using the changeset viewer.