data_models/data_model_helpers.py
def convert_hdf_to_image(f):
    """ Convert HDF root to an Image

    :param f:
    :return:
    """
    if 'ARL_data_model' in f.attrs.keys() and f.attrs['ARL_data_model'] == "Image":
        data = numpy.array(f['data'])
        polarisation_frame = PolarisationFrame(f.attrs['polarisation_frame'])
        wcs = WCS(f.attrs['wcs'])
        im = create_image_from_array(data, wcs=wcs,
                                 polarisation_frame=polarisation_frame)
        return im
    else:
        return None
 Convert HDF root to an Image

    :param f:
    :return:
    
Convert HDF root to an Image
Convert HDF root to an Image
def convert_hdf_to_image(f):
    if 'ARL_data_model' in f.attrs.keys() and f.attrs['ARL_data_model'] == "Image":
        data = numpy.array(f['data'])
        polarisation_frame = PolarisationFrame(f.attrs['polarisation_frame'])
        wcs = WCS(f.attrs['wcs'])
        im = create_image_from_array(data, wcs=wcs,
                                 polarisation_frame=polarisation_frame)
        return im
    else:
        return None
def convert_hdf_to_image ( f ) : if 'ARL_data_model' in f . attrs . keys ( ) and f . attrs [ 'ARL_data_model' ] == "Image" : data = numpy . array ( f [ 'data' ] ) polarisation_frame = PolarisationFrame ( f . attrs [ 'polarisation_frame' ] ) wcs = WCS ( f . attrs [ 'wcs' ] ) im = create_image_from_array ( data , wcs = wcs , polarisation_frame = polarisation_frame ) return im else : return None
Convert HDF root to an Image
Convert HDF root to an Image
""" Convert HDF root to an Image

    :param f:
    :return:
    """
None
f
None