nectarchain.data.management.DataManagement#
- class DataManagement[source]#
Bases:
objectMethods
find_SPE_HHVfind_SPE_combinedfind_SPE_nominalfind_chargesfind_photostatfind_waveformsMethod to find in NECTARCAMDATA the list of
*.fits.fzfiles associated to run_number.Method to get run files from the EGI grid from input lfns.
Method to get run location on GRID from Elog (work in progress!)
- static findrun(run_number, search_on_GRID=True)[source]#
Method to find in NECTARCAMDATA the list of
*.fits.fzfiles associated to run_number.
- 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