Source: http://home.chpc.utah.edu/~thorne/computing/Examples_netCDF.pdf