Access the 2MASS survey as a local MongoDB.
2MASS Point Source Catalog representation in MongoDB.
Parameters: | dbname : str
cname : str
server : str
url : str
port : int
|
---|
General purpose query method for 2MASS PSC.
Parameters: | spec : dict
fields : list
center: (2,) tuple or list :
radius: float (degrees) :
polygon: list of [RA,Dec] vertices in degrees. The polygon is :
box: list or tuple `[[RA_min,Dec_min],[RA_max,Dec_max]]` :
header: `pyfits.header` instance :
wcs: pywcs.WCS instance :
|
---|---|
Returns: | recs : pymongo.Cursor instance
|
Notes
Only one type of spatial query is performed, even if several are defined by the keyword arguments passed by the user. The spatial query is resolved in the following order:
Examples
To query for all stars with mag within 2 degrees
of M31, and returning only the RA,Dec position,
magnitude
and
magnitude:
>>> psc = PSC()
>>> recs = psc.find({"j_m-k_m": {"$gt": 0.5}},
fields=["coord","j_m","k_m"],
center=(13.,41.), radius=2.)
Build a PSC database in MongoDB from the ascii data streams.
Parameters: | f : file-like object
dbname : str
cname : str
server : str
url : str
port : int
drop : bool
|
---|