writeTransects: Write transects generated by 'surveyPlanner' to various...

Description Usage Arguments Value

View source: R/rstox_spatial.r

Description

writeTransectsToMAxSea writes the transects of all strata to separate .asc files for import in MaxSea.

writeTransectsINFO writes the transects of all strata to separate hunam readable .txt files.

writeTransectsCSV writes the transects of all strata to separate csv files files.

writeTransects writes the data to CSV or NetCDF files. Only a selection of the columns are saved by default (override this by cols): The transect secifications ("stratum", "transect", "segment", "transport", "retour"), the start and stop position, time and distance ("lon_start", "lon_stop", "lat_start", "lat_stop", "time_start", "time_stop", "dist_start", "dist_stop", "segmentLengths"). By default only transects and not transport stretches are saved (override this by keepTransport).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
writeTransects(x, projectName, dir = NULL, digits = 5, byStratum = TRUE,
  cols = NULL, keepTransport = TRUE, prefix = "", suffix = "",
  filenames = NULL, ext = "txt", ...)

writeTransectsMaxSea(x, projectName, dir = NULL, item.type = 257,
  item.id = 20, item.col = 1, north = "N", east = "E", digits = 3,
  prefix = "", suffix = "", filenames = NULL, ...)

writeTransectsINFO(x, projectName, dir = NULL, digits = 2, prefix = "",
  suffix = "", filenames = NULL)

writeTransectsTRACK(x, projectName, dir = NULL, digits = 5, prefix = "",
  suffix = "", filenames = NULL, ...)

writeTransectsGPX(x, projectName, dir = NULL, digits = 5, prefix = "",
  suffix = "", filenames = NULL)

getTransectFileName(x, projectName, prefix = "", suffix = "", ext = "txt",
  dir = NULL, byStratum = TRUE)

Arguments

x

The output from surveyPlanner.

projectName

The name or full path of the project, a baseline object (as returned from getBaseline or runBaseline, og a project object (as returned from openProject).

dir

The path to the directory in which to put the files. If given, it takes precidence over the report directory of the project given by projectName.

digits

Precision to use in the reports.

byStratum

Logical: If TRUE, create one file per stratum.

cols

The columns to write to file for writeTransects.

keepTransport

Logical: If TRUE, save also the transport stretches to the file.

prefix, suffix

Strings to add prior to or after the file names (but before file extension).

filenames

Optional file names overriding the default file names.

ext

The file extension. For writeTransects ext = "nc" implies writing NetCDF files, and otherwise a CSV files are written.

...

Parameters passed to write.table, write.csv and fwrite. For writeTransects thie ... contains the important variables sep specifying the separator used in CSV files, and dateTimeAs which defines how to save the time in fwrite.

item.type, item.id, item.col

The type (default 257), id (default 20) and color (default 1) to pass to MaxSea.

north, east

Strings denoting North and East to pass to MaxSea.

Value

The file names.


Sea2Data/Rstox documentation built on April 18, 2018, 11:11 p.m.