RandomSDSS
Generate random points in the Sloan Digital Sky Survey (SDSS) DR8 to DR16 footprints.
This is a small wrapper around the package pymangle that facilitates the creation of random points in the SDSS fields. I included SDSS polygons for its diferent data releases (DR8 to DR16).
Basic Usage
import matplotlib.pyplot as plt
import randomsdss
dr12 = randomsdss.DR12(catalog="BOSS")
ra, dec = dr12.sky_random(size=10_000)
plt.figure()
plt.scatter(ra, dec, s=1)
plt.xlabel('RA [deg]')
plt.ylabel('DEC [deg]')
Alternatively you can get the same result without the need to instantiate an object using:
ra, dec = randomsdss.sky_random(dr="DR12", catalog="BOSS", size=10_000)
If you also need a random redshift distribution you can provide a sample of redshifts and a random set will be generated from the underlying Probability Density Function (PDF):
z = randomsdss.z_random(z_array, size=10_000)
The z_random is a complementary function since it doesn't use any information from the SDSS catalogs, only the provided redshift array.
Author
Martin Chalela - email: tinchochalela@gmail.com
Metadata
Release files for randomsdss 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| randomsdss-0.5.0.tar.gz | 12.5 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| randomsdss-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.6 MB
Release files / randomsdss-0.5.0.tar.gz
| Download URL | randomsdss-0.5.0.tar.gz |
|---|---|
| Size | 12.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
78aa530487b7a83eee466a15725af7814fcd21b1adcf680c6e5a88d6d12f1377
|
|
BLAKE2b-256 checksum How to use checksums |
4bdfc9a78f8679ca8ade2a83bee5c1d8d2ce5635c7c8fd5153646db4120faa46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7
|
Release files / randomsdss-0.5.0-py3-none-any.whl
| Download URL | randomsdss-0.5.0-py3-none-any.whl |
|---|---|
| Size | 13.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5cf7a7075ecff98674cb22d2ba3d405f4fe7e3de57a2d4da2acc0bcd0431def4
|
|
BLAKE2b-256 checksum How to use checksums |
2b14dce19f26e16f68ca72fcfe0450068381121b1ac1e91e86984c792f9efa4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7
|
Security for randomsdss 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.