Skip to content
module

marinvaders.alien_observation

Utiltiy module for finding observation for species.

The species reported by OBIS are used to search in WoRMS, GISD and NatCon observations sources and are merged if record was found as a alien means.

Functions
  • gisd(obis, gisd_file) (pandas.DataFrame) Process observations from GISD source.</>
  • natcon(obis) (pandas.DataFrame) Process observations for alien range from NatCon source.</>
  • observations(obis, species, gisd_file) (pd.DataFrame) Get the data from the available data sources.</>
  • worms(obis) (pandas.DataFrame) Process WoRMS observations for the specified species.</>
function

marinvaders.alien_observation.observations(obis, species=False, gisd_file=None)

Get the data from the available data sources.

Currently this obtains data from worms, natcon and GISD (optional)

Parameters
  • obis (pd.DataFrame) DataFrame of species from obis to be searched for
  • species (bool) Flag used for NatCon source. If False then it returns all NatCon data and the obis parameter is omitted. If True the NatCon returns only subset specified in obis parameter.
  • gisd_file (str or pathlib.Path, optional) Location of the GISD data file (in json format)
Returns (pd.DataFrame)

DataFrame with all data but with dropped duplicates.

function

marinvaders.alien_observation.worms(obis)

Process WoRMS observations for the specified species.

Returns (pandas.DataFrame)

Worms data

function

marinvaders.alien_observation.gisd(obis, gisd_file)

Process observations from GISD source.

Parameters
  • gisd_file (Path) JSON file containing the gisd data
Returns (pandas.DataFrame)

GISD data

function

marinvaders.alien_observation.natcon(obis=None)

Process observations for alien range from NatCon source.

Returns (pandas.DataFrame)

Natcon data