lunastro


Namelunastro JSON
Version 0.0.22 PyPI version JSON
download
home_pagehttps://github.com/PyndyalaCoder/lunastro
Summarypython package for lunar and solar information
upload_time2023-03-18 18:39:39
maintainer
docs_urlNone
authorSiddhu Pendyala
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## Lunastro
Lunastro is a <strong>python</strong> library for calculating astronomical data, such as, but not limited to:
<ul>
    <li>RA of the sun</li>
    <li>Hour angle of the sun</li>
    <li>Declination of the sun</li>
    <li>Longitude of the Sun's Ascending Node (Omega)</li>
    <li>Solar Geometric mean Anomaly</li>
    <li>Solar Geometric mean Longitude</li>
    <li>True Solar Longitude</li>
    <li> Distance to the sun</li>
    <li> Local sidereal time (accurate to the second) </li>
    <li> Sun altitude </li>
    <li> Sun azimuth </li>
    <li> Moon Position</li>
</ul>


## Usage
Lunastro's functions return objects of information. Here is a list of each function and what it returns:

<h1>Solar Data</h1>

```python
latitude = 47.6101 # Bellevue WA latitude
solar_data = getSunData(latitude) # get the solar data
```

This returns:

| Attribute |  Description |
|-----------------|------------------|
| dec | current solar declination |
| hour_angle | current solar hour angle |
| ra | current solar right ascension |
| long_omega | Longitude of the Sun's ascending node|
| true_solar_anomaly | true solar anomaly |
| true_solar_longitude | true solar longitude |
| geo_anomaly | geometric mean anomaly of the sun |
| geo_long | geometric mean longitude of the sun |
| dist | distance to the sun in miles |


<h1>Altitude of the Sun</h1>

```python
# lat and long are of Bellevue WA
latitude = 47.6101
longitude = -122
alt = altitude(latitude, longitude)
```

This returns the <strong>altitude</strong> of the <i>sun</i> in radians

<h1>Azimuth of the Sun</h1>

```python
# lat and long are of Bellevue WA
latitude = 47.6101
longitude = -122
azi = azimuth(latitude, longitude)
```

This returns the <strong>azimuth</strong> of the <i>sun</i> in radians


<h1>Local Sidereal Time</h1>

```python
# longitude 
long = -122
time = localSiderealTime(long)
```

This returns the <b>local sidereal time </b> as an object:
| Attribute |  Description |
|-----------------|------------------|
| raw | raw sidereal time |
| hour | hours of sidereal time |
| minute | minutes of sidereal time |
| second | seconds of sidereal time|


<h1> Moon Positioning </h1>

```python
# lat and long are of Bellevue WA
lat = 47.6101
long = -122
moon_pos = getMoonPosition(lat, long)
```

This returns the <b>positioning of the moon </b> as an object:
| Attribute |  Description |
|-----------------|------------------|
| azimuth | azimuth of the moon |
| altitude | altitude of the moon |
| distance | distance to the moon in KM |
| parallacticAngle | parallactic angle of the moon|


## Changelog

### Version 0.0.21 (March 18th 2023)

