segysak.coordinate_df
- segysak.coordinate_df(seisnc, coord=True, extras=None, linear_fillna=True)
From an xarray seisnc quickly create iline and xline df. If coords is True also return cdp_x and cdp_y.
Filling blank cdp_x and cdp_y spaces is particularly useful for using the xarray.plot option with x=cdp_x and y=cdp_y for geographic plotting.
- Parameters
seisnc (xarray.Dataset) – The seisnc file.
coord (bool, optional) – Include cdp_x and cdp_y in putput.
extras (list, optional) – Any extra keywords to include in the dataframe from the seisnc variables.
linear_fillna (bool, optional) – Defaults to True. This will use a planar fitting function to fill blank cdp_x and cdp_y spaces.
- Returns
pandas.DataFrame