pangeo_fish.helpers.update_stations

pangeo_fish.helpers.update_stations#

pangeo_fish.helpers.update_stations(*, tag: DataTree, station_file_uri: str, method='merge', storage_options={}, **kwargs)#

Add or replace the acoustic receiver data of a tag.

Parameters:
  • tag (xarray.DataTree) – The tag to update

  • station_file_uri (str) – Path to the .csv file

  • method (str, default: "merge") – Operation to perform between the current and the new databases:

    • merge (default): the databases are merged.

    • replace: the current data is replaced by the new one.

  • storage_options (mapping, default: {}) – Dictionary containing storage options for connecting to the S3 bucket

Returns:

tag (xarray.DataTree) – The updated tag