Changeset 7554
- Timestamp:
- Jun 13, 2006, 3:33:49 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/doc/pslib/psLibSDRS.tex (modified) (19 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/pslib/psLibSDRS.tex
r7537 r7554 1 %%% $Id: psLibSDRS.tex,v 1.40 1 2006-06-13 21:58:17price Exp $1 %%% $Id: psLibSDRS.tex,v 1.402 2006-06-14 01:33:49 price Exp $ 2 2 \documentclass[panstarrs,spec]{panstarrs} 3 3 … … 925 925 926 926 \begin{prototype} 927 psList *psStringSplit(const char *string, const char *splitters );927 psList *psStringSplit(const char *string, const char *splitters, bool multipleAreSignificant); 928 928 \end{prototype} 929 929 … … 931 931 \code{psList} of \code{psStrings}. The \code{string} is split at any 932 932 one of the characters in \code{splitters}. Split strings of zero 933 length should not be included in the output list. 933 length should not be included in the output list if 934 \code{multipleAreSignificant} is \code{true}. 934 935 935 936 String whitespace from head and tail of string: 936 937 \begin{prototype} 937 int psStringStrip(char *string);938 size_t psStringStrip(char *string); 938 939 \end{prototype} 939 940 … … 1010 1011 PS_DATA_S16 = PS_TYPE_S16, ///< psS16 1011 1012 PS_DATA_S32 = PS_TYPE_S32, ///< psS32 1013 PS_DATA_S64 = PS_TYPE_S64, ///< psS64 1012 1014 PS_DATA_U8 = PS_TYPE_U8, ///< psU8 1013 1015 PS_DATA_U16 = PS_TYPE_U16, ///< psU16 1014 1016 PS_DATA_U32 = PS_TYPE_U32, ///< psU32 1017 PS_DATA_U64 = PS_TYPE_U64, ///< psU64 1015 1018 PS_DATA_F32 = PS_TYPE_F32, ///< psF32 1016 1019 PS_DATA_F64 = PS_TYPE_F64, ///< psF64 … … 2654 2657 psS16 S16; ///< integer data 2655 2658 psS32 S32; ///< integer data 2659 psS64 S64; ///< integer data 2656 2660 psU8 U8; ///< integer data 2657 2661 psU16 U16; ///< integer data 2658 2662 psU32 U32; ///< integer data 2663 psU64 U64; ///< integer data 2659 2664 psF32 F32; ///< floating-point data 2660 2665 psF64 F64; ///< double-precision data … … 2936 2941 \begin{prototype} 2937 2942 psBool psMetadataItemParseBool(const psMetadataItem *item); 2938 psF32 psMetadataItemParseF32( psMetadataItem *item);2939 psF64 psMetadataItemParseF64( psMetadataItem *item);2943 psF32 psMetadataItemParseF32(const psMetadataItem *item); 2944 psF64 psMetadataItemParseF64(const psMetadataItem *item); 2940 2945 psS8 psMetadataItemParseS8(const psMetadataItem *item); 2941 2946 psS16 psMetadataItemParseS16(const psMetadataItem *item); 2942 psS32 psMetadataItemParseS32( psMetadataItem *item);2947 psS32 psMetadataItemParseS32(const psMetadataItem *item); 2943 2948 psU8 psMetadataItemParseU8(const psMetadataItem *item); 2944 2949 psU16 psMetadataItemParseU16(const psMetadataItem *item); 2945 2950 psU32 psMetadataItemParseU32(const psMetadataItem *item); 2946 psString psMetadataItemParseString( psMetadataItem *item);2951 psString psMetadataItemParseString(const psMetadataItem *item); 2947 2952 \end{prototype} 2948 2953 … … 4109 4114 \begin{datatype} 4110 4115 typedef struct { 4111 fitsfile fd;// cfitsio structure4116 fitsfile *fd; // cfitsio structure 4112 4117 bool writable; // Is the file writable? 4113 4118 } psFits; … … 4327 4332 4328 4333 \begin{prototype} 4329 bool psFitsWriteImage(psFits *fits, psMetadata *header, const psImage *input, int depth,4334 bool psFitsWriteImage(psFits *fits, const psMetadata *header, const psImage *input, int depth, 4330 4335 const char *extname); 4331 4336 \end{prototype} … … 4340 4345 4341 4346 \begin{prototype} 4342 bool psFitsInsertImage(psFits *fits, psMetadata *header, const psImage *input, int depth,4347 bool psFitsInsertImage(psFits *fits, const psMetadata *header, const psImage *input, int depth, 4343 4348 const char *extname, bool after); 4344 4349 \end{prototype} … … 5250 5255 5251 5256 \begin{prototype} 5252 bool psVectorFitSpline1D(psSpline1D *spline, const psVector *x, const psVector *y, 5253 const psVector * yErr); 5254 \end{prototype} 5255 \code{psVectorFitSpline1D} shall fit the code{spline} that best fits 5256 the given combination of ordinates (\code{x}) and coordinates 5257 (\code{y}) with the known errors (\code{yErr}, which may be 5258 \code{NULL}). As is the case for \code{psVectorFitPolynomial1D}, if 5259 \code{x} is \code{NULL}, then the index of \code{y} shall be used as 5260 the ordinate. This function must be valid only for types 5261 \code{psF32}, \code{psF64}. 5257 psSpline1D *psVectorFitSpline1D(const psVector *x, const psVector *y); 5258 \end{prototype} 5259 \code{psVectorFitSpline1D} shall return the spline that best fits the 5260 given combination of ordinates (\code{x}) and coordinates (\code{y}). 5261 As is the case for \code{psVectorFitPolynomial1D}, if \code{x} is 5262 \code{NULL}, then the index of \code{y} shall be used as the ordinate. 5263 This function must be valid only for types \code{psF32}, \code{psF64}. 5262 5264 5263 5265 \subsubsection{Additional polynomial functions} … … 5367 5369 identical to a 180\degree\ rotation. 5368 5370 \begin{prototype} 5369 psImage *psImageFlip(psImage *output, const psImage *i mage,5371 psImage *psImageFlip(psImage *output, const psImage *input, 5370 5372 bool xFlip, bool yFlip); 5371 5373 \end{prototype} … … 5629 5631 \tbd{Description required for psImageUnbin} 5630 5632 \begin{prototype} 5631 psImage *psImageUnbin(psImage *out, psImage *in, int DX, int DY, int dx, int dy);5633 psImage *psImageUnbin(psImage *out, const psImage *in, int DX, int DY, int dx, int dy); 5632 5634 \end{prototype} 5633 5635 \tbd{Can ``out'' be NULL? I'm not sure this is the best way to specify this function for a library.} … … 5833 5835 The following function allocates, but does not specify, a JPEG colormap: 5834 5836 \begin{prototype} 5835 psImageJpegColormap *psImageJpegColormapAlloc ();5837 psImageJpegColormap *psImageJpegColormapAlloc(); 5836 5838 \end{prototype} 5837 5839 … … 5841 5843 \code{rainbow}, \code{heat}. 5842 5844 \begin{prototype} 5843 psImageJpegColormap *psImageJpegColormapSet (psImageJpegColormap *map,char *name);5845 psImageJpegColormap *psImageJpegColormapSet(psImageJpegColormap *map, const char *name); 5844 5846 \end{prototype} 5845 5847 … … 5849 5851 (the values of the single image determine the colors). 5850 5852 \begin{prototype} 5851 bool psImageJpeg (psImageJpegColormap *map, psImage *image, char *filename, float min, float max); 5853 bool psImageJpeg(const psImageJpegColormap *map, const psImage *image, 5854 const char *filename, float min, float max); 5852 5855 \end{prototype} 5853 5856 … … 6164 6167 only add elements above the diagonal. 6165 6168 \begin{prototype} 6166 void psSparseMatrixElement (psSparse *sparse, int i, int j, float value);6169 void psSparseMatrixElement(psSparse *sparse, int i, int j, float value); 6167 6170 \end{prototype} 6168 6171 6169 6172 The following function define a new sparse matrix equation vector element: 6170 6173 \begin{prototype} 6171 void psSparseVectorElement (psSparse *sparse, int i, float value);6174 void psSparseVectorElement(psSparse *sparse, int i, float value); 6172 6175 \end{prototype} 6173 6176 … … 6175 6178 on a sparse matrix and a vector: 6176 6179 \begin{prototype} 6177 psVector *psSparseMatrixTimesVector (psVector *output, psSparse *matrix, psVector *vector); 6180 psVector *psSparseMatrixTimesVector(psVector *output, const psSparse *matrix, 6181 const psVector *vector); 6178 6182 \end{prototype} 6179 6183 … … 6182 6186 function before attempting to solve, but after populating, the matrix and vector: 6183 6187 \begin{prototype} 6184 void psSparseResort (psSparse *sparse);6188 void psSparseResort(psSparse *sparse); 6185 6189 \end{prototype} 6186 6190 … … 6188 6192 \bar{Bf}$. For the value of $\bar{x}$, a good starting guess is the vector $\bar{Bf}$ 6189 6193 \begin{prototype} 6190 psVector *psSparseSolve (psVector *guess, psSparseConstraint constraint, psSparse *sparse, int Niter); 6194 psVector *psSparseSolve(psVector *guess, psSparseConstraint constraint, 6195 const psSparse *sparse, int Niter); 6191 6196 \end{prototype} 6192 6197
Note:
See TracChangeset
for help on using the changeset viewer.
