next up previous 264
Next: AST_MAPREMOVE - Removed a named entry from a KeyMap
Up: AST Routine Descriptions
Previous: AST_MAPPUTU - Add an entry to a KeyMap with an undefined value


AST_MAPREGION - Transform a Region into a new Frame using a given Mapping

Description:
This function returns a pointer to a new Region which corresponds to supplied Region described by some other specified coordinate system. A Mapping is supplied which transforms positions between the old and new coordinate systems. The new Region may not be of the same class as the original region.
Invocation:
RESULT = AST_MAPREGION( THIS, MAP, FRAME, STATUS )
Arguments:
THIS = INTEGER (Given)
Pointer to the Region.
MAP = INTEGER (Given)
Pointer to a Mapping which transforms positions from the coordinate system represented by the supplied Region to the coordinate system specified by FRAME. The supplied Mapping should define both forward and inverse transformations, and these transformations should form a genuine inverse pair. That is, transforming a position using the forward transformation and then using the inverse transformation should produce the original input position. Some Mapping classes (such as PermMap, MathMap, SphMap) can result in Mappings for which this is not true.
FRAME = INTEGER (Given)
Pointer to a Frame describing the coordinate system in which the new Region is required.
STATUS = INTEGER (Given and Returned)
The global status.
Returned Value:
AST_MAPREGION = INTEGER
A pointer to a new Region. This Region will represent the area within the coordinate system specified by FRAME which corresponds to the supplied Region.
Notes:
  • The uncertainty associated with the supplied Region is modified using the supplied Mapping.

  • A null Object pointer (AST__NULL) will be returned if this function is invoked with STATUS set to an error value, or if it should fail for any reason.


next up previous 264
Next: AST_MAPREMOVE - Removed a named entry from a KeyMap
Up: AST Routine Descriptions
Previous: AST_MAPPUTU - Add an entry to a KeyMap with an undefined value

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