Next: Choice of Axis Ordering
Up: Paper I - General Linear Coordinates
Previous: Use and Choice of CTYPEi keywords
When writing a FrameSet to a
FitsChan, the pixel coordinates of the
reference point for linear axes (i.e. the CRPIXj values) are
chosen as follows:
- If the FrameSet is being written to a FitsChan which previously
contained a set of axis descriptions with the same identifying letter,
then the previous CRVALjvalues are converted into the coordinate system
of the Frame being written (if possible). These values are then
transformed into the pixel Frame, and the closest integer pixel values
are used as the CRPIX keywords.
- If the above step could not be performed for any reason, the
central pixel is used as the reference point. This requires the image
dimensions to be present in the FitsChan in the form of a set of
NAXISj keyword values.
- If both the above two steps failed for any axis, then the pixel
reference position is set to a value of 1.0 on the pixel axis.
The pixel to WCS Mapping is then used to find the corresponding
CRVALjvalues.
Again, the above procedure is over-ridden if the Frame is a
SkyFrame or a SpecFrame, in which
case the conventions of papers II and III are used as described below.
Next: Choice of Axis Ordering
Up: Paper I - General Linear Coordinates
Previous: Use and Choice of CTYPEi keywords
AST A Library for Handling World Coordinate Systems in Astronomy
Starlink User Note 210
R.F. Warren-Smith & D.S. Berry
24th May 2011
E-mail:ussc@star.rl.ac.uk
Copyright (C) 2009 Science \& Technology Facilities Council