Changeset 3176 for trunk/doc/pslib/psLibSDRS.tex
- Timestamp:
- Feb 9, 2005, 3:26:56 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/doc/pslib/psLibSDRS.tex (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/pslib/psLibSDRS.tex
r3174 r3176 1 %%% $Id: psLibSDRS.tex,v 1.17 8 2005-02-09 22:00:38 price Exp $1 %%% $Id: psLibSDRS.tex,v 1.179 2005-02-10 01:26:56 eugene Exp $ 2 2 \documentclass[panstarrs,spec]{panstarrs} 3 3 … … 11 11 \project{Pan-STARRS Image Processing Pipeline} 12 12 \organization{Institute for Astronomy} 13 \version{1 1}13 \version{12} 14 14 \docnumber{PSDC-430-007} 15 15 … … 40 40 08 & 2004 Oct 12 & draft for start of cycle 4 \\ \hline 41 41 09 & 2004 Nov 15 & final for cycle 4 \\ \hline 42 10 & 2004 Nov 30 & update for cycle 4 \\ 43 11 & 2005 Jan 21 & draft for cycle 5 \\ 42 10 & 2004 Nov 30 & update for cycle 4 \\ \hline 43 11 & 2005 Jan 21 & draft for cycle 5 \\ \hline 44 12 & 2005 Feb 09 & final for cycle 5 \\ 44 45 \RevisionsEnd 45 46 … … 136 137 \href{heasarc.gsfc.nasa.gov/docs/software/fitsio}{\tt heasarc.gsfc.nasa.gov/docs/software/fitsio} 137 138 138 \item Many of the astronomy routines will wrap the StarLink Positional 139 Astronomy libraries (SLALib): 139 \item \tbd{SLALIB support is likely to be dropped} Many of the 140 astronomy routines will wrap the StarLink Positional Astronomy 141 libraries (SLALib): 140 142 141 143 \href{star-www.rl.ac.uk/star/docs/sun67.htx/sun67.html}{\tt … … 2894 2896 in a loop. 2895 2897 2896 \subsubsection{Image I/O Functions}2897 2898 \tbd{this section is being deprecated and the equivalent of these2899 functions are being moved to FITS I/O Functions. I will leave this2900 section here until others may read the section on FITS I/O.}2901 2902 \begin{verbatim}2903 psImage *psImageReadSection(psImage *output, int x0, int y0, int x1, int y1, int z,2904 const char *extname, int extnum, const char *filename);2905 \end{verbatim}2906 Read an image or subimage from a named file. This function is a2907 wrapper to the FITS library function. The input parameters allow a2908 full image or a subimage to be read. The starting pixel of the region2909 is specified by \code{x0,y0}, while the upper right-hand corner of the2910 requested region is specified by \code{x1,y1}. A negative value for2911 either of \code{x1} or \code{y1} specifies the size of the region to2912 be read counting down from the end of the array.2913 2914 If the native image is a cube, the value of z specifies the requested2915 slice of the image. The data is read from the extension specified by2916 extname (matching the EXTNAME keyword) or by the extnum value (with 02917 representing the primary header unit (PHU), 1 the first extension,2918 etc). This function must call \code{psError} and return \code{NULL}2919 if any of the specified parameters are out of range for the data in2920 the image file, if the specified image file does not exist, or the2921 image on disk is zero- or one-dimensional. This function need only2922 read images of the native FITS image types (\code{psU8}, \code{psS16},2923 \code{psS32}, \code{psF32}, \code{psF64}). The user is expected to2924 convert the data type as needed with \code{psImageCopy}.2925 2926 \begin{verbatim}2927 bool psImageWriteSection(const psImage *input, int x, int y, int z,2928 const char *extname, int extnum, const char *filename);2929 \end{verbatim}2930 Write an image section to the named file, which may exist. This2931 operation may write a portion of an image over the existing bytes of2932 an existing image. If the file does not exist, it should be created.2933 If the specified extension does not exist, it should be created. If2934 an extension is specified and no PHU exists, a basic PHU should be2935 created. Care must be taken to interpret x,y,z in the two cases a)2936 there is already an existing image and b) there is not an existing2937 image. If the image exists, write the complete psImage data to the2938 existing image starting at the coordinate x,y,z. If any of these2939 parameters implies writing pixels outside the existing data area of2940 the image, return an error (ie, if \code{x + image.nx >= NAXIS1},2941 \code{y + image.ny >= NAXIS2}, or \code{z >= NAXIS3}). If the image2942 does not exist, require x,y,z to be zero. This function will only2943 write images of the native FITS image types (\code{psU8},2944 \code{psS16}, \code{psS32}, \code{psF32}, \code{psF64}). The user is2945 expected to convert the data type as needed with \code{psImageCopy}.2946 The return value must be 0 for a successful operation and 1 for an2947 error.2948 2949 2898 \subsubsection{Image Pixel Manipulations} 2950 2899 … … 3509 3458 The functions may accept either \code{psTimeType}. The \code{time} is 3510 3459 modified and returned. Note that this function must supply the value 3511 UT1-UTC, which is available externally. The value UT1-UTC is 3512 necessary for this an various other SLALIB functions. The following 3513 utility function encapsulates the PSLib mechanism to extract the value 3514 of UT1-UTC: 3460 UT1-UTC, which is available externally (see \code{psTimeGetUT1Delta}). 3461 The following utility function encapsulates the PSLib mechanism to 3462 extract the value of UT1-UTC: 3515 3463 \begin{verbatim} 3516 3464 double psTimeGetUT1Delta(const psTime *time);
Note:
See TracChangeset
for help on using the changeset viewer.
