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.
Name of the NetCDF file containing the initial conditions.
Name of the csv file where data is written.
Null (always). Produces a csv file with the name
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.