check_file_type.py¶
Utilities for checking what kind of file (HDF5 or FITS) a filepath is.
-
fits2hdf.check_file_type.check_file_type(file_name)¶ Check what kind of file a file is based on its filename
- file_name: str
- file name to check type of
- filetype: string
- string of either ‘fits’, ‘hdf’, or ‘unknown’
-
fits2hdf.check_file_type.is_fits(filepath)¶ Check if file is a FITS file
Returns True of False
- filepath: str
- Path to file
-
fits2hdf.check_file_type.is_hdf(filepath)¶
-
fits2hdf.check_file_type.is_hdf5(filepath)¶ Check if a file is a HDF5 file
Returns True of False
- filepath: str
- Path to file