find_latest#
- gwpy.io.datafind.find_latest(
- observatory: str,
- frametype: str,
- gpstime: SupportsToGps | None = None,
- *,
- allow_tape: bool = False,
- **kwargs,
Find the path of the latest file of a given data type.
- Parameters:
- observatory
str The observatory for which to search, as a single character, e.g
"G"for GEO-600.- frametype
str Name of dataset to match.
- gpstime
LIGOTimeGPS,float,str, optional GPS time to search for a file, any input parseable by
to_gpsis fine Default (None) is to search for the most recent file available.- allow_tape
bool, optional If
False(default) raiseOSErrorif the ‘latest’ URL available points to a local path stored on tape (not on spinning disk).- kwargs
Other keyword arguments are passed to
gwdatafind.find_latestorgwdatafind.find_urls.
- observatory
See also
gwdatafind.find_latestFor details of how the latest URL is discovered and available keyword arguments. This is called when
gpstime=Noneis given.gwdatafind.find_urlsFor details of how the URLs are discovered when
gpstimeis given, and available keyword arguments.