I am using Python to save 300x470x27x24 matrices to netcdf files. So far I was using the following code to create file handle:
nc_output = Dataset(nc_filename,\'w