diff --git a/Cost_survey.md b/Cost_survey.md index 46f53d2..c51bf86 100644 --- a/Cost_survey.md +++ b/Cost_survey.md @@ -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. diff --git a/README.md b/README.md index f3a1d19..5137e3a 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/Trip_Costs.md b/Trip_Costs.md new file mode 100644 index 0000000..b6e4faf --- /dev/null +++ b/Trip_Costs.md @@ -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")) +```