Metadata-Version: 2.1
Name: lunastro
Version: 0.0.8
Summary: python package for lunar and solar information
Home-page: https://github.com/PyndyalaCoder/lunastro
Author: Siddhu Pendyala
Author-email: elcientifico.pendyala@hotmail.com
License: MIT
Project-URL: Bug Tracker, https://github.com/PyndyalaCoder/lunastro/issues
Description-Content-Type: text/markdown
License-File: LICENSE

# lunastro
lunastro is a python library for lunar and solar information


Installation:

To install lunastro:

```python
    pip install lunastro
```
<br>

<h1>Functions</h1>

```python
    get_lunar_phase() # returns phase
    get_lunar_age() # returns age of moon
    get_lunar_age_percentage() # returns age percentage of moon
    solardistance() # returns distance to the sun in miles
    declination(galactic_latitude, galactic_longitude) # solar declination
    eclipticlongtitude(anomaly) # ecliptic longitude
    rightAscension(galactic_latitude, galactic_longitude) # right Ascension
    azimuth(hour_angle, latitude, declination) # azimuth
    hourangle() # returns solar hour angle (approximate)
    mean_solar_time(longitude) # returns mean solar time
    solar_mean_anomaly(longitude) # returns anomaly
    center_equation(longitude) # returns center
```

<h1>Astronomical Measurement:</h1>

```python
    lightyeardist_to_miles(lightyears)
    miles_to_lightyeardist(miles)
    miles_to_au(miles)
    au_to_miles(au)
    parsec_to_miles(parsec)
    miles_to_parsec(miles)
```

<h1>Lunar Usage:</h1>:
<br>

```python

    
    from lunation.main import myMoon
    # create instance of myMoon
    moon = myMoon()
    
    # functions
    phase = moon.get_lunar_phase() # returns lunar phase
    age = moon.get_lunar_age() # returns lunar age
    percent = moon.get_lunar_age_percent() # returns percent of lunar age as a decimal
```
The library can also be used to calculate distance from the sun
<br>
<h1> Solar Usage: </h1>

```python

    
    from lunation.sun import Sun
    # instance of Sun
    sun = Sun()
    distance = sun.solardistance() # returns solar distance in miles
```
