Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 16 additions & 11 deletions Cost_survey.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
Hi!
# Cost Survey Data

The cost survey data can be found on the socialscience drive at
\\net\work5\socialsci\Cost_survey_data_all_years
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.
Location: NEFSCDB1 (new nova)
Schema: SSB_COST_SURVEY
Views:
VCS_COMMON_COSTS_V
Tables:
VCS_COST20211
VCS_COST20212
VCS_COST20215
VCS_SURVEY_DETAILS
VCS_COST_CATEGORIES

Please reach out to Sam Werner and/or Greg Ardini with any questions

Here is a bit of R code that you can use to read in that data:
```
net<-full.path.to.net
cost_directory<-file.path(net,"work5","socialsci","Trip_Costs","2007-2020")
X2007_2012 <- read_excel(file.path(cost_directory,"2007_2012.xlsx"))
X2013_2020 <- read_excel(file.path(cost_directory,"2013_2020.xlsx"))
```
In addition ll cost survey data can be found on the socialscience drive at in flat files (Excel):
\\net\work5\socialsci\Cost_survey_data_all_years

More to follow. It is not stored in oracle.

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ to pull the GARFO "document" table.

[svdbs](svdbs.md) : Survey Databases

[Trip Costs](Trip_Costs.md) : Dataset containing predicted trip costs

[Veslog](veslog.md) : Vessel Trip Reports (VTRs)

[VMS](VMS.md) : Vessel monitoring system (VMS)
Expand Down
17 changes: 17 additions & 0 deletions Trip_Costs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Predicted Trip costs

Predicted Trip costs are stored on the network.

Here is a bit of R code that you can use to read in that data:
```
socialsci_dir<-full.path.to.social.sci.directory

cost_directory1<-file.path(socialsci_dir,"Trip_Costs","2000-2009")
cost_directory2<-file.path(socialsci_dir,"Trip_Costs","Archived","2010-2021")
cost_directory_new<-file.path(socialsci_dir,"Trip_Costs","2010-2022")


Cost_Part1 <- read_excel(file.path(cost_directory1,"2000_2009_Commercial_Fishing_Trip_Costs.xlsx"), sheet=1)
Cost_Part2 <- read_excel(file.path(cost_directory1,"2000_2009_Commercial_Fishing_Trip_Costs.xlsx"), sheet=2)
Cost_Part3 <- read_excel(file.path(cost_directory_new,"2010_2022_Commercial_Fishing_Trip_Costs.xlsx"))
```