palm_ncdf_import: R6-Class to import data from an already existing static...

palm_ncdf_importR Documentation

R6-Class to import data from an already existing static driver

Description

R6-Class to import data from an already existing static driver

R6-Class to import data from an already existing static driver

Super class

rPALM::palm_ncdf_berlin -> palm_ncdf_import

Methods

Public methods

Inherited methods

Method new()

Usage
palm_ncdf_import$new(newfilename, pathtofiles, oldfilename, oldversion = FALSE)
Arguments
newfilename

Character. Filename for the future static driver

pathtofiles

Character. Path where the old static driver lies

oldfilename

Character. Name of the old static driver

oldversion

Logical. Only use TRUE for PALM versions <2900

Returns

The initialize/new function creates a barebones class with references to the static driver. To import the data of the static file, read_static() has to be called afterwards

Examples
import_static <- palm_ncdf_import$new("new_static_driver.nc",
                                      "Path/to/files", "old_static_driver.nc", F)
import_static$read_static()

Method importfiles()

Usage
palm_ncdf_import$importfiles(...)

Method read_static()

Usage
palm_ncdf_import$read_static(...)

Method clone()

The objects of this class are cloneable with this method.

Usage
palm_ncdf_import$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples


## ------------------------------------------------
## Method `palm_ncdf_import$new`
## ------------------------------------------------

import_static <- palm_ncdf_import$new("new_static_driver.nc",
                                      "Path/to/files", "old_static_driver.nc", F)
import_static$read_static()

SebaStad/rPALM documentation built on June 4, 2024, noon