from threeML.config.config import threeML_config
from threeML.io.get_heasarc_table_as_pandas import get_heasarc_table_as_pandas
from threeML.io.logging import setup_logger
from .catalog_utils import _gbm_and_lle_valid_source_check
from .VirtualObservatoryCatalog import VirtualObservatoryCatalog
log = setup_logger(__name__)
[docs]
class FermiLLEBurstCatalog(VirtualObservatoryCatalog):
def __init__(self, update=False):
"""The Fermi-LAT LAT Low-Energy (LLE) trigger catalog. Search for GRBs
and solar flares by trigger number, location, trigger type and date
range.
:param update: force update the XML VO table
"""
self._update = update
super(FermiLLEBurstCatalog, self).__init__(
"fermille",
threeML_config["catalogs"]["Fermi"]["catalogs"]["LLE catalog"].url,
"Fermi-LAT/LLE catalog",
)
def _get_vo_table_from_source(self):
self._vo_dataframe = get_heasarc_table_as_pandas(
"fermille", update=self._update, cache_time_days=5.0
)
def _source_is_valid(self, source):
return _gbm_and_lle_valid_source_check(source)