Source code for threeML.catalogs.FermiLLE

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", )
[docs] def apply_format(self, table): new_table = table["name", "ra", "dec", "trigger_time", "trigger_type"] # Remove rows with masked elements in trigger_time column if new_table.masked: new_table = new_table[~new_table["trigger_time"].mask] new_table["ra"].format = "5.3f" new_table["dec"].format = "5.3f" return new_table.group_by("trigger_time")
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)