sl.grid.writeFESOM: Write FESOM Grid

Description Usage Arguments Note Author(s) See Also Examples

View source: R/sl.grid.writeFESOM.R

Description

Write a FESOM grid into FESOM-readable ascii files '.out'. SO FAR ONLY PARTIALLY IMPLEMENTED.

Usage

1
sl.grid.writeFESOM(outpath, grd, griddir.name = "FESOM_grid", which.files = NULL, overwrite = FALSE, width = NULL, nsmall = NULL, verbose = TRUE)

Arguments

outpath

a character specifying the root path where to write the FESOM grid.

grd

a spheRlab grid as returned by sl.grid.readFESOM.

griddir.name

a character specifying the name of the directory (within the root path specified by outpath) where to write the FESOM grid; typically, this corresponds to the grid name. If it does not yet exist, the directory is created.

which.files

NULL or a character vector specifying which of the grid files are to be written; should be a subset of c("nod2d","elem2d","nod3d","elem3d","aux3d"). If NULL, all files are written. SO FAR ONLY PARTIALLY IMPLEMENTED, SEE NOTE BELOW.

overwrite

a logical value indicating whether or not to overwrite already existing files. If FALSE (default), existing files are skipped.

width

NULL or an integer specifying the minimum column width for the output text files. If NULL, various standard values are used for different files and columns.

nsmall

NULL or an integer specifying the minimum number of digits to the right of the decimal point of real numbers for the output text files. If NULL, various standard values are used for different files and columns.

verbose

a logical value indicating whether or not print statements shall report on the function progess.

Note

THIS FUNCTION IS ONLY PARTIALLY IMPLEMENTED: Currently only 'nod2d.out' and 'nod3d.out' can be written. The functionality will be extended when needed.

Author(s)

Helge Goessling

See Also

sl.grid.readFESOM, sl.grid.writeCDO

Examples

1
2
3
4
5
## Not run: 
grid = sl.grid.readFESOM(griddir="PATH-TO-YOUR-FESOM-GRID",rot=TRUE,rot.invert=TRUE,rot.abg=c(50,15,-90),threeD=TRUE)
sl.grid.writeFESOM(outpath="PATH-TO-NEW-ROTATED-GRID",grd=grid,griddir.name="newgrid",ofile=ofile)

## End(Not run)

helgegoessling/spheRlab documentation built on Sept. 29, 2017, 6:36 a.m.