Skip to content

Commit 99570b8

Browse files
authored
Merge pull request #26 from NEFSC/mle2718-patch-1
Mle2718 patch 1
2 parents 5773d89 + 05bf792 commit 99570b8

File tree

3 files changed

+21
-9
lines changed

3 files changed

+21
-9
lines changed

Cost_survey.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Cost Survey Data
2+
13
Cost survey data is currently being databased in Oracle (07.21.2023). As of today, data from 2011, 2012 and 2015 are found on Oracle. The cost survey working group is also allocating efforts to database the 2022 data and 2006, 2007 and 2008 data.
24
Location: NEFSCDB1 (new nova)
35
Schema: SSB_COST_SURVEY
@@ -15,13 +17,4 @@ Please reach out to Sam Werner and/or Greg Ardini with any questions
1517
In addition ll cost survey data can be found on the socialscience drive at in flat files (Excel):
1618
\\net\work5\socialsci\Cost_survey_data_all_years
1719

18-
Here is a bit of R code that you can use to read in that data:
19-
```
20-
net<-full.path.to.net
21-
cost_directory<-file.path(net,"work5","socialsci","Trip_Costs","2007-2020")
22-
X2007_2012 <- read_excel(file.path(cost_directory,"2007_2012.xlsx"))
23-
X2013_2020 <- read_excel(file.path(cost_directory,"2013_2020.xlsx"))
24-
```
25-
26-
More to follow. It is not stored in oracle.
2720

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ to pull the GARFO "document" table.
7474

7575
[svdbs](svdbs.md) : Survey Databases
7676

77+
[Trip Costs](Trip_Costs.md) : Dataset containing predicted trip costs
78+
7779
[Veslog](veslog.md) : Vessel Trip Reports (VTRs)
7880

7981
[VMS](VMS.md) : Vessel monitoring system (VMS)

Trip_Costs.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Predicted Trip costs
2+
3+
Predicted Trip costs are stored on the network.
4+
5+
Here is a bit of R code that you can use to read in that data:
6+
```
7+
socialsci_dir<-full.path.to.social.sci.directory
8+
9+
cost_directory1<-file.path(socialsci_dir,"Trip_Costs","2000-2009")
10+
cost_directory2<-file.path(socialsci_dir,"Trip_Costs","Archived","2010-2021")
11+
cost_directory_new<-file.path(socialsci_dir,"Trip_Costs","2010-2022")
12+
13+
14+
Cost_Part1 <- read_excel(file.path(cost_directory1,"2000_2009_Commercial_Fishing_Trip_Costs.xlsx"), sheet=1)
15+
Cost_Part2 <- read_excel(file.path(cost_directory1,"2000_2009_Commercial_Fishing_Trip_Costs.xlsx"), sheet=2)
16+
Cost_Part3 <- read_excel(file.path(cost_directory_new,"2010_2022_Commercial_Fishing_Trip_Costs.xlsx"))
17+
```

0 commit comments

Comments
 (0)