filename2repo_path#
- xrtpy.util.filename2repo_path(filename, urlroot='https://xrt.cfa.harvard.edu/', join=False, verbose=False)[source]#
Given a filename with standard Level 1 or synoptics naming convention for files return its url in the CfA repository. Currently works for Level 1 data, Level 1 quality data, Level 1 JPEG200 images, Level 2 synoptics composite fits files and Level 2 grade maps. Files in the archive that are not currently supported include: Level 0 data, standard jpeg images (neither Level 1 nor synoptics), Level 2 synoptics that are not composites (synop_XRT*.fits files)
Parameters:#
- filename string, required
filename conforming to standard naming conventions
- urlroot string
root of the directory tree on the repository; by default the root on the CfA XRT repository
- join boolean, optional
if True, the joined path and filename are returned rather than just the url path
- verbose boolean, optional
if True, prints out inferred observation date and time for the data file
Returns:#
- path string
full url path for file (not including the file name)