Skip to content

Indicator I6 : Catches by 5x5 degrees

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

Description

This indicator build a map of 5x5 degrees squares aggregated catches. 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 indicator I6, 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 I6 indicator
result <- Atlas_i6_SpeciesMap(df=df, 
                              geomIdAttributeName="geom_id",
                              yearAttributeName="year", 
                              speciesAttributeName="species",                                         
                              valueAttributeName="value")

Output examples

CAUTION : following examples are not from real / validated data


Example for Thunnus albacares (yellowfin tuna) on 2000: I6 YFT 2000 png I6 YFT 2000 rdf