Metadata-Version: 2.1
Name: sdss
Version: 0.2.4
Summary: A python package for retrieving and analysing data from SDSS (Sloan Digital Sky Survey)
Home-page: https://github.com/behrouzz/sdss
Author: Behrouz Safari
Author-email: behrouz.safari@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.4
Description-Content-Type: text/markdown
License-File: LICENSE.txt

**Author:** [Behrouz Safari](https://behrouzz.github.io/)<br/>
**License:** [MIT](https://opensource.org/licenses/MIT)<br/>

# sdss
*A python package for retrieving and analysing data from SDSS (Sloan Digital Sky Survey)*


## Installation

Install the latest version of *sdss* from [PyPI](https://pypi.org/project/sdss/):

    pip install sdss

Requirements are *numpy*, *requests*, *Pillow*, *matplotlib* and *pandas*.


## Quick start

Let's create a Region:

```python
from sdss import Region

ra = 179.689293428354
dec = -0.454379056007667

reg = Region(ra, dec, fov=0.033)
```

To see the image:

```python
reg.show()
```

![alt text](https://raw.githubusercontent.com/behrouzz/astronomy/main/images/Region-show.png)

To see the image in three *gri* filter bands (green, red, infrared) separately:

```python
reg.show3b()
```

![alt text](https://raw.githubusercontent.com/behrouzz/astronomy/main/images/Region-show3b.png)

To find nearest objects:

```python
df_obj = reg.nearest_objects()
```

To find nearest objects with spectrum:

```python
df_sp = reg.nearest_spects()
```

See more examples at [astrodatascience.net](https://astrodatascience.net/)


