tableXY#

class tableXY[source]#

Bases: object

Describes a scatter plot (x, y)

Methods

ccf

center_symmetrise

rtype:

None

clip

This function seems sometimes to not work without any reason WARNING

copy

rtype:

tableXY

diff

rtype:

None

find_max

rtype:

None

find_min

rtype:

None

fit_gaussian

guess = [amp,cen,width,offset]

fit_poly

rtype:

None

fit_sinus

rtype:

None

interpolate

rtype:

None

match_x

myscatter

rtype:

None

night_stack

rtype:

None

null

rtype:

None

order

rtype:

None

plot

For the mask give either the first and last index in a list [a,b] or the mask boolean

recenter

replace_nan

rtype:

None

rm_outliers

rtype:

None

rms_w

rtype:

None

rolling

rtype:

None

smooth

rtype:

None

species_recenter

rtype:

None

substract_polyfit

rtype:

None

suppress_mask

rtype:

None

suppress_nan

rtype:

None

switch

Switches, in place, the x and y coordinates

List of members of tableXY

__init__(x: Optional[Union[_SupportsArray[dtype], _NestedSequence[_SupportsArray[dtype]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]], y: Union[_SupportsArray[dtype], _NestedSequence[_SupportsArray[dtype]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]], /) None[source]#
__init__(x: Optional[Union[_SupportsArray[dtype], _NestedSequence[_SupportsArray[dtype]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]], y: Union[_SupportsArray[dtype], _NestedSequence[_SupportsArray[dtype]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]], yerr: Union[_SupportsArray[dtype], _NestedSequence[_SupportsArray[dtype]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]], /) None
__init__(x: Optional[Union[_SupportsArray[dtype], _NestedSequence[_SupportsArray[dtype]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]], y: Union[_SupportsArray[dtype], _NestedSequence[_SupportsArray[dtype]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]], xerr: Union[_SupportsArray[dtype], _NestedSequence[_SupportsArray[dtype]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]], yerr: Union[_SupportsArray[dtype], _NestedSequence[_SupportsArray[dtype]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]], /) None

Creates a tableXY

The constructor takes additional error vectors.

  • If no error vector is provided, the y error is estimated using the median absolute deviation

  • If one error vector is provided, it is attributed to the y error

  • If two error vectors are provided, they correspond to the x and y errors respectively

Parameters:
Raises:

ArgumentError – If more that two error vectors are provided

match_x(table_xy, replace=False)[source]#
myscatter(num=True, liste=None, factor=30, color='b', alpha=1, x_offset=0, y_offset=0, color_text='k', modulo=None)[source]#
Return type:

None

recenter(who='both', weight=False)[source]#
species_recenter(species, ref=None, replace=True)[source]#
Return type:

None

night_stack(db=0, bin_length=1, replace=False)[source]#
Return type:

None

rms_w()[source]#
Return type:

None

copy()[source]#
Return type:

tableXY

switch()[source]#

Switches, in place, the x and y coordinates

order(order=None)[source]#
Return type:

None

null()[source]#
Return type:

None

clip(min=[None, None], max=[None, None], replace=True, invers=False)[source]#

This function seems sometimes to not work without any reason WARNING

Return type:

None

suppress_nan()[source]#
Return type:

None

replace_nan()[source]#
Return type:

None

suppress_mask(mask)[source]#
Return type:

None

center_symmetrise(center, replace=False, Plot=False)[source]#
Return type:

None

plot(Show=False, color='k', label='', ls='', offset=0, mask=None, capsize=3, fmt='o', markersize=6, zorder=1, species=None, alpha=1.0, modulo=None, modulo_norm=False, cmap='viridis', new=False, phase_mod=0, periodic=False, frac=1.0, yerr=True)[source]#

For the mask give either the first and last index in a list [a,b] or the mask boolean

Return type:

None

find_max(vicinity=3)[source]#
Return type:

None

find_min(vicinity=3)[source]#
Return type:

None

smooth(box_pts=5, shape='rectangular', replace=True)[source]#
Return type:

None

diff(replace=True)[source]#
Return type:

None

substract_polyfit(deg, replace=False, Draw=False)[source]#
Return type:

None

rolling(window=1, quantile=None, median=True, iq=True)[source]#
Return type:

None

fit_poly(Draw=False, d=2, color='r', cov=True)[source]#
Return type:

None

fit_sinus(Draw=False, d=0, guess=[0, 1, 0, 0, 0, 0], p_max=500, report=False, c='r')[source]#
Return type:

None

rm_outliers(who='Y', m=2, kind='inter', replace=True)[source]#
Return type:

None

fit_gaussian(guess=None, Plot=True, color='r', free_offset=True)[source]#

guess = [amp,cen,width,offset]

Return type:

None

interpolate(new_grid='auto', method='cubic', replace=True, interpolate_x=True, fill_value='extrapolate', scale='lin')[source]#
Return type:

None

ccf(mask, rv_sys=0, rv_range=15, weighted=True, ccf_oversampling=1, wave_min=None, wave_max=None)[source]#