ices-eg / WGJCDP-Cetaceans

Joint Cetaceans Data Portal (development)
Creative Commons Zero v1.0 Universal
4 stars 0 forks source link

New web services - data products #308

Open NikiClear opened 3 months ago

NikiClear commented 3 months ago

Produce web services showing summary of all data hold within the JCDP database, aggregated to C-Square scale.

cmspinto commented 3 months ago

@NikiClear are these queries per year or in total?

For example, what filters do you want to specify when asking the query? Year? Species?

NikiClear commented 3 months ago

@NikiClear are these queries per year or in total?

For example, what filters do you want to specify when asking the query? Year? Species?

That's a good question. Would it be possible to let the user select a date range (choose all data or between dates)? If not then perhaps to cover all bases, include all data and also per year?

MariaMakri commented 2 months ago

Hi Niki!

It is possible for the users to select which year(s) they would like to retrieve data for, so we can do it that way.

Another question that appeared is regarding the unique species. There are some sightings that are not identified at a species level. There is an example in the excel file attached here (this is for one Csquare, only for year 2008).

How do you think we should approach this?

cetaceans_webservices.xlsx

NikiClear commented 2 months ago

Hi Maria and Carlos

I think we would need to ignore the records which aren't recorded at species level, as the others chould be the same species or different but we would never know.

So for the example you sent the species list would be

or 5 unique species

cmspinto commented 2 months ago

An example of this webservice "Number of sightings/observations; as total number for all species and per species; where the sea state is <= 3" as a product:

https://[cetaceans.ices.dk/API/GetTotalSightingsperCsquareAndSpeciesAndYear](https://cetaceans.ices.dk/API/GetTotalSightingsperCsquareAndSpeciesAndYear)

cmspinto commented 1 month ago

Webservice of the data product (option of filtering per year or species): GetTotalSightingsperCsquareAndYear

cmspinto commented 1 month ago

Two of the requested product are on-line: https://cetaceans.ices.dk/webservices image

Let me know if there are any comments or questions.