Meta.NC | R Documentation |
Read or write metadata attributes from/to netcdf file.
Meta.NC(NC, FName, Attrs, Write = FALSE, Read = TRUE, Compression = 9)
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". |
A SpatRaster with metadata
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.