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

    :param f:
    :return:
    """
    assert f.attrs['ARL_data_model'] == "PointingTable", "Not a PointingTable"
    receptor_frame = ReceptorFrame(f.attrs['receptor_frame'])
    frequency = numpy.array(f.attrs['frequency'])
    data = numpy.array(f['data'])
    s = f.attrs['pointingcentre_coords'].split()
    ss = [float(s[0]), float(s[1])] * u.deg
    pointingcentre = SkyCoord(ra=ss[0], dec=ss[1], frame=f.attrs['pointingcentre_frame'])
    pointing_frame = f.attrs['pointing_frame']
    configuration = convert_configuration_from_hdf(f)
    pt = PointingTable(data=data, frequency=frequency, receptor_frame=receptor_frame, pointing_frame=pointing_frame,
                       pointingcentre=pointingcentre, configuration=configuration)
    return pt
 Convert HDF root to a PointingTable

    :param f:
    :return:
    
Convert HDF root to a PointingTable
Convert HDF root to a PointingTable
def convert_hdf_to_pointingtable(f):
    assert f.attrs['ARL_data_model'] == "PointingTable", "Not a PointingTable"
    receptor_frame = ReceptorFrame(f.attrs['receptor_frame'])
    frequency = numpy.array(f.attrs['frequency'])
    data = numpy.array(f['data'])
    s = f.attrs['pointingcentre_coords'].split()
    ss = [float(s[0]), float(s[1])] * u.deg
    pointingcentre = SkyCoord(ra=ss[0], dec=ss[1], frame=f.attrs['pointingcentre_frame'])
    pointing_frame = f.attrs['pointing_frame']
    configuration = convert_configuration_from_hdf(f)
    pt = PointingTable(data=data, frequency=frequency, receptor_frame=receptor_frame, pointing_frame=pointing_frame,
                       pointingcentre=pointingcentre, configuration=configuration)
    return pt
def convert_hdf_to_pointingtable ( f ) : assert f . attrs [ 'ARL_data_model' ] == "PointingTable" , "Not a PointingTable" receptor_frame = ReceptorFrame ( f . attrs [ 'receptor_frame' ] ) frequency = numpy . array ( f . attrs [ 'frequency' ] ) data = numpy . array ( f [ 'data' ] ) s = f . attrs [ 'pointingcentre_coords' ] . split ( ) ss = [ float ( s [ 0 ] ) , float ( s [ 1 ] ) ] * u . deg pointingcentre = SkyCoord ( ra = ss [ 0 ] , dec = ss [ 1 ] , frame = f . attrs [ 'pointingcentre_frame' ] ) pointing_frame = f . attrs [ 'pointing_frame' ] configuration = convert_configuration_from_hdf ( f ) pt = PointingTable ( data = data , frequency = frequency , receptor_frame = receptor_frame , pointing_frame = pointing_frame , pointingcentre = pointingcentre , configuration = configuration ) return pt
Convert HDF root to a PointingTable
Convert HDF root to a PointingTable
""" Convert HDF root to a PointingTable

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