Skip to main content
======= 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)

Metadata

Release files for Py2MASS 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Py2MASS 0.1.5
File Size Uploaded
py2mass-0.1.5.tar.gz 29.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Py2MASS 0.1.5
File Interpreter ABI Platform
py2mass-0.1.5-py2-none-any.whl Python 2 none any Details

Total release size: 58.9 kB

Release files / py2mass-0.1.5.tar.gz

Download URL py2mass-0.1.5.tar.gz
Size 29.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7d233ce1e82d7efae2e50266977f16eaef97ebc7dd752ec48c141c4b1b73ef69
BLAKE2b-256 checksum
How to use checksums
2668714a28ffa10a8fee64cf4908d942241e2e809932765545ebf1e5175c7dc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / py2mass-0.1.5-py2-none-any.whl

Download URL py2mass-0.1.5-py2-none-any.whl
Size 29.8 kB
Tags Python 2
SHA-256 checksum
How to use checksums
03458b3b57c8e945b8d24d4d84f3dd3046a1b1297eaa1eff981b26aaeca795a9
BLAKE2b-256 checksum
How to use checksums
d7215d70b2e8002caa61a39a1a01ff5ae35ad3658001dc27c6be9d49fb2c7220
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

1 release file

0.1.2

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page