This R package has the goal of lowering the barrier to prepare data for upload to the ESAS database. Additionally, it also provides functionality to read data from ESAS, as well as some basic analysis functions.
The package starts at 5 tables as described by the ICES Data Model. And works towards a single table, as expected by the ESAS Data Portal.
ICES: International Council for the Exploration of the Sea hosts the ESAS database (European Seabirds at Sea).
Inventory of the available data: https://esas.ices.dk/inventory
Uploading to ESAS happens as a single large csv file ('mega table'), that consists of the 5 tables from the ICES Data Model combined.
Downloading from ESAS returns the 5 tables according to the ESAS data model.
The tables are also described in DATSU.
Some fields are required.
Some fields allow multiple values, these are combined with ~. Most tables have a free text Notes field.
link: https://esas.ices.dk/webservices
There was a comment in inbo/esas#2 that the API was quite slow.
inbo/esas#1
read_esas() : empty stub functionRead_ESAS_Tables() : Read data & convert to ESAS 'mega-table', returns a listTransform_ESAS_Tables_4_Upload() : creates binded data.frame for upload from 5 tablesExport_ESAS_Upload_Matrix() : creates tsv in expected format to upload from returned data.frame by Transform_ESAS_Tables_4_Upload()
Create_ESAS_Table() create combined table as input for analysis functionsCalculate_Detection_P_Ship_Based_Surveys()Create_Seabird_Density_Cross_Table()ESAS functions example Execute distance analysis.RESAS functions example Prepare for upload.R