-
Notifications
You must be signed in to change notification settings - Fork 0
Indicator I8 : Catches relative contribution over other species
Norbert IRD edited this page Feb 26, 2014
·
1 revision
This indicator build a map of 5° degrees squares catches of selected species percent of total catches for the all species. An associated RDF file is also produced.
Data can come from http://mdst-macroes.ird.fr:8080/constellation/WS/wfs/tuna_atlas using the layer named "i6i7i8_mv".
library(IRDTunaAtlas)
#fetch data from IRD WFS for indicators I8, with restriction on year=2000
df <- readData(connectionType="remote", dataType="WFS",
url="http://mdst-macroes.ird.fr:8080/constellation/WS/wfs/tuna_atlas",
layer="ns11:i6i7i8_mv",
ogcFilter='<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"><ogc:PropertyIsEqualTo><ogc:PropertyName>year</ogc:PropertyName><ogc:Literal>2000</ogc:Literal></ogc:PropertyIsEqualTo></ogc:Filter>')
#build the I8 indicator with targeted species = "YFT"
result <- Atlas_i8_SpeciesMapRelativeCatchesOtherSpecies(df=df,
targetedSpecies="YFT",
geomIdAttributeName="geom_id",
yearAttributeName="year",
speciesAttributeName="species",
valueAttributeName="value")
CAUTION : following examples are not from real / validated data
Example for Thunnus albacares (yellowfin tuna) on 2000: I8 YFT 2000 rdf