osmose-model / osmose-web-api

Web service that generates Osmose configuration files from data sources like Fishbase and SeaLifeBase. Used by https://www.config.osmose-model.org .
MIT License
2 stars 2 forks source link

Providing accessibility coefficients for the juvenile and adult life stages of focal functional groups #133

Closed agruss2 closed 6 years ago

agruss2 commented 7 years ago

For each focal functional group, two accessibility coefficients should be provided in the "predation-accessibility.csv" file: one for juveniles, and one for adults. To be able to implement this, the API needs to consider the following parameters from the "osm_param-predation.csv" file: (1) "predation.accessibility.stage.structure"; and (2) the "predation.accessibility.stage.threshold.spX" parameters, which are ages in years if predation.accessibility.stage.structure = age, or sizes in cm if predation.accessibility.stage.structure = size. Ultimately, one should obtain a "predation-accessibility.csv" file like this one: predation-accessibility.zip. (This is the "predation-accessibility.csv" file for the OSMOSE model of the West Florida Shelf). Note that, because the current configuration of the bridge between FishBase/SeaLifeBase and OSMOSE, the accessibility coefficients of the juvenile and adult stages of a given focal functional group will be identical. However, we want to provide two sets of accessibility coefficients (two columns in the "predation-accessibility.csv" file) for each focal functional group (one set of accessibility coefficients for juveniles, and one set of accessibility coefficients for adults), so as to give the possibility to the user to alter the values provided by the bridge between FishBase/SeaLifeBase and OSMOSE if they want. Many thanks.

jhpoelen commented 6 years ago

Please review the first pass at implementing this feature.

jhpoelen commented 6 years ago

I've just generated a table containing using the Iceland Shelf/Sea defaults. Truncated table looks like -

v Prey / Predator > fishpelagicsm < 3 year fishpelagicsm > 3 year fishpelagicmd < 2 year fishpelagicmd > 2 year
fishpelagicsm < 3 year 0.8 0.8 0.4 0.4
fishpelagicsm > 3 year 0.8 0.8 0.4 0.4
fishpelagicmd < 2 year 0.4 0.4 0.8 0.8
fishpelagicmd > 2 year 0.4 0.4 0.8 0.8
fishpelagiclg < 2.5 year 0.4 0.4 0.4 0.4
fishpelagiclg > 2.5 year 0.4 0.4 0.4 0.4
fishdemersalsm < 2 year 0.4 0.4 0.4 0.4
fishdemersalsm > 2 year 0.4 0.4 0.4 0.4
fishdemersalmd < 3 year 0.4 0.4 0.08 0.08
agruss2 commented 6 years ago

Perfect, thanks a lot! I just ran a test for the Iceland Shelf/Sea ecosystem, and the behavior now is as expected. I am therefore closing the present issue.