title: Error when trying to import NetCDF to R
body: <p>I' struggeling to open a NetCDF file in R.
  When I try to open it with </p>
  
  <pre><code>library(ncdf)
  # read in NetCDF file
  maize.nc&lt;-open.ncdf("C:/Users/Jo/Desktop/pft_harvest_maize.nc")
  </code></pre>
  
  <p>I get the following error message:</p>
  
  <pre><code> Error in R_nc_open: NetCDF: Unknown file format
   Error in open.ncdf("C:/Users/Jo/Desktop/pft_harvest_maize.nc") : 
     Error in open.ncdf trying to open file C:/Users/Jo/Desktop/pft_harvest_maize.nc
  </code></pre>
  
  <p>the weird thing is, that another NetCDF file with Runoff-Data from the exact same simulation with the exact same datatype opens without any problems. </p>
  
  <p>The difference in filesize is Runoff: 56.1 MB (58,870,472 Bytes) and harvest: 149 MB (156,968,508 Bytes). So the files are actually not too big to fail when opening. Has anybody an idea how I can trackback the error that causes this problem??</p>
  
  <p>Using the <code>RNetCDF</code> Package I get the same problem (<code>Error: NetCDF: Unknown file format</code>)</p>
  
  <p>From ncdump I get:</p>
  
  <pre><code>netcdf pft_harvest_maize {
  dimensions:
          time = 199 ;
          npft = 32 ;
          latitude = 78 ;
          longitude = 79 ;
  variables:
          string NamePFT(npft) ;
          int time(time) ;
                  time:units = "Years" ;
          float latitude(latitude) ;
                  latitude:units = "degrees_north" ;
                  latitude:long_name = "latitude" ;
              latitude:standard_name = "latitude" ;
              latitude:axis = "Y" ;
      float longitude(longitude) ;
              longitude:units = "degrees_east" ;
              longitude:long_name = "longitude" ;
              longitude:standard_name = "longitude" ;
              longitude:axis = "X" ;
      float harvest(time, npft, latitude, longitude) ;
              harvest:units = "gC/m2/yr" ;
              harvest:long_name = "harvested carbon" ;
              harvest:missing_value = -9999.99f ;
              harvest:_FillValue = -9999.99f 
  }
  </code></pre>
  
  <p>the file can be found here:
  <a href="https://www.dropbox.com/sh/4u9jk909yj70443/YfniJz46tF" rel="nofollow">netCDF-file</a></p>