asgardpy.io.input_dl3 module

Basic classes defining Input Config for DL3 files and some functions to retrieve the DL3 files information.

Currently supporting files following enrico/fermipy for Fermi-LAT data for 3D Dataset and DL3 files that follow GADF v0.3 and can be directly read by Gammapy, for 1D Dataset.

class asgardpy.io.input_dl3.DL3Files(dir_dict, log=None)[source]

Bases: object

A general class to retrieve information from given DL3 files, along with other auxiliary files for neighbouring sources, if provided.

list_dl3_files()[source]

From a given DL3 files path, categorize the different types of DL3 files, to be used for further analysis.

The dl3_type of ‘gadf-dl3’ is used for all GADF v0.3 following DL3 files that can be directly read by Gammapy, for 1D Datasets.

prepare_lat_files(key, file_list)[source]

Prepare a list of LAT files following a particular key. If there are no distinct key types of files, the value is None.

select_unique_files(key, file_list)[source]

Select Unique files from all of the provided LAT files, as per the given key. If there are no distinct key types of files, the value is None.

pydantic model asgardpy.io.input_dl3.InputDL3Config[source]

Bases: BaseConfig

Config section for main information on getting the relevant DL3 files.

Fields:
field glob_pattern: dict = {}
field input_dir: Annotated[str | Path] = 'None'
Constraints:
  • func = <function <lambda> at 0x7f5167d96020>

  • json_schema_input_type = PydanticUndefined

  • return_type = <class ‘pathlib.Path’>

  • when_used = json-unless-none

field type: str = 'type'