showObject {ncdfCF}R Documentation

Summary of object details

Description

These methods provide information on the various ncdfCF objects. While the individual methods are generally behaving the same for all descendant classes, there are some differences related to the nature of the objects.

Usage

## S4 method for signature 'ncdfDimension'
shard(object)

## S4 method for signature 'ncdfVariable'
show(object)

## S4 method for signature 'ncdfVariable'
brief(object)

## S4 method for signature 'ncdfVariable'
shard(object)

## S4 method for signature 'ncdfDataset'
show(object)

## S4 method for signature 'ncdfDataset'
brief(object)

## S4 method for signature 'ncdfDimensionCharacter'
show(object)

## S4 method for signature 'ncdfDimensionCharacter'
brief(object)

## S4 method for signature 'ncdfDimensionNumeric'
show(object)

## S4 method for signature 'ncdfDimensionNumeric'
brief(object)

## S4 method for signature 'ncdfDimensionTime'
show(object)

## S4 method for signature 'ncdfDimensionTime'
brief(object)

Arguments

object

The ncdfObject to show.

Value

show() prints information to the console. brief() returns a 1-row data.frame with some details of object. shard() returns a character string with a few identifying details of object.

Examples

fn <- system.file("extdata", "ERA5land_Rwanda_20160101.nc", package = "ncdfCF")
ds <- open_ncdf(fn)

# ncdfDataset, show
ds

# ncdfDataset, brief
# Note that the variables and dimensions are described by shards
brief(ds)

# ncdfVariable, show
pev <- ds[["pev"]]
pev

# ncdfDimensionNumeric, shard
lon <- ds[["longitude"]]
shard(lon)

[Package ncdfCF version 0.1.1 Index]