Changeset 1706
- Timestamp:
- Sep 7, 2004, 1:23:02 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/doc/pslib/psLibSDRS.tex (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/pslib/psLibSDRS.tex
r1693 r1706 1 %%% $Id: psLibSDRS.tex,v 1.1 09 2004-09-07 00:52:16 eugene Exp $1 %%% $Id: psLibSDRS.tex,v 1.110 2004-09-07 23:23:02 price Exp $ 2 2 \documentclass[panstarrs,spec]{panstarrs} 3 3 … … 35 35 & & (modified polynomials), ImageTrim for Phase 2. \\ 36 36 & & Changed minimization. \\ \hline 37 04-- & Various & See Appendix A for a change log. \\ \hline 37 38 \RevisionsEnd 38 39 … … 174 175 \begin{itemize} 175 176 \item Set the error codes for PSLib. 177 \item Seed the random number generator. 176 178 \end{itemize} 177 179 178 180 The prototype is: 179 181 \begin{verbatim} 180 void psLibInit(void) 181 \end{verbatim} 182 void psLibInit(bool predictable); 183 \end{verbatim} 184 185 If \code{predictable} is \code{true}, then the random number generator 186 shall be seeded with a value that does not vary (allowing bugs relying 187 on random numbers to be reproduced); otherwise, the random number 188 generator shall be seeded from \code{/dev/random} if it exists, 189 otherwise from the system clock. 182 190 183 191 … … 2600 2608 2601 2609 \begin{verbatim} 2602 psC64 psImagePixelInterpolate (const psImage *input, float x, float y, 2603 psC64 unexposedValue, psImageInterpolateMode mode); 2610 psC64 psImagePixelInterpolate(const psImage *input, float x, float y, 2611 const psImage *mask, unsigned int maskVal, 2612 psC64 unexposedValue, psImageInterpolateMode mode); 2604 2613 \end{verbatim} 2605 2614 Perform interpolation of image pixel values to the given fractional 2606 2615 coordinate \code{x,y}. The function returns the interpolated value of 2607 2616 the image at the given fractional pixel coordinates, based on the 2608 specified interpolation \code{mode}. This function will likely be 2609 implemented as a macro for processing speed. It may also be necessary 2610 to define a setup macro which pre-calculates certain values which 2611 would be reused in a loop. 2617 specified interpolation \code{mode}. The \code{mask} allows pixels to 2618 be excluded if their corresponding mask pixel value matches the value 2619 of \code{maskVal}. This function will likely be implemented as a 2620 macro for processing speed. It may also be necessary to define a 2621 setup macro which pre-calculates certain values which would be reused 2622 in a loop. 2612 2623 2613 2624 \subsubsection{Image I/O Functions} … … 2651 2662 existing image starting at the coordinate x,y,z. If any of these 2652 2663 parameters implies writing pixels outside the existing data area of 2653 the image, return an error (ie, if x + image.nx >= NAXIS1, y + 2654 image.ny >= NAXIS2, or z >= NAXIS3). If the image does not exist, 2655 require x,y,z to be zero. This function will only write images of the 2656 native FITS image types (\code{psU8}, \code{psS16}, \code{psS32}, 2657 \code{psF32}, \code{psF64}). The user is expected to convert the data 2658 type as needed with \code{psImageCopy}. The return value must be 0 2659 for a successful operation and 1 for an error. 2664 the image, return an error (ie, if \code{x + image.nx >= NAXIS1}, 2665 \code{y + image.ny >= NAXIS2}, or \code{z >= NAXIS3}). If the image 2666 does not exist, require x,y,z to be zero. This function will only 2667 write images of the native FITS image types (\code{psU8}, 2668 \code{psS16}, \code{psS32}, \code{psF32}, \code{psF64}). The user is 2669 expected to convert the data type as needed with \code{psImageCopy}. 2670 The return value must be 0 for a successful operation and 1 for an 2671 error. 2660 2672 2661 2673 \subsubsection{Image Pixel Manipulations} … … 3839 3851 \end{verbatim} 3840 3852 3853 We also require the ability to precess coordinates from one equinox to 3854 another. 3855 3856 \begin{verbatim} 3857 psSphere *psSpherePrecess(psSphere *coords, const psTime *fromTime, const psTime *toTime); 3858 \end{verbatim} 3859 3860 Given coordinates, \code{coords}, with equinox for \code{fromTime}, 3861 the coordinates are precessed to equinox for \code{toTime}. The 3862 \code{coords} are modified in-place. Equinoxes shall be Julian 3863 equinoxes (as opposed to Bessellian). 3864 3841 3865 \subsubsection{Projections} 3842 3866 … … 3926 3950 3927 3951 \subsection{Photometry} 3952 3953 \tbd{This section is to be deferred, and for now consists only of 3954 placeholders, with no functional items.} 3928 3955 3929 3956 Photometric observations are performed in an instrumental photometric … … 3995 4022 3996 4023 \tbd{These functions are all of low priority, have not yet been 3997 defined in detail, and are not immediately required.}4024 defined in detail, and hence are to be deferred.} 3998 4025 3999 4026 \subsubsection{Positions of Major SS Objects}
Note:
See TracChangeset
for help on using the changeset viewer.
