Routines for accessing a self-hosted local copy of the 2MASS point-source and extended source catalogs (PSC, XSC)
Project description
=======
Py2MASS
=======
Py2MASS is used for accessing a locally hosted copy of 2MASS.
More information on 2MASS is available at:
http://www.ipac.caltech.edu/2mass/
Full copies of the 2MASS point source catalog (PSC) are large:
~40Gigs compressed
(The extended source catalog (XSC) is modest by comparison at <800megs.)
Both are available for download from:
ftp://ftp.ipac.caltech.edu/pub/2mass/allsky
Note that the PSC contains some sources out of order, so you will need
to reprocess the PSC using the included:
py2mass_process_original_psc.py
A typical usage to fetch a region of the catalog is:
#!/usr/bin/env python
from py2mass import fetch_2mass_psc_box
ra_range = [281., 281.05] # RA is in degrees
dec_range = [-30.6, -30.55] # Dec is in degrees
stars = fetch_2mass_psc_box(ra_range, dec_range)
from py2mass import fetch_2mass_xsc_box
ra_range = [281., 281.05] # RA is in degrees
dec_range = [-30.6, -30.55] # Dec is in degrees
sources = fetch_2mass_xsc_box(ra_range, dec_range)
Note that in all cases the returned object is a `pandas.DataFrame`.
A command line script is also installed that allows direct access via, e.g.:
py2mass [psc|xsc] minRA maxRA minDEC maxDEC [pickle]
psc - 2MASS Point Source Catalog
xsc - 2MASS Extended Source Catalog
Default output is a nicely formatted text table.
Optional keyword (pickle) will dump a pickle of that table,
which can then be read back in from file within python, e.g.:
import pickle
stars = pickle.load(open(filename, 'r'))
========
Originally written 2014-03-28 by Henry Roe (hroe@hroe.me)
Py2MASS
=======
Py2MASS is used for accessing a locally hosted copy of 2MASS.
More information on 2MASS is available at:
http://www.ipac.caltech.edu/2mass/
Full copies of the 2MASS point source catalog (PSC) are large:
~40Gigs compressed
(The extended source catalog (XSC) is modest by comparison at <800megs.)
Both are available for download from:
ftp://ftp.ipac.caltech.edu/pub/2mass/allsky
Note that the PSC contains some sources out of order, so you will need
to reprocess the PSC using the included:
py2mass_process_original_psc.py
A typical usage to fetch a region of the catalog is:
#!/usr/bin/env python
from py2mass import fetch_2mass_psc_box
ra_range = [281., 281.05] # RA is in degrees
dec_range = [-30.6, -30.55] # Dec is in degrees
stars = fetch_2mass_psc_box(ra_range, dec_range)
from py2mass import fetch_2mass_xsc_box
ra_range = [281., 281.05] # RA is in degrees
dec_range = [-30.6, -30.55] # Dec is in degrees
sources = fetch_2mass_xsc_box(ra_range, dec_range)
Note that in all cases the returned object is a `pandas.DataFrame`.
A command line script is also installed that allows direct access via, e.g.:
py2mass [psc|xsc] minRA maxRA minDEC maxDEC [pickle]
psc - 2MASS Point Source Catalog
xsc - 2MASS Extended Source Catalog
Default output is a nicely formatted text table.
Optional keyword (pickle) will dump a pickle of that table,
which can then be read back in from file within python, e.g.:
import pickle
stars = pickle.load(open(filename, 'r'))
========
Originally written 2014-03-28 by Henry Roe (hroe@hroe.me)
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
Py2MASS-0.1.2.tar.gz
(24.6 kB
view details)
File details
Details for the file Py2MASS-0.1.2.tar.gz.
File metadata
- Download URL: Py2MASS-0.1.2.tar.gz
- Upload date:
- Size: 24.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
497fe08cb1d8eb539a9e5e1439759f0db713f6fb2ade110397b4a95ed8f9abf5
|
|
| MD5 |
922534b2826dee19eeac108f256f6af9
|
|
| BLAKE2b-256 |
83a283c6cca0101d387f93a2fa78cb0c181fd7804d1e4c0b4f0ce7a5acb5ae38
|