Changeset 6759 for trunk/doc/pslib/psLibSDRS.tex
- Timestamp:
- Apr 3, 2006, 5:29:03 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/doc/pslib/psLibSDRS.tex (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/pslib/psLibSDRS.tex
r6732 r6759 1 %%% $Id: psLibSDRS.tex,v 1.3 89 2006-03-30 03:36:41price Exp $1 %%% $Id: psLibSDRS.tex,v 1.390 2006-04-04 03:29:03 price Exp $ 2 2 \documentclass[panstarrs,spec]{panstarrs} 3 3 … … 4139 4139 \code{psFitsHeaderValidate} shall validate the supplied \code{header} 4140 4140 so that it is in compliance to the FITS standard for header keyword 4141 names and types. Th e contents should be changed to conform to the4142 FITS standard where possible by truncating names and adding (where 4143 missing) those keywords required by FITS (e.g., \code{SIMPLE}). If 4144 the resulting \code{header} conforms to the FITS standard, the 4145 functionshall return \code{true}; otherwise the function shall return4141 names and types. This involves scanning for types that cannot be 4142 represented in FITS, and changing the keywords to conform to the FITS 4143 standard where possible by using the \code{HIERARCH} keyword. If the 4144 resulting \code{header} conforms to the FITS standard, the function 4145 shall return \code{true}; otherwise the function shall return 4146 4146 \code{false}. 4147 4148 \begin{prototype} 4149 psMetadata *psFitsHeaderFromImage(psMetadata *header, const psImage *image); 4150 psMetadata *psFitsHeaderFromTable(psMetadata *header, const psArray *table); 4151 \end{prototype} 4152 4153 \code{psFitsHeaderFromImage} shall format the \code{header} to be 4154 appropriate for writing the \code{image}. The function shall update 4155 the following keywords in the \code{header} on the basis of the 4156 \code{image}: \code{SIMPLE}, \code{NAXIS}, \code{NAXIS1}, 4157 \code{NAXIS2}, \code{NAXIS3}, \code{BSCALE}, \code{BZERO}, 4158 \code{EXTNAME}. If the \code{header} is \code{NULL}, a new header 4159 shall be allocated and returned. \code{psFitsHeaderFromTable} shall 4160 do similarly for \code{table}s, setting the appropriate keywords for 4161 FITS tables. 4162 4147 4163 4148 4164 \begin{prototype} … … 4205 4221 native FITS image types (\code{psU8}, \code{psS16}, \code{psS32}, 4206 4222 \code{psF32}, \code{psF64}). The user is expected to convert the data 4207 type as needed with \code{psImageCopy}. The return value must be 0 4208 for a successful operation and 1 for an error. If \code{extname} is 4209 not \code{NULL}, the \code{EXTNAME} in the \code{header} shall be 4210 updated to be \code{extname} before writing. 4223 type as needed with \code{psImageCopy}. The function shall call 4224 \code{psFitsHeaderForImage} to obtain the correct FITS headers. The 4225 return value must be 0 for a successful operation and 1 for an error. 4211 4226 4212 4227 \begin{prototype} … … 4308 4323 \end{prototype} 4309 4324 Accepts a \code{psArray} of \code{psMetadata} and writes it to the end 4310 of the file with the given \code{extname}. 4325 of the file with the given \code{extname}. The function shall call 4326 \code{psFitsHeaderFromTable} to obtain the correct headers for writing 4327 the table. 4311 4328 4312 4329 \begin{prototype}
Note:
See TracChangeset
for help on using the changeset viewer.
