Skip to content

Indicator I2 : Annual catches by gear

Norbert IRD edited this page Feb 26, 2014 · 4 revisions

Description

This indicator produce a graph of annual catches by gear for each species present in the input data. 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 "i1i2_mv".

Use

require(IRDTunaAtlas)
#fetch data from IRD WFS for indicators I2, with restriction on species="YFT"
df <- readData(connectionType="remote", dataType="WFS",
               url="http://mdst-macroes.ird.fr:8080/constellation/WS/wfs/tuna_atlas",
               layer="ns11:i1i2_mv", 
               ogcFilter='<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"><ogc:PropertyIsEqualTo><ogc:PropertyName>species</ogc:PropertyName><ogc:Literal>YFT</ogc:Literal></ogc:PropertyIsEqualTo></ogc:Filter>')
#build the I2 indicator
result <- Atlas_i2_SpeciesByGear(df=df, 
                                 yearAttributeName="year", 
                                 gearTypeAttributeName="gear_type", 
                                 speciesAttributeName="species", 
                                 valueAttributeName="value")

Output examples

CAUTION : following examples are not from real / validated data


Example for Thunnus albacares (yellowfin tuna): I2 YFT png I2 YFT rdf