[AIT logo]

Institut für Astronomie und Astrophysik

Abteilung Astronomie

Sand 1, D-72076 Tübingen, Germany
[Uni logo]


TICPOS Source code in ticpos.pro

TICPOS

Name
       TICPOS
Purpose
       Specify distance between tic marks for astronomical coordinate overlays
Explanation
       User inputs number an approximate distance
       between tic marks, and the axis length in degrees.  TICPOS will return
       a distance between tic marks such that the separation is a round
       multiple in arc seconds, arc minutes, or degrees
Calling Sequence
       TICPOS, deglen, pixlen, ticsize, incr, units
Input Parameters
       deglen - length of axis in DEGREES
       pixlen - length of axis in plotting units (pixels)
       ticsize - distance between tic marks (pixels).  This value will be
               adjusted by TICPOS such that the distance corresponds to
               a round multiple in the astronomical coordinate.
Output Parameters
       ticsize - distance between tic marks (pixels), positive scalar
       incr    - incremental value for tic marks in round units given
               by the UNITS parameter
       units - string giving units of ticsize, either 'ARC SECONDS',
               'ARC MINUTES', or 'DEGREES'
Example
       Suppose a 512 x 512 image array corresponds to 0.2 x 0.2 degrees on
       the sky.   A tic mark is desired in round angular units, approximately
       every 75 pixels.
       IDL> ticsize = 75
       IDL> TICPOS,0.2,512,ticsize,incr,units
       ==> ticsize = 85.333, incr = 2. units = 'Arc Minutes'
       i.e. a good tic mark spacing is every 2 arc minutes, corresponding
       to 85.333 pixels.
Revision History
       written by W. Landsman            November, 1988
       Converted to IDL V5.0   W. Landsman   September 1997
       Don't use all capital letters  W. Landsman May 2003
       Fix case where incr crosses degree/minute or minute/degree boundary
               A. Mortier/W.Landsman April 2005

Last modified by pro2html on 2005 April 22 at 03:11 UTC

[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]

Jörn Wilms (wilms@astro.uni-tuebingen.de)
Updated automatically