IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 621


Ignore:
Timestamp:
May 7, 2004, 3:30:46 PM (22 years ago)
Author:
Paul Price
Message:

Removed the overscan in a psReadout --- it's specified in the metadata.
Changed the names of two members, and made some const.

Removed psGrommit from psExposure (it doesn't need to replicate the
grommit's information), and const-ed all of psGrommit and psExposure
--- no-one should fiddle with these values.

Specified constructor and destructor for psGrommit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/pslib/include/psAstrom.h

    r399 r621  
    2323/** Information needed (by SLALIB) to convert Apparent to Observed Position */
    2424typedef struct {
    25     double latitude;                    ///< geodetic latitude (radians)
    26     double sinLat, cosLat;              ///< sine and cosine of geodetic latitude
    27     double abberationMag;               ///< magnitude of diurnal aberration vector
    28     double height;                      ///< height (HM)
    29     double temperature;                 ///< ambient temperature (TDK)
    30     double pressure;                    ///< pressure (PMB)
    31     double humidity;                    ///< relative humidity (RH)
    32     double wavelength;                  ///< wavelength (WL)
    33     double lapseRate;                   ///< lapse rate (TLR)
    34     double refractA, refractB;          ///< refraction constants A and B (radians)
    35     double longitudeOffset;             ///< longitude + eqn of equinoxes + ``sidereal UT'' (radians)
    36     double siderealTime;                ///< local apparent sidereal time (radians)
     25    const double latitude;              ///< geodetic latitude (radians)
     26    const double sinLat, cosLat;        ///< sine and cosine of geodetic latitude
     27    const double abberationMag;         ///< magnitude of diurnal aberration vector
     28    const double height;                ///< height (HM)
     29    const double temperature;           ///< ambient temperature (TDK)
     30    const double pressure;              ///< pressure (PMB)
     31    const double humidity;              ///< relative humidity (RH)
     32    const double wavelength;            ///< wavelength (WL)
     33    const double lapseRate;             ///< lapse rate (TLR)
     34    const double refractA, refractB;    ///< refraction constants A and B (radians)
     35    const double longitudeOffset;       ///< longitude + eqn of equinoxes + ``sidereal UT'' (radians)
     36    const double siderealTime;          ///< local apparent sidereal time (radians)
    3737} psGrommit;
    3838
     
    4040typedef struct {
    4141    // Telescope longitude, latitude and height are stored separately, since they don't change with pointing
    42     double ra, dec;                     ///< Telescope boresight
    43     double ha;                          ///< Hour angle
    44     double zd;                          ///< Zenith distance
    45     double az;                          ///< Azimuth
    46     double lst;                         ///< Local Sidereal Time
    47     float mjd;                          ///< MJD of observation
    48     float rotAngle;                     ///< Rotator position angle
    49     float temp;                         ///< Air temperature, for estimating refraction
    50     float pressure;                     ///< Air pressure, for calculating refraction
    51     float humidity;                     ///< Relative humidity, for calculating refraction
    52     float exptime;                      ///< Exposure time
     42    const double ra, dec;               ///< Telescope boresight
     43    const double ha;                    ///< Hour angle
     44    const double zd;                    ///< Zenith distance
     45    const double az;                    ///< Azimuth
     46    const double lst;                   ///< Local Sidereal Time
     47    const float mjd;                    ///< MJD of observation
     48    const float rotAngle;               ///< Rotator position angle
     49    const float temp;                   ///< Air temperature, for estimating refraction
     50    const float pressure;               ///< Air pressure, for calculating refraction
     51    const float humidity;               ///< Relative humidity, for calculating refraction
     52    const float exptime;                ///< Exposure time
    5353    /* Derived quantities */
    54     float posAngle;                     ///< Position angle
    55     float parallactic;                  ///< Parallactic angle
    56     float airmass;                      ///< Airmass, calculated from zenith distance
    57     float pf;                           ///< Parallactic factor
    58     char *cameraName;                   ///< name of camera which provided exposure
    59     char *telescopeName;                ///< name of telescope which provided exposure
    60     psGrommit *grommit;                 ///< Data needed to convert from the sky to the tangent plane
     54    const float posAngle;               ///< Position angle
     55    const float parallactic;            ///< Parallactic angle
     56    const float airmass;                ///< Airmass, calculated from zenith distance
     57    const float pf;                     ///< Parallactic factor
     58    const char *cameraName;             ///< name of camera which provided exposure
     59    const char *telescopeName;          ///< name of telescope which provided exposure
    6160} psExposure;
    6261
     
    8382    psDistortion *FPtoTP;               ///< Transformation term from
    8483    psFixedPattern *pattern;            ///< Fixed pattern residual offsets
    85     psExposure *exp;                    ///< information about this exposure
     84    const psExposure *exp;              ///< information about this exposure
    8685    psPhotSystem colorPlus, colorMinus; ///< Colour reference
    8786    float rmsX, rmsY;                   ///< Dispersion in astrometric solution
     
    120119/** a Readout: a collection of pixels */
    121120typedef struct {
    122     const int x0, y0;                   ///< Offset from the lower-left corner
    123     const int nx, ny;                   ///< Image binning
     121    const int x0, y0;                   ///< Offset from the lower-left corner of the physical device
     122    const int xBin, yBin;               ///< Image binning
    124123    psImage *image;                     ///< imaging area of cell
    125124    psDlist *objects;                   ///< objects derived from cell
    126     psImage *overscan;                  ///< bias region (subimage) of cell
    127125    psMetadata *md;                     ///< Readout-level metadata
    128126} psReadout;
     
    289287psExposureFree(psExposure *restrict myExp ///< Object to destroy
    290288               );
     289
     290/** Constructor */
     291psGrommit *
     292psGrommitAlloc(const psExposure *exp    ///< Relevant exposure
     293    );
     294
     295/** Destructor */
     296void
     297psGrommitFree(psGrommit *grommit        ///< Grommit to destroy
     298    );
     299
    291300/* \} */ // End of AstroGroup Functions
    292301
Note: See TracChangeset for help on using the changeset viewer.