nectarchain.data.management.DataManagement#

class DataManagement[source]#

Bases: object

Methods

find_SPE_HHV

find_SPE_combined

find_SPE_nominal

find_charges

find_photostat

find_waveforms

findrun

Method to find in NECTARCAMDATA the list of *.fits.fz files associated to run_number.

getRunFromDIRAC

Method to get run files from the EGI grid from input lfns.

get_GRID_location

Method to get run location on GRID from Elog (work in progress!)

static findrun(run_number, search_on_GRID=True, camera='NectarCAMQM')[source]#

Method to find in NECTARCAMDATA the list of *.fits.fz files associated to run_number.

Return type:

Tuple[Path, List[Path]]

Parameters:
run_number: int

the run number

search_on_GRID: bool

If enabled, search for data on the EGI grid via DIRAC, and fetch them automatically

camera: str

The NectarCAM camera for which data are search for. (Default: NectarCAMQM)

Returns:
(PosixPath,list):

the path list of *.fits.fz files

static getRunFromDIRAC(lfns)[source]#

Method to get run files from the EGI grid from input lfns.

Parameters:
lfns: list

list of lfns path

static get_GRID_location(run_number, output_lfns=True, basepath='/vo.cta.in2p3.fr/nectarcam/', fromElog=False, username=None, password=None)[source]#

Method to get run location on GRID from Elog (work in progress!)

Parameters:
run_number: int

Run number

output_lfns: bool, optional

If True, return lfns path of fits.gz files, else return parent directory of run location. Defaults to True.

basepath: str

The path on GRID where nectarCAM data are stored. Default to /vo.cta.in2p3.fr/nectarcam/.

fromElog: bool, optional

To force to use the method which read the Elog. Default to False. To use the method with DIRAC API.

username: _type_, optional

username for Elog login. Defaults to None.

password: _type_, optional

password for Elog login. Defaults to None.

Returns:
__get_GRID_location_ELog or __get_GRID_location_DIRAC