get.init.nc: Function that generates a csv file of NetCDF values

Description Usage Arguments Value Examples

View source: R/initGen.R

Description

Takes data from a NetCDF file and generates a csv file containing the box-specific values. If the variable is distributed in the vertical then the value on the bottom water layer is returned. This function is useful when collecting data from Atlantis models in order to parameterise new Atlantis models. Incorrect output may be produced if the number of boxes equals the number of time steps or water layers.

Usage

1
get.init.nc(nc.file, output.file)

Arguments

nc.file

Name of the NetCDF file containing the initial conditions.

output.file

Name of the csv file where data is written.

Value

Null (always). Produces a csv file with the name ouput.file.

Examples

1
2
3
4
5
6
7
## Not run: 
nc.file <- "~/Atlantis/RunFiles/SEAP/params/initSEAPaquacult_pH.nc"
output.file <- "oldData.csv" # where to write the data

get.init.nc(nc.file, output.file) # extract data from the NetCDF file

## End(Not run)

shanearichards/shinyrAtlantis documentation built on May 26, 2017, 7:02 a.m.