angle: Angular distance between the places in the sky

Description Usage Arguments Value Author(s) Examples

Description

The function computes angle between two or more objects on the sky.

Usage

1
angle(x, y = NULL)

Arguments

x

an object of class "apos"

y

optional second object of class "apos"

Value

If y==NULL, the function returns value of class (angle,dist), containing the angles (in degrees) between all positions in the given object (for example distances between all planets for one day).

If y is given (y should contain the same row number than x) and the return value is a vector of distances between the subsequent corresponding rows (for example distance between Moon and Sun for some days ahead).

Author(s)

Lukasz Komsta

Examples

1
2
3
4
5
6
options(latitude=51,longitude=22)
data(bright)
angle(bright)
angle(planets())
j=jd(length=100)
plot(angle(mercury(j),venus(j))) # angle between Venus and Mercury for next 100 days

Example output

           Sirius Canopus Rigel-Kent Arcturus  Vega Capella Rigel Procyon
Canopus      36.2                                                        
Rigel-Kent   88.5    58.0                                                
Arcturus    116.3   122.0       80.2                                     
Vega        157.9   165.9      110.6     59.1                            
Capella      65.8    99.7      152.9    103.0  93.3                      
Rigel        23.7    46.7      104.6    135.3 144.2    54.2              
Procyon      25.7    60.1      101.9     96.8 133.7    51.1  38.5        
Achernar     68.9    39.4       61.3    141.3 129.6   112.8  64.3    94.6
Betelgeuse   27.1    60.4      115.5    119.8 132.8    39.5  18.6    26.0
Hadar        84.8    55.6        4.5     79.6 113.7   148.7 101.9    97.6
Acrux        73.1    45.1       15.6     85.0 125.1   137.4  90.7    86.6
Altair      162.2   132.8       91.8     81.3  34.2   115.2 141.4   165.6
Aldebaran    46.0    73.0      131.1    130.4 117.9    30.7  26.5    46.3
Spica        96.2    90.2       51.5     32.8  87.8   120.1 119.8    87.6
Antares     125.7    97.0       39.1     56.0  71.7   158.3 143.7   130.0
Pollux       47.1    82.7      120.8     87.5 111.3    34.2  51.4    22.8
Fomalhaut   103.5    78.5       78.9    134.1  91.4   113.9  89.6   127.3
Deneb       142.5   156.5      128.5     80.9  23.8    78.2 122.2   127.6
Mimosa       75.9    49.1       13.9     80.9 121.5   139.2  94.3    88.1
Regulus      57.8    80.5       90.1     59.7 109.3    69.6  75.8    37.4
Adhara       12.6    24.6       76.1    115.6 169.2    78.5  32.1    35.6
Castor       50.0    86.0      125.3     88.2 108.1    30.0  52.2    26.7
           Achernar Betelgeuse Hadar Acrux Altair Aldebaran Spica Antares
Canopus                                                                  
Rigel-Kent                                                               
Arcturus                                                                 
Vega                                                                     
Capella                                                                  
Rigel                                                                    
Procyon                                                                  
Achernar                                                                 
Betelgeuse     82.9                                                      
Hadar          62.3      111.9                                           
Acrux          58.9      100.2  11.7                                     
Altair         95.7      146.9  96.1 107.3                               
Aldebaran      82.5       21.4 128.3 117.1  125.5                        
Spica         111.6      113.4  49.7  53.0   97.9     133.5              
Antares        88.9      152.1  42.0  53.5   60.3     170.0  45.9        
Pollux        114.3       33.2 116.3 106.5  143.1      45.0  90.9   136.7
Fomalhaut      39.1      106.1  82.3  85.6   59.2      93.5 125.9    82.9
Deneb         119.5      115.5 132.4 144.1   38.0      97.0 111.3    91.7
Mimosa         62.7      103.0   9.5   4.2  105.6     120.6  49.0    50.2
Regulus       119.9       62.4  86.0  79.7  140.0      80.1  54.1    99.9
Adhara         60.8       39.5  72.6  60.9  156.5      57.1  90.3   114.0
Castor        116.0       33.7 120.8 111.0  139.1      43.2  93.9   139.5
           Pollux Fomalhaut Deneb Mimosa Regulus Adhara
Canopus                                                
Rigel-Kent                                             
Arcturus                                               
Vega                                                   
Capella                                                
Rigel                                                  
Procyon                                                
Achernar                                               
Betelgeuse                                             
Hadar                                                  
Acrux                                                  
Altair                                                 
Aldebaran                                              
Spica                                                  
Antares                                                
Pollux                                                 
Fomalhaut   138.1                                      
Deneb       105.6      81.1                            
Mimosa      107.1      87.8 141.5                      
Regulus      37.0     159.0 119.5   78.5               
Adhara       58.1      98.3 154.0   63.9    61.4       
Castor        4.5     136.7 101.4  111.7    40.5   61.5
                   2020-07-16-Sun 2020-07-16-Moon 2020-07-16-Mercury
2020-07-16-Moon              56.6                                   
2020-07-16-Mercury           18.6            38.6                   
2020-07-16-Venus             42.2            15.2               23.8
2020-07-16-Mars             103.9            47.4               85.5
2020-07-16-Jupiter          177.7           125.6              163.5
2020-07-16-Saturn           175.7           119.1              157.1
2020-07-16-Uranus            73.2            16.6               55.1
2020-07-16-Neptune          124.1            67.5              105.8
2020-07-16-Pluto            170.7           132.5              170.7
                   2020-07-16-Venus 2020-07-16-Mars 2020-07-16-Jupiter
2020-07-16-Moon                                                       
2020-07-16-Mercury                                                    
2020-07-16-Venus                                                      
2020-07-16-Mars                61.7                                   
2020-07-16-Jupiter            139.9            78.3                   
2020-07-16-Saturn             133.4            71.8                6.6
2020-07-16-Uranus              31.4            30.8              109.0
2020-07-16-Neptune             82.0            20.3               58.1
2020-07-16-Pluto              147.0            85.4                7.2
                   2020-07-16-Saturn 2020-07-16-Uranus 2020-07-16-Neptune
2020-07-16-Moon                                                          
2020-07-16-Mercury                                                       
2020-07-16-Venus                                                         
2020-07-16-Mars                                                          
2020-07-16-Jupiter                                                       
2020-07-16-Saturn                                                        
2020-07-16-Uranus              102.4                                     
2020-07-16-Neptune              51.5              50.9                   
2020-07-16-Pluto                13.6             115.9               65.1

moonsun documentation built on May 29, 2017, 12:17 p.m.