This python script can be used to create a netCDF file with data from a csv file. It uses python's netCDF4 library.