- Edited most of the files by making the functions more accurate. Changed the functions to output objects.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/PyndyalaCoder/lunastro",
    "name": "lunastro",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Siddhu Pendyala",
    "author_email": "elcientifico.pendyala@hotmail.com",
    "download_url": "https://files.pythonhosted.org/packages/5c/a8/b162394a215b826a73451db91c237c5e59cf5fcf43cfbf30ab2d63dd2d2d/lunastro-0.0.22.tar.gz",
    "platform": null,
    "description": "## Lunastro\nLunastro is a <strong>python</strong> library for calculating astronomical data, such as, but not limited to:\n<ul>\n    <li>RA of the sun</li>\n    <li>Hour angle of the sun</li>\n    <li>Declination of the sun</li>\n    <li>Longitude of the Sun's Ascending Node (Omega)</li>\n    <li>Solar Geometric mean Anomaly</li>\n    <li>Solar Geometric mean Longitude</li>\n    <li>True Solar Longitude</li>\n    <li> Distance to the sun</li>\n    <li> Local sidereal time (accurate to the second) </li>\n    <li> Sun altitude </li>\n    <li> Sun azimuth </li>\n    <li> Moon Position</li>\n</ul>\n\n\n## Usage\nLunastro's functions return objects of information. Here is a list of each function and what it returns:\n\n<h1>Solar Data</h1>\n\n```python\nlatitude = 47.6101 # Bellevue WA latitude\nsolar_data = getSunData(latitude) # get the solar data\n```\n\nThis returns:\n\n| Attribute |  Description |\n|-----------------|------------------|\n| dec | current solar declination |\n| hour_angle | current solar hour angle |\n| ra | current solar right ascension |\n| long_omega | Longitude of the Sun's ascending node|\n| true_solar_anomaly | true solar anomaly |\n| true_solar_longitude | true solar longitude |\n| geo_anomaly | geometric mean anomaly of the sun |\n| geo_long | geometric mean longitude of the sun |\n| dist | distance to the sun in miles |\n\n\n<h1>Altitude of the Sun</h1>\n\n```python\n# lat and long are of Bellevue WA\nlatitude = 47.6101\nlongitude = -122\nalt = altitude(latitude, longitude)\n```\n\nThis returns the <strong>altitude</strong> of the <i>sun</i> in radians\n\n<h1>Azimuth of the Sun</h1>\n\n```python\n# lat and long are of Bellevue WA\nlatitude = 47.6101\nlongitude = -122\nazi = azimuth(latitude, longitude)\n```\n\nThis returns the <strong>azimuth</strong> of the <i>sun</i> in radians\n\n\n<h1>Local Sidereal Time</h1>\n\n```python\n# longitude \nlong = -122\ntime = localSiderealTime(long)\n```\n\nThis returns the <b>local sidereal time </b> as an object:\n| Attribute |  Description |\n|-----------------|------------------|\n| raw | raw sidereal time |\n| hour | hours of sidereal time |\n| minute | minutes of sidereal time |\n| second | seconds of sidereal time|\n\n\n<h1> Moon Positioning </h1>\n\n```python\n# lat and long are of Bellevue WA\nlat = 47.6101\nlong = -122\nmoon_pos = getMoonPosition(lat, long)\n```\n\nThis returns the <b>positioning of the moon </b> as an object:\n| Attribute |  Description |\n|-----------------|------------------|\n| azimuth | azimuth of the moon |\n| altitude | altitude of the moon |\n| distance | distance to the moon in KM |\n| parallacticAngle | parallactic angle of the moon|\n\n\n## Changelog\n\n### Version 0.0.21 (March 18th 2023)\n\n- Edited most of the files by making the functions more accurate. Changed the functions to output objects.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "python package for lunar and solar information",
    "version": "0.0.22",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e622df9cccc697aed67c86a01803b32eb5516867014d505f37d776bf8779e665",
                "md5": "d48a5253dd98aeeca1ead16074fba580",
                "sha256": "7e0f1e72ee2739154a3a5c1c56066662e160d1bf65575e69ef9e09627974cd28"
            },
            "downloads": -1,
            "filename": "lunastro-0.0.22-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d48a5253dd98aeeca1ead16074fba580",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 6213,
            "upload_time": "2023-03-18T18:39:37",
            "upload_time_iso_8601": "2023-03-18T18:39:37.917972Z",
            "url": "https://files.pythonhosted.org/packages/e6/22/df9cccc697aed67c86a01803b32eb5516867014d505f37d776bf8779e665/lunastro-0.0.22-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5ca8b162394a215b826a73451db91c237c5e59cf5fcf43cfbf30ab2d63dd2d2d",
                "md5": "1583dd834745159f633ab26aeb1b9872",
                "sha256": "d2a0df2d652ed1dcb083953ba312d49d8ac7022f8c1ccecd24d73d42435e8711"
            },
            "downloads": -1,
            "filename": "lunastro-0.0.22.tar.gz",
            "has_sig": false,
            "md5_digest": "1583dd834745159f633ab26aeb1b9872",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5785,
            "upload_time": "2023-03-18T18:39:39",
            "upload_time_iso_8601": "2023-03-18T18:39:39.514064Z",
            "url": "https://files.pythonhosted.org/packages/5c/a8/b162394a215b826a73451db91c237c5e59cf5fcf43cfbf30ab2d63dd2d2d/lunastro-0.0.22.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-18 18:39:39",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "PyndyalaCoder",
    "github_project": "lunastro",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "lunastro"
}
        
Elapsed time: 0.14253s