-
Notifications
You must be signed in to change notification settings - Fork 0
Indicator I10 : Size frequencies by decade
Norbert IRD edited this page Feb 27, 2014
·
1 revision
This indicator build a graph relative contribution of size frequencies in catches for a species by decade. 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 "i9i10_mv".
library(IRDTunaAtlas)
#fetch data from IRD WFS for indicators I10, with restriction on species="YFT" and year >= 1980 and year <= 2005
df <- readData(connectionType="remote", dataType="WFS",
url="http://mdst-macroes.ird.fr:8080/constellation/WS/wfs/tuna_atlas",
layer="ns11:i9i10_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>1980</ogc:Literal></ogc:PropertyIsGreaterThanOrEqualTo></ogc:And></ogc:Filter>')
#build the I10 indicator
result <- Atlas_i10_RelativeSizeFrequenciesByDecade(df=df,
temporalAgg=10,
yearAttributeName="year",
speciesAttributeName="species",
sizeClassLowerBoundAttributeName="class_low",
sizeClassUpperBoundAttributeName="class_up",
fishCountAttributeName="fish_count")
CAUTION : following examples are not from real / validated data
Example for Thunnus albacares (yellowfin tuna) for 1980-2005: I10 YFT 1980-2005 rdf