pulsarbat.PhasePredictor#
- class pulsarbat.PhasePredictor(data=None, *args, **kwargs)[source]#
Pulsar phase predictor.
- Parameters
- datasequence of PhasePredictorEntry
A list of phase prediction entries. All entries must have the same ‘psr’, ‘obs’, ‘freq’, and ‘span’ values.
Methods
__init__([data])add_column(col[, index, name, ...])Add a new column to the table using
colas input.add_columns(cols[, indexes, names, copy, ...])Add a list of new columns the table using
colsdata objects.add_index(colnames[, engine, unique])Insert a new index among one or more columns.
add_row([vals, mask])Add a new row to the end of the table.
argsort([keys, kind, reverse])Return the indices which would sort the table according to one or more key columns.
as_array([keep_byteorder, names])Return a new copy of the table in the form of a structured np.ndarray or np.ma.MaskedArray object (as appropriate).
convert_bytestring_to_unicode()Convert bytestring columns (dtype.kind='S') to unicode (dtype.kind='U') using UTF-8 encoding.
convert_unicode_to_bytestring()Convert unicode columns (dtype.kind='U') to bytestring (dtype.kind='S') using UTF-8 encoding.
copy([copy_data])Return a copy of the table.
f0(times[, n])Predict rotation frequency or its derivatives for given times.
field(item)Return column[item] for recarray compatibility.
filled([fill_value])Return copy of self, with masked values filled.
from_pandas(dataframe[, index, units])Create a ~astropy.table.Table from a
pandas.DataFrameinstancefrom_polyco(path)Create a PhasePredictor instance by reading tempo1-style polycos.
group_by(keys)Group this table by the specified
keysindex_column(name)Return the positional index of column
name.index_mode(mode)Return a context manager for an indexing mode.
insert_row(index[, vals, mask])Add a new row before the given
indexposition in the table.items()itercols()Iterate over the columns of this table.
iterrows(*names)Iterate over rows of table returning a tuple of values for each row.
keep_columns(names)Keep only the columns specified (remove the others).
keys()more([max_lines, max_width, show_name, ...])Interactively browse table with a paging interface.
pformat([max_lines, max_width, show_name, ...])Return a list of lines for the formatted string representation of
pformat_all([max_lines, max_width, ...])Return a list of lines for the formatted string representation of
phasepol(t0)Phase prediction polynomial centered at given timestamp.
pprint([max_lines, max_width, show_name, ...])Print a formatted string representation of the table.
pprint_all([max_lines, max_width, ...])Print a formatted string representation of the entire table.
remove_column(name)Remove a column from the table.
remove_columns(names)Remove several columns from the table.
remove_indices(colname)Remove all indices involving the given column.
remove_row(index)Remove a row from the table.
remove_rows(row_specifier)Remove rows from the table.
rename_column(name, new_name)Rename a column.
rename_columns(names, new_names)Rename multiple columns.
replace_column(name, col[, copy])Replace column
namewith the newcolobject.reverse()Reverse the row order of table rows.
round([decimals])Round numeric columns in-place to the specified number of decimals.
show_in_browser([max_lines, jsviewer, ...])Render the table in HTML and show it in a web browser.
show_in_notebook([tableid, css, ...])Render the table in HTML and show it in the IPython notebook.
sort([keys, kind, reverse])Sort the table according to one or more keys.
to_pandas([index, use_nullable_int])Return a
pandas.DataFrameinstanceupdate(other[, copy])Perform a dictionary-style update and merge metadata.
values()values_equal(other)Element-wise comparison of table with another table, list, or scalar.
Attributes
ColumnClasscolnamesdtypegroupshas_masked_columnsTrue if table has any
MaskedColumncolumns.has_masked_valuesTrue if column in the table has values which are masked.
has_mixin_columnsTrue if table has any mixin columns (defined as columns that are not Column subclasses).
ilocReturn a TableILoc object that can be used for retrieving indexed rows in the order they appear in the index.
indicesReturn the indices associated with columns of the table as a TableIndices object.
infointervalsIntervals where the predictor is valid and should be used.
locReturn a TableLoc object that can be used for retrieving rows by index in a given data range.
loc_indicesReturn a TableLocIndices object that can be used for retrieving the row indices corresponding to given table index key value or values.
maskmaskedmetapprint_exclude_namesMaintain tuple that controls table column visibility for print output.
pprint_include_namesMaintain tuple that controls table column visibility for print output.
readwrite