Skip to main content

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

Project description

Author: Behrouz Safari
License: MIT

sdss

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

Installation

Install the latest version of sdss from PyPI:

pip install sdss

Requirements are numpy, Pillow, matplotlib and pandas.

Quick start

Let's create a Region:

from sdss import Region

ra = 179.689293428354
dec = -0.454379056007667

img = Region(ra, dec, fov=0.033)

To see the image:

img.show()

alt text

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

img.show3b()

alt text

To find 10 nearest objects in a radius of 5 arc degrees:

df_obj = img.nearest_objects(radius=5, n=10)

To find 10 nearest objects with spectrum in a radius of 5 arc degrees:

df_sp = img.nearest_spects(radius=5, n=10)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sdss-0.1.6.tar.gz (6.7 kB view hashes)

Uploaded Source

Built Distribution

sdss-0.1.6-py3-none-any.whl (7.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page