Displaying 2 results from an estimated 2 matches for "mrunoff_fil".
Did you mean:
mrunoff_file
2009 Aug 04
0
Writing a NetCDF file in R
...90, mrunoff_1991, mrunoff_1992, mrunoff_1993, mrunoff_1994, mrunoff_1995))
# Define runoff variable
mrunoff_dims <- var.def.ncdf("mrunoff_out", "mm/month", list(dimx, dimy, month), -9999.0, "Global Monthly Runoff for 1986-1995", "double")
# Create file
mrunoff_file <- create.ncdf("mrunoff.nc", mrunoff_dims)
# Put mrunoff data into the file
put.var.ncdf(mrunoff_file, mrunoff_dims, mrunoff_data)
# Write to disk
# close.ncdf(mrunoff_file)
However, when I run the code, I get the following error message:
> put.var.ncdf(mrunoff_file, mruno...
2009 Aug 05
0
ncdf package problem - put.var.ncdf
...mrunoff_1991, mrunoff_1992, mrunoff_1993, mrunoff_1994, mrunoff_1995))
# Define runoff variable
mrunoff_dims <- var.def.ncdf("mrunoff_out", "mm/month", list(dimx, dimy, month), -9999.0, "Global Monthly Runoff for 1986-1995", "double")
# Create file
mrunoff_file <- create.ncdf("mrunoff.nc", mrunoff_dims)
# Put mrunoff data into the file
put.var.ncdf(mrunoff_file, mrunoff_dims, mrunoff_data)
# Write to disk
# close.ncdf(mrunoff_file)
However, when I run the code, I get the following error message:
> put.var.ncdf(mrunoff_fi...