BatRateTemporalFinder¶
- class gdt.missions.swift.bat.finders.BatRateTemporalFinder(tstart, tstop=None)[source]¶
Bases:
SwiftTemporalFinderFind Swift BAT rate data that covers a given time or time range.
See
SwiftTemporalFinderfor details on how this class works.- Parameters:
tstart (astropy.Time) – A time of interest or start time for a time range of interest
tstop (astropy.Time, optional) – The stop time for a time range of interest.
Attributes Summary
The current working directory for each observation ID
The files that might contain data during the time or time range of interest
Number of files
Methods Summary
cd(tstart[, tstop])Changes the directories based on a time or time range of interest.
filter(filetype, extension)Filters the directories for the requested filetype and extension
get(download_dir, files[, verbose])Downloads files to a directory and returns the downloaded file paths
get_maxrate_lc(download_dir, **kwargs)Download the maximum count rate data spanning multiple timescales.
get_millisecond_lc(download_dir, **kwargs)Download the millisecond lightcurve data.
get_quadrant_lc(download_dir, **kwargs)Download the lightcurve data split into observing quadrants.
get_second_lc(download_dir, **kwargs)Download the 1-second resolution lightcurve.
List the maximum count rate data files.
List the millisecond lightcurve data files.
List the quadrant lightcurve data files.
List the 1-second resolution lightcurve data files.
Attributes Documentation
- cwd¶
The current working directory for each observation ID
- Type:
(list)
- files¶
The files that might contain data during the time or time range of interest
- Type:
(list)
- num_files¶
Number of files
- Type:
(int)
Methods Documentation
- cd(tstart, tstop=None)¶
Changes the directories based on a time or time range of interest.
- Parameters:
tstart (astropy.Time) – A time of interest or start time for a time range of interest
tstop (astropy.Time, optional) – The stop time for a time range of interest.
- filter(filetype, extension)¶
Filters the directories for the requested filetype and extension
- Parameters:
filetype (str) – The type of file, e.g. ‘cspec’
extension (str) – The file extension, e.g. ‘.pha’
- Returns:
(list)
- get(download_dir, files, verbose=True)¶
Downloads files to a directory and returns the downloaded file paths
- Parameters:
download_dir (str) – The download directory
files (list) – The list of files to download
verbose (bool, optional) – Set to False to turn off download status
- Returns:
(list) – The downloaded file paths
- get_maxrate_lc(download_dir, **kwargs)[source]¶
Download the maximum count rate data spanning multiple timescales.
- Parameters:
download_dir (str) – The download directory
verbose (bool, optional) – If True, will output the download status.
- Returns:
(list) – The file paths of the downloaded files
- get_millisecond_lc(download_dir, **kwargs)[source]¶
Download the millisecond lightcurve data.
- Parameters:
download_dir (str) – The download directory
verbose (bool, optional) – If True, will output the download status.
- Returns:
(list) – The file paths of the downloaded files
- get_quadrant_lc(download_dir, **kwargs)[source]¶
Download the lightcurve data split into observing quadrants.
- Parameters:
download_dir (str) – The download directory
verbose (bool, optional) – If True, will output the download status.
- Returns:
(list) – The file paths of the downloaded files