webbpsf_ext.utils.check_fitsgz

webbpsf_ext.utils.check_fitsgz(opd_file, inst_str=None)[source]

WebbPSF FITS files can be either .fits or compressed .gz. Search for .fits by default, then .fits.gz.

Parameters
  • opd_file (str) – Name of FITS file, either .fits or .fits.gz

  • inst_str (None or str) – If OPD file is instrument-specific, then specify here. Will look in instrument OPD directory. If set to None, then also checks opd_file for an instrument-specific string to determine if to look in instrument OPD directory, otherwise assume file name is in webbpsf data base directory.