Skip to content

Indicator I4 : Catches by month and by ocean

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

Description

This indicator build a graph of monthly (seasonal) catches by ocean for a 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 "i4_mv".

Use

library(IRDTunaAtlas)
#fetch data from IRD WFS for indicators I4, with restriction on species="YFT" and year >= 2000 and year <= 2005
df <- readData(connectionType="remote", dataType="WFS",
               url="http://mdst-macroes.ird.fr:8080/constellation/WS/wfs/tuna_atlas",
               layer="ns11:i4_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:PropertyIsLessThanOrEqualTo><ogc:PropertyName>year</ogc:PropertyName><ogc:Literal>2005</ogc:Literal></ogc:PropertyIsLessThanOrEqualTo><ogc:PropertyIsGreaterThanOrEqualTo><ogc:PropertyName>year</ogc:PropertyName><ogc:Literal>2000</ogc:Literal></ogc:PropertyIsGreaterThanOrEqualTo></ogc:And></ogc:Filter>')

#build the I4 indicator
result <- Atlas_i4_SpeciesMonthByOcean(df=df, 
                                          oceanAttributeName="ocean", 
                                          yearAttributeName="year", 
                                          monthAttributeName="month",
                                          speciesAttributeName="species", 
                                          valueAttributeName="value")

Output examples

CAUTION : following examples are not from real / validated data


Example for Thunnus albacares (yellowfin tuna) on 2000-2005: I4 YFT 2000-2005 I4 YFT 2000-2005 rdf