threeML.io.get_heasarc_table_as_pandas module¶
-
threeML.io.get_heasarc_table_as_pandas.
get_heasarc_table_as_pandas
(heasarc_table_name, update=False, cache_time_days=1)[source]¶ Obtain a a VO table from the HEASARC archives and return it as a pandas table indexed by object/trigger names. The heasarc_table_name values are the ones referenced at:
https://heasarc.gsfc.nasa.gov/docs/archive/vo/
In order to speed up the processing of the tables, 3ML can cache the XML table in a cache that is updated every cache_time_days. The cache can be forced to update, i.e, reload from the web, by setting update to True.
- Parameters
heasarc_table_name – the name of a HEASARC browse table
update – force web read of the table and update cache
cache_time_days – number of days to hold the current cache
- Returns
pandas DataFrame with results and astropy table