class PPM (Catalog): def __init__(self): Catalog.__init__(self) self.scat = SCatWrapper() def getName(self): return "PPM" def getMetadata(self): return [("PPM_NUM", "arbitrary", "PPM number"), ("RA", "h:m:s", "Right Ascension (J2000)"), ("DEC", "d:m:s", "Declination (J2000)"), ("MAG_J", "mag", "J magnitude (1.2 um) from 2MASS"), ("SpTyp", "arbitrary", "Spectral type"), ("R", "arcsec", "Distance from the target")] def getMagnitudeBands(self): return ["V"] def find(self, near, limit=None, **conditions): scat_options = {"catalog": "ppm", "near": near or "00:00:00 +00:00:00", "limit": limit or 100, "bands": self.getMagnitudeBands(), "conditions": conditions, "metadata": self.getMetadata(), "env": os.environ.update({"PPM_PATH": "/home/henrique/catalogs/"})} # OK, run it! data = self.scat.run(scat_options) return data
class PPM (Catalog): def __init__ (self): Catalog.__init__ (self) self.scat = SCatWrapper() def getName (self): return "PPM" def getMetadata (self): return [("PPM_NUM", "arbitrary", "PPM number"), ("RA", "h:m:s", "Right Ascension (J2000)"), ("DEC", "d:m:s", "Declination (J2000)"), ("MAG_J", "mag", "J magnitude (1.2 um) from 2MASS"), ("SpTyp", "arbitrary", "Spectral type"), ("R", "arcsec", "Distance from the target")] def getMagnitudeBands (self): return ["V"] def find (self, near, limit=None, **conditions): scat_options = {"catalog" : "ppm", "near" : near or "00:00:00 +00:00:00", "limit" : limit or 100, "bands" : self.getMagnitudeBands(), "conditions": conditions, "metadata" : self.getMetadata(), "env" : os.environ.update({"PPM_PATH": "/home/henrique/catalogs/"})} # OK, run it! data = self.scat.run (scat_options) return data
class UCAC2(Catalog): def __init__(self): Catalog.__init__(self) self.scat = SCatWrapper() def getName(self): return "UCAC2" def getMetadata(self): return [("UCAC2_NUM", "arbitrary", "UCAC2 number"), ("RA", "h:m:s", "Right Ascension (J2000)"), ("DEC", "d:m:s", "Declination (J2000)"), ("MAG_J", "mag", "J magnitude (1.2 um) from 2MASS"), ("MAG_H", "mag", "H magnitude (1.6 um) from 2MASS"), ("MAG_K", "mag", "Ks magnitude (2.2 um) from 2MASS"), ("MAG_UCAC", "mag", "Internal UCAC magnitude (red bandpass)"), ("R", "arcsec", "Distance from the target")] def getMagnitudeBands(self): return ["J", "H", "K", "UCAC"] def find(self, near, limit=None, **conditions): scat_options = { "catalog": "ucac2", "near": near or "00:00:00 +00:00:00", "limit": limit or 100, "bands": self.getMagnitudeBands(), "conditions": conditions, "metadata": self.getMetadata(), "env": os.environ.update({"UCAC2_PATH": "/home/henrique/catalogs/ucac2/"}) } # OK, run it! data = self.scat.run(scat_options) return data
class UCAC2 (Catalog): def __init__(self): Catalog.__init__(self) self.scat = SCatWrapper() def getName(self): return "UCAC2" def getMetadata(self): return [("UCAC2_NUM", "arbitrary", "UCAC2 number"), ("RA", "h:m:s", "Right Ascension (J2000)"), ("DEC", "d:m:s", "Declination (J2000)"), ("MAG_J", "mag", "J magnitude (1.2 um) from 2MASS"), ("MAG_H", "mag", "H magnitude (1.6 um) from 2MASS"), ("MAG_K", "mag", "Ks magnitude (2.2 um) from 2MASS"), ("MAG_UCAC", "mag", "Internal UCAC magnitude (red bandpass)"), ("R", "arcsec", "Distance from the target")] def getMagnitudeBands(self): return ["J", "H", "K", "UCAC"] def find(self, near, limit=None, **conditions): scat_options = {"catalog": "ucac2", "near": near or "00:00:00 +00:00:00", "limit": limit or 100, "bands": self.getMagnitudeBands(), "conditions": conditions, "metadata": self.getMetadata(), "env": os.environ.update({"UCAC2_PATH": "/home/henrique/catalogs/ucac2/"})} # OK, run it! data = self.scat.run(scat_options) return data
def __init__(self): Catalog.__init__(self) self.scat = SCatWrapper()