Home | Trees | Indices | Help |
---|
|
Interface to the GATOR search engine
|
|||
Basic interfaces | |||
---|---|---|---|
str/ record array, dict, list of str |
|
||
list of string tuples |
|
||
|
|||
Convenience functions | |||
record array, dict, list of str |
|
||
record array |
|
||
Internal helper functions | |||
str |
|
|
|||
logger = logging.getLogger("CAT.GATOR")
|
|||
basedir = os.path.dirname(os.path.abspath(__file__))
|
|||
cat_info = ConfigParser.ConfigParser()
|
|
Search and retrieve information from a Gator catalog. Two ways to search for data within a catalog
If you have a list of targets, you need to loop this function. If you supply a filename, the results will be saved to that path, and you will get the filename back as received from urllib.URLopener (should be the same as the input name, unless something went wrong). If you don't supply a filename, you should leave
|
Return a list of all availabe GATOR catalogues.
|
Download all available photometry from a star to a record array. For extra kwargs, see _get_URI and gator2phot Example usage: >>> import pylab >>> import vizier >>> name = 'kr cam' >>> master = vizier.get_photometry(name,to_units='erg/s/cm2/AA',extra_fields=[]) >>> master = get_photometry(name,to_units='erg/s/cm2/AA',extra_fields=[],master=master) >>> p = pylab.figure() >>> wise = np.array(['WISE' in photband and True or False for photband in master['photband']]) >>> p = pylab.errorbar(master['cwave'],master['cmeas'],yerr=master['e_cmeas'],fmt='ko') >>> p = pylab.errorbar(master['cwave'][wise],master['cmeas'][wise],yerr=master['e_cmeas'][wise],fmt='ro',ms=8) >>> p = pylab.gca().set_xscale('log') >>> p = pylab.gca().set_yscale('log') >>> p = pylab.show() Other examples: >>> master = get_photometry(ra=71.239527,dec=-70.589427,to_units='erg/s/cm2/AA',extra_fields=[],radius=1.) >>> master = get_photometry(ID='J044458.39-703522.6',to_units='W/m2',extra_fields=[],radius=1.) |
Read a GATOR outfmt=1__ (ASCII) file into a record array.
|
Convert/combine Gator record arrays to measurement record arrays. Every line in the combined array represents a measurement in a certain band. This is probably only useful if The standard columns are:
You can add extra information from the Gator catalog via the list of
keys If you give a The result is a record array with each row a measurement.
|
Build GATOR URI from available options. Filetype should be one of: 6___ returns a program interface in XML 3___ returns a VO Table (XML) 2___ returns SVC (Software handshaking structure) message 1___ returns an ASCII table 0___ returns Gator Status Page in HTML (default) kwargs are to catch unused arguments.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Mar 30 10:45:19 2018 | http://epydoc.sourceforge.net |