write_netcdf | R Documentation |
Function to write results from downscalr or other sources into netCDF file format
write_netcdf(
data = NULL,
rasterfile = NULL,
variables = list(name_long = "This is long name", name = "this_is_standard_name", units
= "unit_of_measurement", dimname = "dim_name", varn = NULL, timen = NULL, expandValue
= 0, data = NULL, vardescr = NULL, create.dimvar = TRUE),
start.time = NULL,
end.time = NULL,
by.time = 10,
filename = NULL,
filepath = NULL,
verbose = FALSE
)
data |
If not provided in |
rasterfile |
Raster grid object with ns as cell values |
variables |
A list of lists for each variable to be written or if
|
start.time |
Integer defining first time step of time dimension to write, if dimension |
end.time |
Integer defining last time step of time dimension to write, if dimension |
by.time |
Integer specifying interval of time steps to be written between |
filename |
Character string of netCDF file name, has to include ".nc" extension; defaults to filename="Downscale_netCDF.nc" |
filepath |
Character string to specify file path netCDF is written to, defaults to current working directory |
verbose |
Either TRUE or FALSE, prints each layer written into the netCDF file (for troubleshooting purposes); defaults to FALSE |
Outputs ‘netCDF’ file with filename
written into filepath
as specified in function arguments
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.