Changeset 4696
- Timestamp:
- Aug 1, 2005, 2:57:00 PM (21 years ago)
- Location:
- trunk/doc/modules
- Files:
-
- 2 edited
-
CameraImages.tex (modified) (2 diffs)
-
ChangeLogSDRS.tex (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/modules/CameraImages.tex
r4609 r4696 376 376 extant \code{fpa}. 377 377 378 \tbd{Functions to set the valid booleans within an fpa so that only379 certain pieces of the FITS file are read in, and not the whole thing?}380 381 We specify an additional two functions to write out a focal plane382 hierarchy to a FITS file.383 384 378 \begin{prototype} 385 bool pmFPAMorph(pmFPA *toFPA, pmFPA *fromFPA, int chipNum, int cellNum); 379 int pmFPASelectChip(pmFPA *fpa, int chipNum); 380 int pmFPAExcludeChip(pmFPA *fpa, int chipNum); 381 \end{prototype} 382 383 These functions are provided to set the \code{valid} booleans within 384 an \code{fpa} so that only certain chips within the FITS file are read 385 in. \code{pmFPASelectChip} shall set \code{valid} to \code{true} for 386 the specified chip number (\code{chipNum}), and all other chips shall 387 have \code{valid} set to \code{false}. \code{pmFPAExcludeChip} shall 388 set \code{valid} to \code{false} only for the specified chip number 389 (\code{chipNum}). In the event that the specified chip number does 390 not exist within the \code{fpa}, the function shall generate a 391 warning, and perform no action. Both functions shall return the 392 number of chips within the \code{fpa} that have \code{valid} set to 393 \code{true} (should be one for \code{pmFPASelectChip}). 394 395 \begin{datatype} 396 typedef enum { 397 PM_FPA_MORPH_LEFTRIGHT, 398 PM_FPA_MORPH_IMAGEBIAS 399 } pmFPAMorphOption; 400 \end{datatype} 401 402 \begin{prototype} 403 bool pmFPAMorph(pmFPA *toFPA, pmFPA *fromFPA, bool positionDependent, int chipNum, int cellNum); 386 404 bool pmFPAWrite(psFits *fits, pmFPA *fpa); 387 405 \end{prototype} 406 407 These two functions write out a focal plane hierarchy to a FITS file. 388 408 389 409 \code{pmFPAMorph} shall morph the \code{fromFPA} focal plane hierarchy … … 395 415 the same, these numbers are ignored. This function shall break apart 396 416 pixel regions or splice them together where required in order to 397 satisfy the demands of the \code{toFPA}. If the bias and trim 398 sections are specified by headers in the \code{toFPA}, these shall be 399 updated appropriately; otherwise, the function is permitted to fail, 400 in which case it shall return \code{false}. 401 402 \tbd{pmFPAMorph is a fairly involved operation, since it must cover 403 several combinations. IfA is working on a prototype --- do not 404 attempt to code yet.} 417 satisfy the demands of the \code{toFPA}. How the image and overscan 418 regions are spliced together depends on the value of 419 \code{positionDependent}: If \code{positionDependent} is \code{true}, 420 then the overscan regions go to the low end of the spliced image if $i 421 < N/2$, and to the high end of the spliced image if $i >= N/2$, where 422 $i$ (zero-offset) is the cell number, and $N$ is the total number of 423 cells; if \code{positionDependent} is \code{false}, then the overscan 424 regions all go to the high end of the spliced image. Care should be 425 taken to check the \code{CELL.READDIR}, so the orientation of the 426 overscan regions is known. If the bias and trim sections are 427 specified by headers in the \code{toFPA}, these shall be updated 428 appropriately; otherwise, the function is permitted to fail with a 429 suitable error message, in which case it shall return \code{false}. 405 430 406 431 \code{pmFPAWrite} shall write the focal plane hierarchy, \code{fpa}, -
trunk/doc/modules/ChangeLogSDRS.tex
r4609 r4696 1 %%% $Id: ChangeLogSDRS.tex,v 1.2 5 2005-07-25 23:23:28price Exp $1 %%% $Id: ChangeLogSDRS.tex,v 1.26 2005-08-02 00:57:00 price Exp $ 2 2 3 3 \subsection{Changes from version 00 (16 August 2004) to version 01 (12 October 2004)} … … 92 92 \item Added \code{bias} sections to \code{pmReadout}. 93 93 \item Added \code{CELL.READDIR} to specify read direction; \code{pmCellGetReaddir}. 94 \item \code{pmFPAMorph} specified, ready for coding. 94 95 \end{itemize}
Note:
See TracChangeset
for help on using the changeset viewer.
