def is_casalike(filename, **kwargs):
    from astropy.io import fits

    if not is_fits(filename):
        return False
    with fits.open(filename, ignore_missing_end=True) as hdulist:
        if len(hdulist) != 1:
            return False
        if hdulist[0].header['NAXIS'] != 4:
            return False

        from astropy.wcs import WCS
        w = WCS(hdulist[0].header)

    ax = [a.get('coordinate_type') for a in w.get_axis_types()]
    return ax == ['celestial', 'celestial', 'spectral', 'stokes']
Return a sequence of tuples which should be included in the export.
dataset/ETHPy150Open glue-viz/glue/glue/core/data_factories/fits.py/is_casalike--crossover with--dataset/ETHPy150Open ojii/django-csv-export/csvexport/admin.py/CSVExportableAdmin.get_csv_export_fields