Attention

From version v0.5, SEGY-SAK has migrated the documentation to https://trhallam.github.io/segysak/latest/.

This documentation will be archived from v0.6.

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