{"help":"Return the metadata of a dataset (package) and its resources. :param id: the id or name of the dataset :type id: string","success":true,"result":[{"id":"fd3081c8-edfb-4d34-bfe4-d0b9f34b6707","name":"developing-avian-collision-risk-model-incorporate-variability-and-uncertainty-r-code","title":"Developing an avian collision risk model to incorporate variability and uncertainty- R code","author_email":"marinescotland@gov.scot","maintainer":"Scottish Government - Marine Directorate Data Publications","maintainer_email":"marinedirectorate@gov.scot","notes":"\u003Cp\u003EThe R code produced as part of Masden, E. (2015) Developing an avian collision risk model to incorporate variability and uncertainty. Scottish Marine and Freshwater Science Vol 6 No 14 (Masden (2015)), Developing an avian collision risk model to incorporate variability and uncertainty, required to produce collision estimates for the Basic and Extended versions of the Band Collision Risk Model. Full details of approach taken and description of model are contained within Masden (2015).\u003C\/p\u003E\n","url":"https:\/\/data.marine.gov.scot\/dataset\/developing-avian-collision-risk-model-incorporate-variability-and-uncertainty-r-code","state":"Active","log_message":"Update to resource \u0027Property title\u0027","private":true,"revision_timestamp":"Tue, 01\/07\/2020 - 18:22","metadata_created":"Tue, 09\/15\/2015 - 15:57","metadata_modified":"Tue, 01\/07\/2020 - 18:22","creator_user_id":"30436a8d-34e8-47d5-b586-8a555ab42696","type":"Dataset","resources":[{"id":"83a4132b-2899-447f-9c16-dc4100c8c12e","revision_id":"","url":"https:\/\/data.marine.gov.scot\/sites\/default\/files\/\/Masden%202015%20code_FinalVersion.zip","description":"\u003Cp\u003E[Full details are available in the worked example contained within the Masden (2015)report.]\u003Cbr \/\u003E\n\u003Cstrong\u003EModel set up\u003C\/strong\u003E Before the model can be run it requires information to be entered into the file \u0022BandModel.txt\u0022.\u003C\/p\u003E\n\u003Col\u003E\n\u003Cli\u003E\n\u003Cp\u003ESet working directory First, set the working directory. This is the location where the folders \u2018scripts\u2019 and \u2018data\u2019 have been saved as well as \u2018BandModel.R\u2019. For example, setwd(\u0022F:\\BAND CRM For R\u0022) This step directs R to all the files and data that are required to run the model therefore all the files required much be within this directory.\u003C\/p\u003E\n\u003C\/li\u003E\n\u003Cli\u003E\n\u003Cp\u003ESet results folder The model will save output to a folder. Set the name of the results folder, for example, the name of the development. For example, results_folder \u0026lt;- \u0022windfarm1\u0022 If no name is specified the model will default to the date. WARNING: If the model is run several times on the same day and no folder name is specified, it will over-write files in the folder.\u003C\/p\u003E\n\u003C\/li\u003E\n\u003Cli\u003E\n\u003Cp\u003ESet model components Next set the model components. These include:\u003C\/p\u003E\n\u003C\/li\u003E\n\u003C\/ol\u003E\n\u003Cul\u003E\n\u003Cli\u003E\n\u003Cp\u003EThe number of iterations the model simulation will execute, for example 1000 iter\u0026lt;- 1000\u003C\/p\u003E\n\u003C\/li\u003E\n\u003Cli\u003E\n\u003Cp\u003EThe species to include, for example kittiwake CRSpecies = \u0022Black_legged_Kittiwake\u0022 If more species were to be included this would look like CRSpecies = c(\u0022Black_legged_Kittiwake\u0022, \u0022Northern_Gannet\u0022, \u0022Arctic_Skua\u0022)\u003C\/p\u003E\n\u003C\/li\u003E\n\u003Cli\u003E\n\u003Cp\u003EThe target power (in MW) to be generated within wind farm, for example 600MW. This is used in conjunction with the turbine name i.e. 6 if a 6MW turbine, to calculate the number of turbines in the array. TPower = 600 Large array correction (Yes\/No), for example LargeArrayCorrection = \u0022yes\u0022\u003C\/p\u003E\n\u003C\/li\u003E\n\u003Cli\u003E\n\u003Cp\u003EThe wind farm width (km), for example 10km WFWidth = 10\u003C\/p\u003E\n\u003C\/li\u003E\n\u003Cli\u003E\n\u003Cp\u003EThe proportion of bird flights up\/downwind, for example 50% Prop_Upwind = 0.5\u003C\/p\u003E\n\u003C\/li\u003E\n\u003Cli\u003E\n\u003Cp\u003EThe latitude of the wind farm in decimal degrees, for example 55.8 degrees. This is used to calculate day length at the site location throughout the year. Latitude = 55.8\u003C\/p\u003E\n\u003C\/li\u003E\n\u003Cli\u003E\n\u003Cp\u003EThe tidal offset in metres (to correct for flight heights being calculated in relation to mean sea-level and turbine dimensions being calculated in relation to Highest Astronomical Tide), for example 2.5 metres TideOff = 2.5\u003C\/p\u003E\n\u003C\/li\u003E\n\u003C\/ul\u003E\n\u003Col start=\u00224\u0022\u003E\n\u003Cli\u003EParameterise wind speed sampling distribution The model uses wind speed data to calculate rotor speed and pitch. Wind speed data are therefore required. At the time of production it was unclear what format wind speed data would be available to wind farm developers. To avoid inconsistencies, the model samples wind speed from a truncated normal distribution parameterised by the user.\u003C\/li\u003E\n\u003C\/ol\u003E\n\u003Cul\u003E\n\u003Cli\u003EThe mean wind speed (m.s-1) and standard deviation are required to be set, for example windSpeedMean\u0026lt;- 7.74 windSpeedSD\u0026lt;- 3.2 It is expected that these will be obtained from met mast data or other sources of wind speed data such as NASA\u2019s Modern-Era Retrospective Analysis for Research and Applications (MERRA).\u003C\/li\u003E\n\u003C\/ul\u003E\n\u003Cp\u003E\u003Cstrong\u003ERunning the model:\u003C\/strong\u003E Once you have set the working directory and entered all of the necessary information, all that is needed to run the model is to copy and paste all of BandModel.R into the R console, or alternatively type source(\u0022*****EnterMyDirectoryHere****\\BandModel.R\u0022) in the R console, and press return. The code is designed to loop through multiple species and multiple turbine designs in a single step. The number of results obtained will depend on the number of different turbine designs entered in TurbineData.csv and the number of different species for which data are entered and listed. A progress bar will provide an indication of progress and at the end of the model, the time elapsed since the model was started will be displayed.\u003C\/p\u003E\n","format":"zip","state":"Active","revision_timestamp":"Tue, 01\/07\/2020 - 14:53","name":"Masden 2015 Code","mimetype":"application\/zip","size":"4.08 MB","created":"Tue, 09\/15\/2015 - 17:23","resource_group_id":"cfb0fd37-c106-448f-a40b-70c12777f645","last_modified":"Date changed  Tue, 01\/07\/2020 - 14:53"}],"tags":[{"id":"3743ace0-b6f2-4bfc-9332-1b3b82366c70","vocabulary_id":"2","name":"marine renewables"},{"id":"97910b58-3877-4fe0-9949-e5df66117014","vocabulary_id":"2","name":"seabirds"},{"id":"5717f095-cb70-468c-b428-00f6508c3674","vocabulary_id":"2","name":"collision risk"}],"groups":[{"description":"\u003Cp\u003EResearchers and analysts in Marine Directorate often use coding to solve analytical tasks and modelling. This group contains code that has been released as a package that can be used by others.\u003Cbr \/\u003E\nPlease note that in most cases, this will be packages of functions or scripts that can be applied in an existing software package, rather than a full software solution.\u003C\/p\u003E\n","id":"cfb0fd37-c106-448f-a40b-70c12777f645","image_display_url":"https:\/\/data.marine.gov.scot\/sites\/default\/files\/\/button%20220%20code_white.png","title":"Code","name":"group\/code"},{"description":"\u003Cp\u003EData related to marine planning activities or providing data and information to assist planning processes.\u003C\/p\u003E\n","id":"dc905d83-2dd1-4188-b7a7-3bb946d8e8b3","image_display_url":"https:\/\/data.marine.gov.scot\/sites\/default\/files\/\/button%20220%20jan%202016-29.png","title":"Marine Planning","name":"group\/marine-planning"}]}]}