write_stack_to_cdf.Rd
Write a RasterStack to a NetCDF file
write_stack_to_cdf(stk, filename, attrs = list(), prec = "double")
stk | RasterStack containing named layers |
---|---|
filename | output filename |
attrs | list of attributes to attach to the file, e.g., list( list(key='distribution', val='GEV'), # global attribute list(var='precipitation', key='units', val='mm) ) |
prec | data type for values. Valid types: * short * integer * float * double * char * byte |