This repository is intended to estimate a location choice model scallops to understand the effect of wind energy areas on this fleet. Currently, we have code to extract data and process data. This code constructs aggregates NEFSC data into a dataset that can be imported to FishSET for data exploration and estimation. We also have some code to analyse data in the analysis_code folder.
We are using DMIS data from 2007-2021 (calendar years). The main datasource is a frozen DMIS table, you can see the two pieces of sql used to construct that table here and here.
We have documentation about the research question, motivation, and fishery context here.
Perhaps one day, in the not too distant future, this repository will contain code to estimate the choice model also.
While the empirical setting that we have chosen is the Limited Access Scallop fishery, we envision this serving as a pilot project that enhances our ability to estimate discrete choice models and conduct spatial analyses for other fisheries.
The data extraction code was primarily been developed by Marina Chaji and ran on the neptune server at NEFSC.
In preparation for the retirement on the Neptune server, development was moved to individual containers in July 2023. This code will run on the standard NEFSC R container, which is running R 4.3.0 (2023-04-21) The data analysis code runs properly. The containers do not support RODBC, so all of the data extraction code was switched to ROracle.
credentials.R
. Follow the instructions in comments at the top.We use the fredr package to import Federal Reserve deflator data which needs a unique FRED API key for each user. Follow the instructions below to unique API key for multiple uses.
The data processing code depends on:
APSD_DMIS_2.rda
, trip_cost.xlsx
, and just_ports_YYYY_MM_DD.dta
files from the network.You may also need to use set R's libPath to home2/mlee/R/x86_64_pc-linux-gnu-library to use a pre-release version of FishSET.
The roles/responsibilties doesn't quite belong in this spot, and yet here we are.
We have added various shapefiles to the repository.
East_Cst_crop_2020_extended
shapefile was taken from /net/work5/socialsci/Geret_Rasters/data/offshore_wind_package_data/shapefiles
All_Lease_Areas_Shapefile
shapefile was taken from /net/home4/mchaji/All_Lease_Areas_Shapefile
VMS_Demarcation_Line
shapefile was taken from https://www.fisheries.noaa.gov/resource/map/vms-demarcation-lineScallop_DAS_Change_to_DOF_Transit_w_Product_On_Board_Area
shapefile was taken from https://www.fisheries.noaa.gov/resource/map/scallop-days-sea-change-declare-out-fishery-transit-product-board-areaThere are also some data that we get internally from the network, this can be figured out just by looking through the data processsing code.
This repository is a scientific product and is not official communication of the National Oceanic and Atmospheric Administration, or the United States Department of Commerce. All NOAA GitHub project code is provided on an ‘as is’ basis and the user assumes responsibility for its use. Any claims against the Department of Commerce or Department of Commerce bureaus stemming from the use of this GitHub project will be governed by all applicable Federal law. Any reference to specific commercial products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply their endorsement, recommendation or favoring by the Department of Commerce. The Department of Commerce seal and logo, or the seal and logo of a DOC bureau, shall not be used in any manner to imply endorsement of any commercial product or activity by DOC or the United States Government.