mnp.preparation.species_database

Module Contents

Classes

SpeciesDataBase

Read and store the master species list, plus several helper dictionaries

API

class mnp.preparation.species_database.SpeciesDataBase(species_names: pandas.DataFrame)

Read and store the master species list, plus several helper dictionaries

Initialization

is_species(identifier: str) bool

Determine if an identifier string is species code, local name or scientific name in the master species table

identifier: species code, local name or scientific name or anything else

is_species: boolean if provided identifier matches a species in the master species table.

any2any(identifier: str, of: str) str

Generic mapping between species codes, local names, scientific names

identifier: species code, local name or scientific name or anything else of: output format, chose from {code, local, scientific}

species code, local name or scientific name