data_models/data_model_helpers.py
def convert_hdf_to_griddata(f):
    """ Convert HDF root to a GridData

    :param f:
    :return:
    """
    assert f.attrs['ARL_data_model'] == "GridData", "Not a GridData"
    data = numpy.array(f['data'])
    polarisation_frame = PolarisationFrame(f.attrs['polarisation_frame'])
    grid_wcs = WCS(f.attrs['grid_wcs'])
    projection_wcs = WCS(f.attrs['projection_wcs'])
    gd = create_griddata_from_array(data, grid_wcs=grid_wcs, projection_wcs=projection_wcs,
                                 polarisation_frame=polarisation_frame)
    return gd
 Convert HDF root to a GridData

    :param f:
    :return:
    
Convert HDF root to a GridData
Convert HDF root to a GridData
def convert_hdf_to_griddata(f):
    assert f.attrs['ARL_data_model'] == "GridData", "Not a GridData"
    data = numpy.array(f['data'])
    polarisation_frame = PolarisationFrame(f.attrs['polarisation_frame'])
    grid_wcs = WCS(f.attrs['grid_wcs'])
    projection_wcs = WCS(f.attrs['projection_wcs'])
    gd = create_griddata_from_array(data, grid_wcs=grid_wcs, projection_wcs=projection_wcs,
                                 polarisation_frame=polarisation_frame)
    return gd
def convert_hdf_to_griddata ( f ) : assert f . attrs [ 'ARL_data_model' ] == "GridData" , "Not a GridData" data = numpy . array ( f [ 'data' ] ) polarisation_frame = PolarisationFrame ( f . attrs [ 'polarisation_frame' ] ) grid_wcs = WCS ( f . attrs [ 'grid_wcs' ] ) projection_wcs = WCS ( f . attrs [ 'projection_wcs' ] ) gd = create_griddata_from_array ( data , grid_wcs = grid_wcs , projection_wcs = projection_wcs , polarisation_frame = polarisation_frame ) return gd
Convert HDF root to a GridData
Convert HDF root to a GridData
""" Convert HDF root to a GridData

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