title: R ncdf package - put.var.ncdf requiring incorrect number of dimensions
body: <p>I am organizing weather data into netCDF files in R. Everything goes fine until I try to populate the netcdf variables with data, because it is asking me to specify only one dimension for two-dimensional variables.</p>
  
  <pre><code>library(ncdf)
  </code></pre>
  
  <p>These are the dimension tags for the variables. Each variable uses the <code>Threshold</code> dimension and one of the other two dimensions.</p>
  
  <pre><code>th &lt;- dim.def.ncdf("Threshold", "level", c(5,6,7,8,9,10,50,75,100))
  rt &lt;- dim.def.ncdf("RainMinimum", "cm", c(5, 10, 25))
  wt &lt;- dim.def.ncdf("WindMinimum", "m/s", c(18, 30, 50))
  </code></pre>
  
  <p>The variables are created in a loop, and there are a lot of them, so for the sake of easy understanding, in my example I'll only populate the list of variables with one variable.</p>
  
  <pre><code>vars &lt;- list()
  v1 &lt;- var.def.ncdf("ARMM_rain", "percent", list(th, rt), -1, prec="double")
  vars[[length(vars)+1]] &lt;- v1
  ncdata &lt;- create.ncdf("composite.nc", vars)
  </code></pre>
  
  <p>I use another loop to extract data from different data files into a 9x3 data frame named <code>subframe</code> while iterating through the variables of the netcdf file with <code>varindex</code>. For the sake of reproducing, I'll give a  quick initialization for these values.</p>
  
  <pre><code>varindex &lt;- 1
  subframe &lt;- data.frame(matrix(nrow=9, ncol=3, rep(.01, 27)))
  </code></pre>
  
  <p>The desired outcome from there is to populate each ncdf variable with the contents of <code>subframe</code>. The code to do so is:</p>
  
  <pre><code>for(x in 1:9) {
    for(y in 1:3) {
      value &lt;- ifelse(is.na(subframe[x,y]), -1, subframe[x,y])
      put.var.ncdf(ncdata, varindex, value, start=c(x,y), count=1)
    }
  }
  </code></pre>
  
  <p>The error message is:</p>
  
  <pre><code>Error in put.var.ncdf(ncdata, varindex, value, start = c(x, y), count = 1) : 
    'start' should specify 1 dims but actually specifies 2
  </code></pre>
  
  <p>tl;dr: I have defined two-dimensional variables using ncdf in R, I am trying to write data to them, but I am getting an error message because R believes they are single-dimensional variables instead.</p>
  
  <p>Anyone know how to fix this error?</p>