Meta.NC: Read or write metadata into NetCDF files

View source: R/Meta.R

Meta.NCR Documentation

Read or write metadata into NetCDF files

Description

Read or write metadata attributes from/to netcdf file.

Usage

Meta.NC(NC, FName, Attrs, Write = FALSE, Read = TRUE, Compression = 9)

Arguments

NC

SpatRaster

FName

Filename including directory

Attrs

Named vector of metadata attributes

Write

Logical. Whether to write metadata

Read

Logical Whether to read metadata

Compression

Integer between 1 to 9. Applied to final .nc file that the function writes to hard drive. Same as compression argument in terra::writeCDF(). Ignored if FileExtension = ".tif".

Value

A SpatRaster with metadata


ErikKusch/KrigR documentation built on Feb. 17, 2025, 2:09 p.m.