Skip to content

Indicator I11 : Catches by country

Norbert IRD edited this page Feb 27, 2014 · 1 revision

Description

This indicator build a map of 5x5 degrees squares catches relative part by countries. 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".

Use

library(IRDTunaAtlas)

#fetch data from IRD WFS for indicators I11 with restriction on species="YFT" and 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:And><ogc:PropertyIsEqualTo><ogc:PropertyName>species</ogc:PropertyName><ogc:Literal>YFT</ogc:Literal></ogc:PropertyIsEqualTo><ogc:PropertyIsEqualTo><ogc:PropertyName>year</ogc:PropertyName><ogc:Literal>2000</ogc:Literal></ogc:PropertyIsEqualTo></ogc:And></ogc:Filter>')

#build the I11 indicator
result <- Atlas_i11_CatchesByCountry(df=df, 
                                     geomIdAttributeName="geom_id",
                                     countryAttributeName="country", 
                                     speciesAttributeName="species",                                         
                                     valueAttributeName="value")

Output examples

CAUTION : following examples are not from real / validated data


Example for Thunnus albacares (yellowfin tuna) for 1980-2005: I11 YFT 2000 png I11 YFT 2000 rdf