-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
707 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Intercatch submission for WGCSE | ||
|
||
Contains scripts used for produsing SI lines for intercatch submission for resubmission of LEZ catches in 2018 to WGCSE 2020. | ||
Fleet decompositions (metiers) are merged in from logooks when available. For both logbooks and landing necessary fleet configurations are made in csv files in data/ | ||
|
||
other configuration of area codes, stocks and metiers are in data/*.csv | ||
|
||
data files and shapefiles are not included in repository, but running the code assumes they are in data/ | ||
|
||
scripts generally assume that the directory where this readme-file is located is the current working directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
UTF-8 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]] |
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 2 additions & 0 deletions
2
intercatch/wgcse_2019/data/Hovedområder_fom_2018/Homr_2018.shp.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<metadata xml:lang="nb"><Esri><CreaDate>20190118</CreaDate><CreaTime>13175100</CreaTime><ArcGISFormat>1.0</ArcGISFormat><SyncOnce>FALSE</SyncOnce><DataProperties><lineage><Process ToolSource="c:\program files (x86)\arcgis\desktop10.0\ArcToolbox\Toolboxes\Data Management Tools.tbx\DefineProjection" Date="20141210" Time="103709">DefineProjection 493 PROJCS['WGS_1984_UTM_Zone_33N',GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',500000.0],PARAMETER['False_Northing',0.0],PARAMETER['Central_Meridian',15.0],PARAMETER['Scale_Factor',0.9996],PARAMETER['Latitude_Of_Origin',0.0],UNIT['Meter',1.0]]</Process><Process ToolSource="c:\program files (x86)\arcgis\desktop10.0\ArcToolbox\Toolboxes\Data Management Tools.tbx\DefineProjection" Date="20141210" Time="103757">DefineProjection 493 GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]]</Process></lineage><itemProps><itemLocation><linkage Sync="TRUE">file://\\FDIR26776\E$\ICES_nye_områder\GIS\Kompl_homnr.shp</linkage><protocol Sync="TRUE">Local Area Network</protocol></itemLocation><itemName Sync="TRUE">Kompl_homnr</itemName><imsContentType Sync="TRUE">002</imsContentType><itemSize Sync="TRUE">0.000</itemSize></itemProps><coordRef><type Sync="TRUE">Geographic</type><geogcsn Sync="TRUE">GCS_WGS_1984</geogcsn><csUnits Sync="TRUE">Angular Unit: Degree (0.017453)</csUnits><peXml Sync="TRUE"><GeographicCoordinateSystem xsi:type='typens:GeographicCoordinateSystem' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xs='http://www.w3.org/2001/XMLSchema' xmlns:typens='http://www.esri.com/schemas/ArcGIS/10.3'><WKT>GEOGCS[&quot;GCS_WGS_1984&quot;,DATUM[&quot;D_WGS_1984&quot;,SPHEROID[&quot;WGS_1984&quot;,6378137.0,298.257223563]],PRIMEM[&quot;Greenwich&quot;,0.0],UNIT[&quot;Degree&quot;,0.0174532925199433],AUTHORITY[&quot;EPSG&quot;,4326]]</WKT><XOrigin>-400</XOrigin><YOrigin>-400</YOrigin><XYScale>11258999068426.238</XYScale><ZOrigin>-100000</ZOrigin><ZScale>10000</ZScale><MOrigin>-100000</MOrigin><MScale>10000</MScale><XYTolerance>8.983152841195215e-009</XYTolerance><ZTolerance>0.001</ZTolerance><MTolerance>0.001</MTolerance><HighPrecision>true</HighPrecision><LeftLongitude>-180</LeftLongitude><WKID>4326</WKID><LatestWKID>4326</LatestWKID></GeographicCoordinateSystem></peXml></coordRef></DataProperties><SyncDate>20171020</SyncDate><SyncTime>14260600</SyncTime><ModDate>20171020</ModDate><ModTime>14260600</ModTime></Esri><dataIdInfo><envirDesc Sync="TRUE">Microsoft Windows 7 Version 6.1 (Build 7601) Service Pack 1; Esri ArcGIS 10.3.1.4959</envirDesc><dataLang><languageCode value="nob" Sync="TRUE"></languageCode><countryCode value="NOR" Sync="TRUE"></countryCode></dataLang><idCitation><resTitle Sync="TRUE">Kompl_homnr</resTitle><presForm><PresFormCd value="005" Sync="TRUE"></PresFormCd></presForm></idCitation><spatRpType><SpatRepTypCd value="001" Sync="TRUE"></SpatRepTypCd></spatRpType></dataIdInfo><mdLang><languageCode value="nob" Sync="TRUE"></languageCode><countryCode value="NOR" Sync="TRUE"></countryCode></mdLang><mdChar><CharSetCd value="004" Sync="TRUE"></CharSetCd></mdChar><distInfo><distFormat><formatName Sync="TRUE">Shapefile</formatName></distFormat><distTranOps><transSize Sync="TRUE">0.000</transSize></distTranOps></distInfo><mdHrLv><ScopeCd value="005" Sync="TRUE"></ScopeCd></mdHrLv><mdHrLvName Sync="TRUE">dataset</mdHrLvName><refSysInfo><RefSystem><refSysID><identCode code="4326" Sync="TRUE"></identCode><idCodeSpace Sync="TRUE">EPSG</idCodeSpace><idVersion Sync="TRUE">8.6.2</idVersion></refSysID></RefSystem></refSysInfo><spatRepInfo><VectSpatRep><geometObjs Name="Kompl_homnr"><geoObjTyp><GeoObjTypCd value="002" Sync="TRUE"></GeoObjTypCd></geoObjTyp><geoObjCnt Sync="TRUE">0</geoObjCnt></geometObjs><topLvl><TopoLevCd value="001" Sync="TRUE"></TopoLevCd></topLvl></VectSpatRep></spatRepInfo><spdoinfo><ptvctinf><esriterm Name="Kompl_homnr"><efeatyp Sync="TRUE">Simple</efeatyp><efeageom code="4" Sync="TRUE"></efeageom><esritopo Sync="TRUE">FALSE</esritopo><efeacnt Sync="TRUE">0</efeacnt><spindex Sync="TRUE">FALSE</spindex><linrefer Sync="TRUE">FALSE</linrefer></esriterm></ptvctinf></spdoinfo><eainfo><detailed Name="Kompl_homnr"><enttyp><enttypl Sync="TRUE">Kompl_homnr</enttypl><enttypt Sync="TRUE">Feature Class</enttypt><enttypc Sync="TRUE">0</enttypc></enttyp><attr><attrlabl Sync="TRUE">FID</attrlabl><attalias Sync="TRUE">FID</attalias><attrtype Sync="TRUE">OID</attrtype><attwidth Sync="TRUE">4</attwidth><atprecis Sync="TRUE">0</atprecis><attscale Sync="TRUE">0</attscale><attrdef Sync="TRUE">Internal feature number.</attrdef><attrdefs Sync="TRUE">Esri</attrdefs><attrdomv><udom Sync="TRUE">Sequential unique whole numbers that are automatically generated.</udom></attrdomv></attr><attr><attrlabl Sync="TRUE">Shape</attrlabl><attalias Sync="TRUE">Shape</attalias><attrtype Sync="TRUE">Geometry</attrtype><attwidth Sync="TRUE">0</attwidth><atprecis Sync="TRUE">0</atprecis><attscale Sync="TRUE">0</attscale><attrdef Sync="TRUE">Feature geometry.</attrdef><attrdefs Sync="TRUE">Esri</attrdefs><attrdomv><udom Sync="TRUE">Coordinates defining the features.</udom></attrdomv></attr><attr><attrlabl Sync="TRUE">OBJECTID</attrlabl><attalias Sync="TRUE">OBJECTID</attalias><attrtype Sync="TRUE">Integer</attrtype><attwidth Sync="TRUE">10</attwidth><atprecis Sync="TRUE">10</atprecis><attscale Sync="TRUE">0</attscale></attr><attr><attrlabl Sync="TRUE">HAVOMR</attrlabl><attalias Sync="TRUE">HAVOMR</attalias><attrtype Sync="TRUE">String</attrtype><attwidth Sync="TRUE">50</attwidth><atprecis Sync="TRUE">0</atprecis><attscale Sync="TRUE">0</attscale></attr></detailed></eainfo><mdDateSt Sync="TRUE">20171020</mdDateSt></metadata> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# maps area definitions. Some of these may be inexact matches, should be inspected by plotting catch coordinates from logbooks | ||
ICESareatype ICESarea FDIRarea | ||
Div 27.4.b 41 | ||
Div 27.4.c 40 | ||
Div 27.4.a 42 | ||
Div 27.4.a 28 | ||
Div 27.4.a 08 | ||
Div 27.3.a 09 | ||
Div 27.6.b 47 | ||
Div 27.6.a 43 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
assembly HOVEDART_FAO | ||
#torsk | ||
DEF COD | ||
#sei | ||
DEF POK | ||
#hyse | ||
DEF HAD | ||
#selttvar | ||
DEF BLL | ||
#lysing | ||
DEF HKE | ||
#lange | ||
DEF LIN | ||
#breifalbb | ||
DEF MON | ||
#breifalbb | ||
DEF ANF | ||
#r�dspette | ||
DEF PLE | ||
#gr�steinbit | ||
DEF CAA | ||
#bl�steinbit | ||
DEF CAB | ||
#flekksteinbit | ||
DEF CAS | ||
#sm�rflyndre | ||
DEF WIT | ||
#brosme | ||
DEF USK | ||
#piggvar | ||
DEF TUR | ||
#lyr | ||
DEF POL | ||
#gapeflyndre | ||
DEF PAL | ||
#glassvar | ||
DEF MEG | ||
#tunge | ||
DEF SOL | ||
#lomre | ||
DEF LEM | ||
#kveite | ||
DEF HAL | ||
#sandflyndre | ||
DEF DAB | ||
#hvitting | ||
DEF WHG | ||
#bl�kveite | ||
DEF GHL | ||
#dyphavsreke pandalus | ||
CRU PAN | ||
#dyphavsreke | ||
CRU PRA | ||
#sj�kreps | ||
CRU NEP | ||
# | ||
# for WGNSSK | ||
# add MIS for that which is not DEF, CRU or FIF | ||
# | ||
#sild | ||
MIS HER | ||
#makrell | ||
MIS MAC | ||
#Pink cusk-eel* | ||
MIS CUS | ||
$tobis | ||
MIS SAN | ||
#skate og rokke | ||
MIS SRX | ||
#annen fisk | ||
MIS MZZ | ||
#kolmule | ||
MIS WHB | ||
#kr�kebolle | ||
MIS URC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,178 @@ | ||
# lists which metier to distribute catches on based on logbooks. these are specific to ICES areas | ||
# list for WKNSSK | ||
metier REDSKAP_FAO MASKEVIDDE ICESarea ICESareatype | ||
GNS_DEF_all_0_0_all GEN 1 27.4.a Div | ||
GNS_DEF_all_0_0_all GEN 63 27.4.a Div | ||
GNS_DEF_all_0_0_all GEN 66 27.4.a Div | ||
GNS_DEF_all_0_0_all GEN 74 27.4.a Div | ||
GNS_DEF_all_0_0_all GEN 94 27.4.a Div | ||
GNS_DEF_all_0_0_all GN 74 27.4.a Div | ||
GNS_DEF_all_0_0_all GN 75 27.4.a Div | ||
GNS_DEF_all_0_0_all GN 150 27.4.a Div | ||
GNS_DEF_all_0_0_all GN 180 27.4.a Div | ||
GNS_DEF_all_0_0_all GN 90 27.4.a Div | ||
GNS_DEF_all_0_0_all GN 148 27.4.a Div | ||
GNS_DEF_all_0_0_all GNS 76 27.4.a Div | ||
GNS_DEF_all_0_0_all GEN 76 27.4.a Div | ||
GNS_DEF_all_0_0_all GEN 84 27.4.a Div | ||
GNS_DEF_all_0_0_all GEN 85 27.4.a Div | ||
GNS_DEF_all_0_0_all GEN 90 27.4.a Div | ||
GNS_DEF_all_0_0_all GEN 93 27.4.a Div | ||
GNS_DEF_all_0_0_all GEN 126 27.4.a Div | ||
GNS_DEF_all_0_0_all GEN 132 27.4.a Div | ||
GNS_DEF_all_0_0_all GNS 138 27.4.a Div | ||
GNS_DEF_all_0_0_all GEN 140 27.4.a Div | ||
GNS_DEF_all_0_0_all GEN 148 27.4.a Div | ||
GNS_DEF_all_0_0_all GEN 150 27.4.a Div | ||
GNS_DEF_all_0_0_all GNS 162 27.4.a Div | ||
GNS_DEF_all_0_0_all GNS 163 27.4.a Div | ||
GNS_DEF_all_0_0_all GEN 168 27.4.a Div | ||
GNS_DEF_all_0_0_all GEN 169 27.4.a Div | ||
GNS_DEF_all_0_0_all GEN 180 27.4.a Div | ||
GNS_DEF_all_0_0_all GNS 190 27.4.a Div | ||
OTB_CRU_16-31_0_0_all OTB 16 27.4.a Div | ||
OTB_CRU_16-31_0_0_all OTB 18 27.4.a Div | ||
OTB_CRU_16-31_0_0_all TBS 18 27.4.a Div | ||
OTB_CRU_16-31_0_0_all TBS 26 27.4.a Div | ||
OTB_CRU_16-31_0_0_all TBS 20 27.4.a Div | ||
OTB_CRU_16-31_0_0_all OTB 20 27.4.a Div | ||
OTB_CRU_16-31_0_0_all TB 20 27.4.a Div | ||
OTB_CRU_16-31_0_0_all OTB 22 27.4.a Div | ||
OTB_CRU_16-31_0_0_all TB 24 27.4.a Div | ||
OTB_CRU_16-31_0_0_all TBS 30 27.4.a Div | ||
OTB_CRU_32-69_0_0_all TB 34 27.4.a Div | ||
OTB_CRU_32-69_0_0_all TBS 35 27.4.a Div | ||
OTB_CRU_32-69_0_0_all OTB 35 27.4.a Div | ||
OTB_CRU_32-69_0_0_all OTB 36 27.4.a Div | ||
OTB_CRU_32-69_0_0_all TBS 36 27.4.a Div | ||
OTB_CRU_32-69_0_0_all TB 38 27.4.a Div | ||
OTB_CRU_32-69_0_0_all TB 40 27.4.a Div | ||
OTB_CRU_32-69_0_0_all OTB 38 27.4.a Div | ||
OTB_CRU_32-69_0_0_all TBS 38 27.4.a Div | ||
OTB_CRU_32-69_0_0_all TBS 40 27.4.a Div | ||
OTB_CRU_32-69_0_0_all OTB 40 27.4.a Div | ||
OTB_CRU_32-69_0_0_all TBS 42 27.4.a Div | ||
OTB_CRU_32-69_0_0_all TBS 46 27.4.a Div | ||
OTB_CRU_32-69_0_0_all TBS 50 27.4.a Div | ||
OTB_CRU_32-69_0_0_all TB 50 27.4.a Div | ||
OTB_CRU_32-69_0_0_all TBS 60 27.4.a Div | ||
OTB_CRU_32-69_0_0_all OTB 60 27.4.a Div | ||
OTB_DEF_>=120_0_0_all TB 120 27.4.a Div | ||
OTB_DEF_>=120_0_0_all OTB 120 27.4.a Div | ||
OTB_DEF_>=120_0_0_all OTB 125 27.4.a Div | ||
OTB_DEF_>=120_0_0_all OTT 125 27.4.a Div | ||
OTB_DEF_>=120_0_0_all OTB 130 27.4.a Div | ||
OTB_DEF_>=120_0_0_all OTB 135 27.4.a Div | ||
OTB_DEF_>=120_0_0_all TBS 300 27.4.a Div | ||
OTB_DEF_>=120_0_0_all PT 120 27.4.a Div | ||
OTB_DEF_>=120_0_0_all PTB 120 27.4.a Div | ||
OTB_DEF_>=120_0_0_all PTB 125 27.4.a Div | ||
LLS_FIF_0_0_0_all LL NON 27.4.a Div | ||
LLS_FIF_0_0_0_all LLS NON 27.4.a Div | ||
SDN_DEF_>=120_0_0_all SSC 120 27.4.a Div | ||
SDN_DEF_>=120_0_0_all SV 120 27.4.a Div | ||
SDN_DEF_>=120_0_0_all SV 130 27.4.a Div | ||
SDN_DEF_>=120_0_0_all SSC 125 27.4.a Div | ||
SDN_DEF_>=120_0_0_all SSC 2180 27.4.a Div | ||
MIS_MIS_0_0_0_HC TBS 2 27.4.a Div | ||
MIS_MIS_0_0_0_HC TBS 3 27.4.a Div | ||
MIS_MIS_0_0_0_HC TBS 4 27.4.a Div | ||
MIS_MIS_0_0_0_HC TBS 5 27.4.a Div | ||
MIS_MIS_0_0_0_HC TB 5 27.4.a Div | ||
MIS_MIS_0_0_0_HC OTB 6 27.4.a Div | ||
MIS_MIS_0_0_0_HC TB 8 27.4.a Div | ||
MIS_MIS_0_0_0_HC TBS 10 27.4.a Div | ||
MIS_MIS_0_0_0_HC TM 5 27.4.a Div | ||
MIS_MIS_0_0_0_HC TM 10 27.4.a Div | ||
MIS_MIS_0_0_0_HC TM 30 27.4.a Div | ||
MIS_MIS_0_0_0_HC TM 32 27.4.a Div | ||
MIS_MIS_0_0_0_HC TM 34 27.4.a Div | ||
MIS_MIS_0_0_0_HC TM 40 27.4.a Div | ||
MIS_MIS_0_0_0_HC TM 44 27.4.a Div | ||
MIS_MIS_0_0_0_HC TM 50 27.4.a Div | ||
MIS_MIS_0_0_0_HC OTM 16 27.4.a Div | ||
MIS_MIS_0_0_0_HC OTM 40 27.4.a Div | ||
MIS_MIS_0_0_0_HC PS 15 27.4.a Div | ||
MIS_MIS_0_0_0_HC PS1 38 27.4.a Div | ||
MIS_MIS_0_0_0_HC TM 120 27.4.a Div | ||
# | ||
OTB_CRU_16-31_0_0_all OTB 16 27.4.b Div | ||
OTB_CRU_16-31_0_0_all TBS 26 27.4.b Div | ||
OTB_CRU_32-69_0_0_all TBS 35 27.4.b Div | ||
OTB_CRU_32-69_0_0_all OTB 35 27.4.b Div | ||
OTB_CRU_32-69_0_0_all TBS 36 27.4.b Div | ||
OTB_CRU_32-69_0_0_all TB 38 27.4.b Div | ||
OTB_CRU_32-69_0_0_all TB 40 27.4.b Div | ||
OTB_CRU_32-69_0_0_all TBS 42 27.4.b Div | ||
OTB_CRU_32-69_0_0_all TB 50 27.4.b Div | ||
OTB_DEF_>=120_0_0_all TBS 300 27.4.b Div | ||
OTB_DEF_>=120_0_0_all TB 120 27.4.b Div | ||
OTB_DEF_>=120_0_0_all OTB 120 27.4.b Div | ||
OTB_DEF_>=120_0_0_all OTB 125 27.4.b Div | ||
OTB_DEF_>=120_0_0_all OTB 130 27.4.b Div | ||
OTB_DEF_>=120_0_0_all OTB 135 27.4.b Div | ||
GNS_DEF_all_0_0_all GEN 76 27.4.b Div | ||
GNS_DEF_all_0_0_all GEN 84 27.4.b Div | ||
GNS_DEF_all_0_0_all GEN 85 27.4.b Div | ||
GNS_DEF_all_0_0_all GEN 90 27.4.b Div | ||
GNS_DEF_all_0_0_all GEN 150 27.4.b Div | ||
GNS_DEF_all_0_0_all GEN 165 27.4.b Div | ||
GNS_DEF_all_0_0_all GEN 169 27.4.b Div | ||
GNS_DEF_all_0_0_all GEN 180 27.4.b Div | ||
LLS_FIF_0_0_0_all LL NON 27.4.b Div | ||
LLS_FIF_0_0_0_all LLS NON 27.4.b Div | ||
SDN_DEF_>=120_0_0_all SSC 120 27.4.b Div | ||
MIS_MIS_0_0_0_HC TM 44 27.4.b Div | ||
MIS_MIS_0_0_0_HC TB 5 27.4.b Div | ||
MIS_MIS_0_0_0_HC TB 8 27.4.b Div | ||
# | ||
LLS_FIF_0_0_0_all LL NON 27.3.a Div | ||
LLS_FIF_0_0_0_all LLS NON 27.3.a Div | ||
OTB_CRU_16-31_0_0_all OTB 16 27.3.a Div | ||
OTB_CRU_16-31_0_0_all TBS 26 27.3.a Div | ||
OTB_CRU_16-31_0_0_all OTB 28 27.3.a Div | ||
OTB_CRU_16-31_0_0_all TBS 20 27.3.a Div | ||
OTB_CRU_16-31_0_0_all TBS 30 27.3.a Div | ||
OTB_CRU_32-69_0_0_all TBS 35 27.3.a Div | ||
OTB_CRU_32-69_0_0_all OTB 35 27.3.a Div | ||
OTB_CRU_32-69_0_0_all OTB 38 27.3.a Div | ||
OTB_CRU_32-69_0_0_all TB 40 27.3.a Div | ||
OTB_CRU_32-69_0_0_all OTB 40 27.3.a Div | ||
OTB_CRU_32-69_0_0_all OTB 42 27.3.a Div | ||
OTB_CRU_32-69_0_0_all OTB 45 27.3.a Div | ||
OTB_CRU_32-69_0_0_all OTB 50 27.3.a Div | ||
OTB_CRU_32-69_0_0_all OTB 60 27.3.a Div | ||
OTB_CRU_32-69_0_0_all TBS 36 27.3.a Div | ||
OTB_CRU_32-69_0_0_all TBS 37 27.3.a Div | ||
OTB_CRU_32-69_0_0_all TBS 38 27.3.a Div | ||
OTB_CRU_32-69_0_0_all TBN 38 27.3.a Div | ||
OTB_CRU_32-69_0_0_all TBS 40 27.3.a Div | ||
OTB_CRU_32-69_0_0_all TBS 42 27.3.a Div | ||
OTB_CRU_32-69_0_0_all TBS 46 27.3.a Div | ||
OTB_CRU_32-69_0_0_all TBS 50 27.3.a Div | ||
OTB_CRU_32-69_0_0_all TBS 60 27.3.a Div | ||
OTB_CRU_90-119_0_0_all TBN 90 27.3.a Div | ||
OTB_CRU_90-119_0_0_all OTB 90 27.3.a Div | ||
OTB_DEF _>=120_0_0_all OTB 120 27.3.a Div | ||
OTB_DEF _>=120_0_0_all OTB 125 27.3.a Div | ||
OTB_DEF _>=120_0_0_all TB 120 27.3.a Div | ||
OTB_DEF _>=120_0_0_all TB 125 27.3.a Div | ||
OTB_DEF _>=120_0_0_all OTB 130 27.3.a Div | ||
OTB_DEF _>=120_0_0_all OTB 135 27.3.a Div | ||
GNS_DEF_all_0_0_all GEN 63 27.3.a Div | ||
GNS_DEF_all_0_0_all GEN 66 27.3.a Div | ||
GNS_DEF_all_0_0_all GEN 74 27.3.a Div | ||
GNS_DEF_all_0_0_all GEN 76 27.3.a Div | ||
GNS_DEF_all_0_0_all GEN 90 27.3.a Div | ||
GNS_DEF_all_0_0_all GEN 140 27.3.a Div | ||
GNS_DEF_all_0_0_all GEN 180 27.3.a Div | ||
SDN_DEF_>=120_0_0_all SSC 125 27.3.a Div | ||
MIS_MIS_0_0_0_HC SV 0 27.3.a Div | ||
MIS_MIS_0_0_0_HC TBS 4 27.3.a Div | ||
MIS_MIS_0_0_0_HC TBS 5 27.3.a Div | ||
# | ||
LLS_FIF_0_0_0_all LLS NON 27.6.a Div | ||
LLS_FIF_0_0_0_all LL NON 27.6.a Div | ||
# | ||
LLS_FIF_0_0_0_all LLS NON 27.6.b Div | ||
LLS_FIF_0_0_0_all LL NON 27.6.b Div |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#list metier assignments based on landings only | ||
metier REDSKAP_NS ICESarea ICESareatype | ||
OTB_DEF_>=120_0_0_all 51 27.4.a Div | ||
OTB_DEF_>=120_0_0_all 52 27.4.a Div | ||
OTB_DEF_>=120_0_0_all 58 27.4.a Div | ||
OTB_CRU_32-69_0_0_all 55 27.4.a Div | ||
OTB_CRU_70-89_2_35_all 57 27.4.a Div | ||
GNS_DEF_all_0_0_all 20 27.4.a Div | ||
GNS_DEF_all_0_0_all 21 27.4.a Div | ||
GNS_DEF_all_0_0_all 22 27.4.a Div | ||
LLS_FIF_0_0_0_all 32 27.4.a Div | ||
LLS_FIF_0_0_0_all 35 27.4.a Div | ||
SDN_DEF_>=120_0_0_all 61 27.4.a Div | ||
FPO_CRU_0_0_0_all 42 27.4.a Div | ||
MIS_MIS_0_0_0_HC 41 27.4.a Div | ||
MIS_MIS_0_0_0_HC 11 27.4.a Div | ||
MIS_MIS_0_0_0_HC 14 27.4.a Div | ||
MIS_MIS_0_0_0_HC 33 27.4.a Div | ||
MIS_MIS_0_0_0_HC 80 27.4.a Div | ||
MIS_MIS_0_0_0_HC 83 27.4.a Div | ||
# | ||
GNS_DEF_all_0_0_all 22 27.4.b Div | ||
# | ||
OTB_DEF_>=120_0_0_all 51 27.3.a Div | ||
OTB_DEF_>=120_0_0_all 52 27.3.a Div | ||
OTB_CRU_32-69_0_0_all 55 27.3.a Div | ||
OTB_CRU_70-89_2_35_all 57 27.3.a Div | ||
GNS_DEF_all_0_0_all 21 27.3.a Div | ||
GNS_DEF_all_0_0_all 22 27.3.a Div | ||
LLS_FIF_0_0_0_all 32 27.3.a Div | ||
SDN_DEF_>=120_0_0_all 61 27.3.a Div | ||
MIS_MIS_0_0_0_HC 41 27.3.a Div | ||
MIS_MIS_0_0_0_HC 42 27.3.a Div | ||
MIS_MIS_0_0_0_HC 11 27.3.a Div | ||
MIS_MIS_0_0_0_HC 33 27.3.a Div | ||
MIS_MIS_0_0_0_HC 34 27.3.a Div | ||
MIS_MIS_0_0_0_HC 80 27.3.a Div | ||
# | ||
LLS_FIF_0_0_0_all 35 27.6.a Div |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#defining stocks by species and area, an indicate wheter coastal areas should be included in stock definition, and whether BMS should be calculated based on usage (anvendelse) | ||
stocckcode FAOcode ICESareatype ICESarea includecoast BMShuc | ||
#cod.27.6a COD Div 27.6.a T F | ||
#cod.27.6b COD Div 27.6.b T F | ||
#had.27.6b HAD Div 27.6.b T F | ||
#anf.27.3a46 ANF Div 27.3.a T F | ||
#anf.27.3a46 ANF Div 27.4.c T F | ||
#anf.27.3a46 ANF Div 27.4.b T F | ||
#anf.27.3a46 ANF Div 27.4.a T F | ||
#anf.27.3a46 ANF Div 27.4.b T F | ||
lez.27.4a6a LEZ Div 27.4.a T F | ||
lez.27.4a6a LEZ Div 27.6.a T F | ||
#sol.27.20-24 SOL Div 27.3.a T F |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
library(readr) | ||
library(Rstox) | ||
library(rgdal) | ||
|
||
fdir.polygons <- readOGR("data/Hovedområder_fom_2018/","Homr_2018") | ||
|
||
readLssFile <- function(file, encoding="latin1", guessMax = 100000){ | ||
loc <- readr::default_locale() | ||
loc$decimal_mark <- "," | ||
loc$encoding <- encoding | ||
db <- readr::read_delim(file, delim="|", col_names=T, trim_ws=TRUE, na=c("", "na", "NA"), locale=loc, guess_max = guessMax) | ||
return(db) | ||
} | ||
|
||
|
||
landings <- readLssFile("data/2018.lss") | ||
landings <- landings[landings$`Fartøynasjonalitet (kode)`=="NOR",] | ||
|
||
log <- Rstox::readErsFile("data/FDIR_HI_ERS_2018_PR_2019-03-04.psv") | ||
|
||
#Finner ingen landinger for LEZ | ||
sum(landings$`Art FAO (kode)` == "LEZ") | ||
#ihht ASFIS skal LEZ være Lepidorhombus spp, i NMD taxa finner jeg glassvar og fireflekket var ved søk på Lepidorhombus | ||
# Finner glassvar i landinger | ||
nametab <- table(landings$`Art - FDIR`) | ||
nametab[order(names(nametab))] | ||
Lepidorhombus <- landings[landings$`Art - FDIR` == "Glassvar",] | ||
# Disse er kodet som MEG som er riktig artskode. Rekoder disse i logbøker og landinger: | ||
landings$`Art FAO (kode)`[landings$`Art FAO (kode)` == "MEG"] <- "LEZ" | ||
log$FANGSTART_FAO[!is.na(log$FANGSTART_FAO) & log$FANGSTART_FAO == "MEG"] <- "LEZ" | ||
sum(landings$`Art FAO (kode)` == "LEZ") | ||
|
||
#Finner ingen landinger for ANF | ||
sum(landings$`Art FAO (kode)` == "ANF") | ||
#artlsiten til direktoratet fører også opp MON og ANG for breiflabber | ||
sum(landings$`Art FAO (kode)` %in% c("ANF","MON","ANG")) | ||
ikkeLophiidae <- landings[!(landings$`Art FAO (kode)` %in% c("ANF","MON","ANG")),] | ||
#ser over om noe av de resterende burde klassifiseres som breiflabb | ||
nametab <- table(ikkeLophiidae$`Art - FDIR`) | ||
nametab[order(names(nametab))] | ||
#rekoder breiflabb | ||
landings$`Art FAO (kode)`[landings$`Art FAO (kode)` %in% c("ANF","MON","ANG")] <- "ANF" | ||
log$FANGSTART_FAO[!is.na(log$FANGSTART_FAO) & log$FANGSTART_FAO %in% c("ANF","MON","ANG")] <- "ANF" | ||
sum(landings$`Art FAO (kode)` == "ANF") | ||
|
||
# COD og HAD pleier å være brukt konsistent, så jeg sjekker ikke det noe nærmere. | ||
|
||
|
||
# | ||
# reduserer logbøker og landinger til arter det skal rapporteres for | ||
# | ||
warning("Removing COD and HAD. Arved takes care of that") | ||
landings <- landings[landings$`Art FAO (kode)` %in% c("ANF", "LEZ", "SOL"),] | ||
log <- log[log$FANGSTART_FAO %in% c("ANF", "LEZ", "SOL"),] |
Oops, something went wrong.