astroquery:docs

Besancon

class astroquery.besancon.core.Besancon(email=None)[source] [edit on github]

Bases: astroquery.query.BaseQuery

Attributes Summary

QUERY_URL str(object=’‘) -> string
TIMEOUT int(x=0) -> int or long
ping_delay float(x) -> floating point number
result_re Compiled regular expression objects
url_download str(object=’‘) -> string

Methods Summary

get_besancon_model_file(*args, **kwds) Download a Besancon model from the website :Parameters: filename : string The besancon filename, with format ##########.######.resu verbose : bool Print details about the download process timeout : float Amount of time to wait after pinging the server to see if a file is present.
query(*args, **kwds) Queries the service and returns a table object.
query_async(*args, **kwds) Perform a query on the Besancon model of the galaxy http://model.obs-besancon.fr/ :Parameters: email : string A valid e-mail address to send the report of completion to glon : float glat : float Galactic latitude and longitude at the center smallfield : bool Small field (True) or Large Field (False) LARGE FIELD NOT SUPPORTED YET extinction : float Extinction per kpc in A_V area : float Area in square degrees absmag_limits : (float,float) Absolute magnitude lower,upper limits colors_limits : dict of (float,float) Should contain 4 elements listing color differences in the valid bands, e.g.: {“J-H”:(99,-99),”H-K”:(99,-99),”J-K”:(99,-99),”V-K”:(99,-99)} mag_limits = dict of (float,float) : Lower and Upper magnitude difference limits for each magnitude band U B V R I J H K L clouds : list of 2-tuples Up to 25 line-of-sight clouds can be specified in pairs of (A_V, distance in pc) verbose : bool Print out extra error messages? kwargs : dict Can override any argument in the request if you know the name of the POST keyword.

Attributes Documentation

QUERY_URL = 'http://model.obs-besancon.fr/modele_form.php'
TIMEOUT = 30
ping_delay = 30.0
result_re = <_sre.SRE_Pattern object at 0x5f889e0>
url_download = 'ftp://sasftp.obs-besancon.fr/modele/modele2003/'

Methods Documentation

static get_besancon_model_file(*args, **kwds)[source] [edit on github]

Download a Besancon model from the website

Parameters :

filename : string

The besancon filename, with format ##########.######.resu

verbose : bool

Print details about the download process

timeout : float

Amount of time to wait after pinging the server to see if a file is present. Default 5s, which is probably reasonable.

static query(*args, **kwds) [edit on github]

Queries the service and returns a table object. Perform a query on the Besancon model of the galaxy http://model.obs-besancon.fr/

Parameters :

email : string

A valid e-mail address to send the report of completion to

glon : float

glat : float

Galactic latitude and longitude at the center

smallfield : bool

Small field (True) or Large Field (False) LARGE FIELD NOT SUPPORTED YET

extinction : float

Extinction per kpc in A_V

area : float

Area in square degrees

absmag_limits : (float,float)

Absolute magnitude lower,upper limits

colors_limits : dict of (float,float)

Should contain 4 elements listing color differences in the valid bands, e.g.:

{“J-H”:(99,-99),”H-K”:(99,-99),”J-K”:(99,-99),”V-K”:(99,-99)}

mag_limits = dict of (float,float) :

Lower and Upper magnitude difference limits for each magnitude band U B V R I J H K L

clouds : list of 2-tuples

Up to 25 line-of-sight clouds can be specified in pairs of (A_V, distance in pc)

verbose : bool

Print out extra error messages?

kwargs : dict

Can override any argument in the request if you know the name of the POST keyword.

retrieve_file : bool

If True, will try to retrieve the file every 30s until it shows up. Otherwise, just returns the filename (the job is still executed on the remote server, though)

Returns :

An `astropy.table.Table` object :

static query_async(*args, **kwds)[source] [edit on github]

Perform a query on the Besancon model of the galaxy http://model.obs-besancon.fr/

Parameters :

email : string

A valid e-mail address to send the report of completion to

glon : float

glat : float

Galactic latitude and longitude at the center

smallfield : bool

Small field (True) or Large Field (False) LARGE FIELD NOT SUPPORTED YET

extinction : float

Extinction per kpc in A_V

area : float

Area in square degrees

absmag_limits : (float,float)

Absolute magnitude lower,upper limits

colors_limits : dict of (float,float)

Should contain 4 elements listing color differences in the valid bands, e.g.:

{“J-H”:(99,-99),”H-K”:(99,-99),”J-K”:(99,-99),”V-K”:(99,-99)}

mag_limits = dict of (float,float) :

Lower and Upper magnitude difference limits for each magnitude band U B V R I J H K L

clouds : list of 2-tuples

Up to 25 line-of-sight clouds can be specified in pairs of (A_V, distance in pc)

verbose : bool

Print out extra error messages?

kwargs : dict

Can override any argument in the request if you know the name of the POST keyword.

retrieve_file : bool

If True, will try to retrieve the file every 30s until it shows up. Otherwise, just returns the filename (the job is still executed on the remote server, though)

Returns :

response : requests.Response object

The response of the HTTP request.

Page Contents