find_latest#

gwpy.io.datafind.find_latest(
observatory: str,
frametype: str,
gpstime: SupportsToGps | None = None,
*,
allow_tape: bool = False,
**kwargs,
) str[source]#

Find the path of the latest file of a given data type.

Parameters:
observatorystr

The observatory for which to search, as a single character, e.g "G" for GEO-600.

frametypestr

Name of dataset to match.

gpstimeLIGOTimeGPS, float, str, optional

GPS time to search for a file, any input parseable by to_gps is fine Default (None) is to search for the most recent file available.

allow_tapebool, optional

If False (default) raise OSError if 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_latest or gwdatafind.find_urls.

See also

gwdatafind.find_latest

For details of how the latest URL is discovered and available keyword arguments. This is called when gpstime=None is given.

gwdatafind.find_urls

For details of how the URLs are discovered when gpstime is given, and available keyword arguments.