IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 7, 2006, 4:28:20 PM (20 years ago)
Author:
jhoblitt
Message:

merged from SDRS-18-FIXES: sync psElemType, psDataType, & psFitsType with the implementation in pslib

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/pslib/psLibSDRS.tex

    r6356 r6366  
    1 %%% $Id: psLibSDRS.tex,v 1.380 2006-02-08 01:06:40 jhoblitt Exp $
     1%%% $Id: psLibSDRS.tex,v 1.381 2006-02-08 02:28:20 jhoblitt Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    927927\begin{datatype}
    928928typedef enum {
    929     PS_TYPE_S8,                        ///< Character
    930     PS_TYPE_S16,                       ///< Short integer
    931     PS_TYPE_S32,                       ///< Integer
    932     PS_TYPE_S64,                       ///< Long integer
    933     PS_TYPE_U8,                        ///< Unsigned character
    934     PS_TYPE_U16,                       ///< Unsigned short integer
    935     PS_TYPE_U32,                       ///< Unsigned integer
    936     PS_TYPE_U64,                       ///< Unsigned long integer
    937     PS_TYPE_F32,                       ///< Floating point
    938     PS_TYPE_F64,                       ///< Double-precision floating point
    939     PS_TYPE_C32,                       ///< Float complex
    940     PS_TYPE_C64,                       ///< Double complex
    941     PS_TYPE_BOOL                       ///< Boolean value
     929    PS_TYPE_S8      = 0x0101,           ///< Character
     930    PS_TYPE_S16     = 0x0102,           ///< Short integer
     931    PS_TYPE_S32     = 0x0104,           ///< Integer
     932    PS_TYPE_S64     = 0x0108,           ///< Long integer
     933    PS_TYPE_U8      = 0x0301,           ///< Unsigned character
     934    PS_TYPE_U16     = 0x0302,           ///< Unsigned short integer
     935    PS_TYPE_U32     = 0x0304,           ///< Unsigned integer
     936    PS_TYPE_U64     = 0x0308,           ///< Unsigned long integer
     937    PS_TYPE_F32     = 0x0404,           ///< Floating point
     938    PS_TYPE_F64     = 0x0408,           ///< Double-precision floating point
     939    PS_TYPE_C32     = 0x0808,           ///< Float complex
     940    PS_TYPE_C64     = 0x0810,           ///< Double complex
     941    PS_TYPE_BOOL    = 0x1301            ///< Boolean value
    942942} psElemType;
    943943\end{datatype}
     
    950950\begin{datatype}
    951951typedef enum {                         ///< type of item.data is:
    952     PS_TYPE_S8 = PS_TYPE_S8,           ///< psS8
    953     PS_TYPE_S16 = PS_TYPE_S16,         ///< psS16
    954     PS_DATA_S32  = PS_TYPE_S32,        ///< psS32
    955     PS_TYPE_U8 = PS_TYPE_U8,           ///< psU8
    956     PS_TYPE_U16 = PS_TYPE_U16,         ///< psU16
    957     PS_TYPE_U32 = PS_TYPE_U32,         ///< psU32
    958     PS_DATA_F32  = PS_TYPE_F32,        ///< psF32
    959     PS_DATA_F64  = PS_TYPE_F64,        ///< psF64
    960     PS_DATA_BOOL = PS_TYPE_BOOL,       ///< psBool
    961     PS_DATA_STRING = 0x10000,          ///< String (char *)
     952    PS_DATA_S8      = PS_TYPE_S8,      ///< psS8
     953    PS_DATA_S16     = PS_TYPE_S16,     ///< psS16
     954    PS_DATA_S32     = PS_TYPE_S32,     ///< psS32
     955    PS_DATA_U8      = PS_TYPE_U8,      ///< psU8
     956    PS_DATA_U16     = PS_TYPE_U16,     ///< psU16
     957    PS_DATA_U32     = PS_TYPE_U32,     ///< psU32
     958    PS_DATA_F32     = PS_TYPE_F32,     ///< psF32
     959    PS_DATA_F64     = PS_TYPE_F64,     ///< psF64
     960    PS_DATA_BOOL    = PS_TYPE_BOOL,    ///< psBool
     961    PS_DATA_STRING  = 0x10000,         ///< String (char *)
    962962    PS_DATA_ARRAY,                     ///< psArray
    963963    PS_DATA_BITSET,                    ///< psBitSet
     
    994994\end{datatype}
    995995
    996 Here we have not included every type of structure used in PSLib, but
    997 only those we expect will be frequently carried around in containers.
    998 We include \code{PS_DATA_S32, PS_DATA_F32, PS_DATA_F64} and
    999 \code{PS_DATA_BOOL} since the metadata use these, and we set them to
    1000 the same values as in \code{psElemType}.
     996Here we have included every type of structure used in PSLib that we expect will
     997be frequently carried around in containers.  If applicable, the value should
     998corespond to the same type as represented in \code{psElemType}.
    1001999
    10021000The other values are offset from these ``primitive'' types so that
     
    40624060\begin{datatype}
    40634061typedef enum {
    4064     PS_FITS_TYPE_NONE,
    4065     PS_FITS_TYPE_IMAGE,
    4066     PS_FITS_TYPE_BINARY_TABLE,
    4067     PS_FITS_TYPE_ASCII_TABLE,
    4068     PS_FITS_TYPE_ANY
     4062    PS_FITS_TYPE_NONE           = -1,
     4063    PS_FITS_TYPE_IMAGE          = IMAGE_HDU,
     4064    PS_FITS_TYPE_BINARY_TABLE   = BINARY_TBL,
     4065    PS_FITS_TYPE_ASCII_TABLE    = ASCII_TBL,
     4066    PS_FITS_TYPE_ANY            = ANY_HDU
    40694067} psFitsType;
    40704068\end{datatype}
Note: See TracChangeset for help on using the changeset viewer.