Data discovery utilities
- gwdetchar.io.datafind.check_flag(flag, gpstime, duration, pad)¶
Check that a state flag is active during an entire analysis segment
- gwdetchar.io.datafind.get_data(channel, start, end, frametype=None, source=None, nproc=1, verbose=False, **kwargs)¶
Retrieve data for given channels within a certain time range
either a single channel name, or a list of channel names
GPS start time of requested data
GPS end time of requested data
name of frametype in which channel(s) are stored, default:
path(s) of a LAL-format cache file or individual data file, default:
number of parallel processes to use, uses serial process by default
print verbose output about NDS progress, default: False
collection of data for the requested channels in the requested time range
str, then a
TimeSeriesobject will be returned, else the result is a
frametypeargument should be used to read from archived frame files, while
sourceshould be used to read from a local cache or specific data file. If either fails, or if neither is passed, this function will attempt to get data over an NDS server.
frametypeis used to read from the archive, any channels missing from the first or last frame file in the requested time range will be ignored.
- gwdetchar.io.datafind.remove_missing_channels(channels, gwfcache)¶
Find and remove channels from a given list that are not available in a given cache of frame files
list of requested channels
list of paths to .gwf files
list of common channels found in the first and last files in the cache
for the utility used to identify frame contents
As a shorthand, this utility checks
channelsagainst only the first and last frame files in
gwfcache. This saves time and memory by not loading tables of contents for large numbers of very long data files.
For every channel requested that is not available in
UserWarningwill be raised.