-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Berry
committed
Feb 5, 2013
1 parent
48a7833
commit 3ca315c
Showing
7 changed files
with
167 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
SUBROUTINE ASTSPHMAP( STATUS ) | ||
*+ | ||
* Name: | ||
* ASTSPHMAP | ||
|
||
* Purpose: | ||
* Create a SphMap. | ||
|
||
* Language: | ||
* Starlink Fortran 77 | ||
|
||
* Type of Module: | ||
* ADAM A-task | ||
|
||
* Invocation: | ||
* CALL ASTSPHMAP( STATUS ) | ||
|
||
* Arguments: | ||
* STATUS = INTEGER (Given and Returned) | ||
* The global status. | ||
|
||
* Description: | ||
* This application creates a new SphMap and optionally initialises | ||
* its attributes. A SphMap is a Mapping which transforms points from | ||
* a 3-dimensional Cartesian coordinate system into a 2-dimensional | ||
* spherical coordinate system (longitude and latitude on a unit | ||
* sphere centred at the origin). It works by regarding the input | ||
* coordinates as position vectors and finding their intersection | ||
* with the sphere surface. The inverse transformation always | ||
* produces points which are a unit distance from the origin | ||
* (i.e. unit vectors). | ||
|
||
* Usage: | ||
* astunitmap options result | ||
|
||
* ADAM Parameters: | ||
* FMT = LITERAL (Read) | ||
* The format in which to store output objects. Can be "AST", "XML", | ||
* "STCS", or any FitsChan encoding such as FITS-WCS. Only used | ||
* if the output object is written to a text file. An error is | ||
* reported if the output object cannot be written using the | ||
* requested format. ["AST"] | ||
* OPTIONS = LITERAL (Read) | ||
* A string containing an optional comma-separated list of attribute | ||
* assignments to be used for initialising the new SphMap. | ||
* RESULT = LITERAL (Read) | ||
* A text file to receive the new SphMap. | ||
|
||
* Copyright: | ||
* Copyright (C) 2013 Science & Technology Facilities Council. | ||
* All Rights Reserved. | ||
|
||
* Licence: | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License as | ||
* published by the Free Software Foundation; either version 2 of | ||
* the License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be | ||
* useful, but WITHOUT ANY WARRANTY; without even the implied | ||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR | ||
* PURPOSE. See the GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street,Fifth Floor, Boston, MA | ||
* 02110-1301, USA | ||
|
||
* Authors: | ||
* DSB: David Berry (STARLINK) | ||
* {enter_new_authors_here} | ||
|
||
* History: | ||
* 5-FEB-2013 (DSB): | ||
* Original version. | ||
* {enter_further_changes_here} | ||
|
||
* Bugs: | ||
* {note_any_bugs_here} | ||
|
||
*- | ||
* Type Definitions: | ||
IMPLICIT NONE ! no default typing allowed | ||
|
||
* Global Constants: | ||
INCLUDE 'SAE_PAR' ! Standard SAE constants | ||
INCLUDE 'NDF_PAR' ! NDF constants | ||
INCLUDE 'AST_PAR' ! AST constants and function declarations | ||
|
||
* Status: | ||
INTEGER STATUS | ||
|
||
* Local Variables: | ||
INTEGER RESULT | ||
*. | ||
|
||
* Check inherited status. | ||
IF( STATUS .NE. SAI__OK ) RETURN | ||
|
||
* Begin an AST context. | ||
CALL AST_BEGIN( STATUS ) | ||
|
||
* Create the required SphMap. | ||
RESULT = AST_SPHMAP( ' ', STATUS ) | ||
|
||
* Store the required attribute values. | ||
CALL ATL1_SETOP( 'OPTIONS', RESULT, STATUS ) | ||
|
||
* Write the results out to a text file. | ||
CALL ATL1_PTOBJ( 'RESULT', ' ', RESULT, STATUS ) | ||
|
||
* End the AST context. | ||
CALL AST_END( STATUS ) | ||
|
||
* Give a context message if anything went wrong. | ||
IF( STATUS .NE. SAI__OK ) THEN | ||
CALL ERR_REP( 'ASTSPHMAP_ERR', 'Error creating a new '// | ||
: 'SphMap.', STATUS ) | ||
END IF | ||
|
||
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters