Skip to contents

Define zone closure scenarios

Usage

zone_closure(
  project,
  spatdat,
  cat,
  lon.spat = NULL,
  lat.spat = NULL,
  epsg = NULL
)

Arguments

project

Required, name of project.

spatdat

Required, data file or character. spatdat is a spatial data file containing information on fishery management or regulatory zones boundaries. Shape, json, geojson, and csv formats are supported. geojson is the preferred format. json files must be converted into geoson. This is done automatically when the file is loaded with read_dat with is.map set to true. spatdat cannot, at this time, be loaded from the FishSET database.

cat

Variable in spatdat that identifies the individual areas or zones.

lon.spat

Required for csv files. Variable or list from spatdat containing longitude data. Leave as NULL if spatdat is a shape or json file.

lat.spat

Required for csv files. Variable or list from spatdat containing latitude data. Leave as NULL if spatdat is a shape or json file.

epsg

EPSG number. Set the epsg to ensure that spatdat have the correct projections. If epsg is not specified but is defined for spatdat. See http://spatialreference.org/ to help identify optimal epsg number.

Value

Returns a yaml file to the project output folder.

Details

Define zone closure scenarios. Function opens an interactive map. Define zone closures by clicking on one or more zones and clicking the 'Close zones' button. To define another closure scenario, unclick zones and then click the desired zones. Press the 'Save closures' button to save choices. The saved choices are called in the policy scenario function.