IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4696


Ignore:
Timestamp:
Aug 1, 2005, 2:57:00 PM (21 years ago)
Author:
Paul Price
Message:

pmFPAMorph specified, ready for coding.

Location:
trunk/doc/modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/modules/CameraImages.tex

    r4609 r4696  
    376376extant \code{fpa}.
    377377
    378 \tbd{Functions to set the valid booleans within an fpa so that only
    379 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 plane
    382 hierarchy to a FITS file.
    383 
    384378\begin{prototype}
    385 bool pmFPAMorph(pmFPA *toFPA, pmFPA *fromFPA, int chipNum, int cellNum);
     379int pmFPASelectChip(pmFPA *fpa, int chipNum);
     380int pmFPAExcludeChip(pmFPA *fpa, int chipNum);
     381\end{prototype}
     382
     383These functions are provided to set the \code{valid} booleans within
     384an \code{fpa} so that only certain chips within the FITS file are read
     385in.  \code{pmFPASelectChip} shall set \code{valid} to \code{true} for
     386the specified chip number (\code{chipNum}), and all other chips shall
     387have \code{valid} set to \code{false}.  \code{pmFPAExcludeChip} shall
     388set \code{valid} to \code{false} only for the specified chip number
     389(\code{chipNum}).  In the event that the specified chip number does
     390not exist within the \code{fpa}, the function shall generate a
     391warning, and perform no action.  Both functions shall return the
     392number 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}
     396typedef enum {
     397    PM_FPA_MORPH_LEFTRIGHT,
     398    PM_FPA_MORPH_IMAGEBIAS
     399} pmFPAMorphOption;
     400\end{datatype}
     401
     402\begin{prototype}
     403bool pmFPAMorph(pmFPA *toFPA, pmFPA *fromFPA, bool positionDependent, int chipNum, int cellNum);
    386404bool pmFPAWrite(psFits *fits, pmFPA *fpa);
    387405\end{prototype}
     406
     407These two functions write out a focal plane hierarchy to a FITS file.
    388408
    389409\code{pmFPAMorph} shall morph the \code{fromFPA} focal plane hierarchy
    … …  
    395415the same, these numbers are ignored.  This function shall break apart
    396416pixel 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.}
     417satisfy the demands of the \code{toFPA}.  How the image and overscan
     418regions are spliced together depends on the value of
     419\code{positionDependent}: If \code{positionDependent} is \code{true},
     420then 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
     423cells; if \code{positionDependent} is \code{false}, then the overscan
     424regions all go to the high end of the spliced image.  Care should be
     425taken to check the \code{CELL.READDIR}, so the orientation of the
     426overscan regions is known.  If the bias and trim sections are
     427specified by headers in the \code{toFPA}, these shall be updated
     428appropriately; otherwise, the function is permitted to fail with a
     429suitable error message, in which case it shall return \code{false}.
    405430
    406431\code{pmFPAWrite} shall write the focal plane hierarchy, \code{fpa},
  • trunk/doc/modules/ChangeLogSDRS.tex

    r4609 r4696  
    1 %%% $Id: ChangeLogSDRS.tex,v 1.25 2005-07-25 23:23:28 price Exp $
     1%%% $Id: ChangeLogSDRS.tex,v 1.26 2005-08-02 00:57:00 price Exp $
    22
    33\subsection{Changes from version 00 (16 August 2004) to version 01 (12 October 2004)}
    … …  
    9292\item Added \code{bias} sections to \code{pmReadout}.
    9393\item Added \code{CELL.READDIR} to specify read direction; \code{pmCellGetReaddir}.
     94\item \code{pmFPAMorph} specified, ready for coding.
    9495\end{itemize}
Note: See TracChangeset for help on using the changeset viewer.