Learn R Programming

astrolibR (version 0.1)

eqpole: Convert Right Ascension and declination to X,Y using an equal-area polar projection

Description

Convert Right Ascension and declination to X,Y using an equal-area polar projection

Usage

eqpole(l, b, southpole)

Arguments

l
longitude, in degrees, scalar or vector
b
latitude, in degrees, same number of elements as longitude
southpole
Set to TRUE if plot is centered on the south pole instead of the north pole (optional, default = FALSE)

Value

X
X coordinate, ranging from -90 to +90, same number of elements as longitude, in degrees
Y
Y coordinate, ranging from -90 to +90, same number of elements as longitude, in degrees

Details

The output X and Y coordinates are scaled to be between -90 and +90 to go from equator to pole to equator. Output map points can be centered on the north pole or south pole.

Several polar equal-area map projections are provided by the CRAN package mapproj.

Examples

Run this code
eqpole(100, -20.)

Run the code above in your browser using DataLab