read_slf_header: Read slf header

Description Usage Arguments Value

View source: R/selafin.R

Description

Reads the header of a SELAFIN file (*.slf).

Usage

1

Arguments

fname

character, name of a SELAFIN file.

Value

A list with the following elements:

title

Title of the file

precision

Precision of numbers (bytes)

nbv1

Number of variables

varnames

Names of variables

varunits

Units of variables

date

Starting date-time (POSIXct object)

ntimes

Number of timesteps

nelem

Number of mesh elements (triangles)

npoin

Number of mesh points

ndp

Number of points per element (3 in case of triangles)

ikle

A nelem x ndp integer matrix of point indices (referring to x and y) defining the mesh elements

ipobo

An integer vector of length npoin defining the mesh boundaries (inner boundaries are zero, outer boundaries numbered)

x

A vector of length npoin giving the x coordinates of the mesh points

y

A vector of length npoin giving the y coordinates of the mesh points

seek_head

Position in the SELAFIN file where the header ends (required by function read_slf_variable)


telemac documentation built on Feb. 7, 2022, 5:06 p.m.