Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7710a38

Browse files
committed
fixes #308
1 parent 486a5c6 commit 7710a38

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/netCDFwriteCD.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55

66

77

8-
.startWriteCDF <- function(x, filename, datatype='FLT4S', overwrite=FALSE, progress='', att, varname, varunit, varatt, longname, xname, yname, zname, zunit, zatt, NAflag, force_v4=FALSE, ...) {
8+
.startWriteCDF <- function(x, filename, datatype='FLT4S', overwrite=FALSE, progress='', att, varname, varunit, varatt, longname, xname, yname, zname, zunit, zatt, NAflag, force_v4=FALSE, sources, ...) {
99

1010
stopifnot(requireNamespace("ncdf4"))
1111

1212
filename <- trim(filename)
1313
if (filename == '') {
1414
stop('provide a filename')
1515
}
16+
1617
extension(filename) <- .defaultExtension(format='CDF')
1718
if (file.exists(filename) & !overwrite) {
1819
stop('file exists, use overwrite=TRUE to overwrite it')

0 commit comments

Comments
 (0)