Changeset 4872 for trunk/doc/pslib/psLibSDRS.tex
- Timestamp:
- Aug 24, 2005, 1:50:27 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/doc/pslib/psLibSDRS.tex (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/pslib/psLibSDRS.tex
r4869 r4872 1 %%% $Id: psLibSDRS.tex,v 1.32 7 2005-08-24 21:57:49price Exp $1 %%% $Id: psLibSDRS.tex,v 1.328 2005-08-24 23:50:27 price Exp $ 2 2 \documentclass[panstarrs,spec]{panstarrs} 3 3 … … 3550 3550 \code{psRegion} shall do so by value, not by pointer. 3551 3551 3552 All functions which use a \code{psRegion} must interpret the 3553 definition of $(x0,y0)$ and $(x1,y1)$ in the same way. The coordinate 3554 $(x0,y0)$ defines the starting pixel in the region. The coordinate 3555 $(x1,y1)$ defines the outer bound of the region, and are NOT included 3556 in the region. The size of the region is $(x1-x0,y1-y1)$. If either 3557 $x1$ or $y1$ is less than or equal to 0, the value is added to the 3558 image dimensions (e.g., $Nx + x1$). Thus a region \code{[0:0,0:0]} 3559 refers to the full image array, while \code{[0:-10,0:-20]} refers to 3560 the entire image, minus the last 10 columns and the last 20 rows. 3561 3552 3562 We define two functions to set and return the value of a 3553 3563 \code{psRegion}. The first defines the region by the corner … … 3565 3575 \end{prototype} 3566 3576 3567 All functions which use a psRegion must interpret the definition of 3568 $(x0,y0)$ and $(x1,y1)$ in the same way. The coordinate $(x0,y0)$ 3569 defines the starting pixel in the region. The coordinate $(x1,y1)$ 3570 defines the outer bound of the region. The size of the region is 3571 $(x1-x0,y1-y1)$. If either $x1$ or $y1$ is less than or equal to 0, 3572 the value is added to the image dimensions ($Nx + x1$). Thus a region 3573 \code{[0:0,0:0]} refers to the full image array, while 3574 \code{[0:-10,0:-20]} trims the last 10 columns and the last 20 rows. 3577 {\bf Note that regions specified by strings are in the FITS standard.} 3578 It is the responsibility of \code{psRegionFromString} and 3579 \code{psRegionToString} to convert between the PS standard (0 means 3580 first pixel; upper value is not included, but lower is) and the FITS 3581 standard (1 means first pixel; lower and upper values are included), 3582 which simply involves subtracting one from \code{x0} and \code{y0} 3583 when going from a string representation to a \code{psRegion}. 3575 3584 3576 3585 \begin{prototype}
Note:
See TracChangeset
for help on using the changeset viewer.
