Monday February 17, 2014
NetCDF is a set of libraries and data formats used throughout the computational sciences, for example by the National Oceanic and Atmospheric Administration (NOAA, see http://www.esrl.noaa.gov/psd/data/gridded/whatsnetCDF.html) and the Open Geospatial Consortium (OGC, see http://www.opengeospatial.org/standards/netcdf). This problem challenges you to use netCDF to generate scientific data at a small scale.
The attached "Heat Flow viz solution zip" file contains code for a program that generates a collection of comma-separated value (CSV) files (see http://hpcuniversity.org/students/weeklyChallenge/68/). Your task is to modify this program to instead produce a single file in a netCDF data format.

Your solution must contain modified source code and a copy of the generated netCDF data file.

The recommended steps to solve this problem are:
1. Install netCDF on your system.
2. Run and modify the example programs provided by netCDF to learn how it works.
3. Run and modify the "Heat Flow Viz" code provided below to see how it works.
4. Replace the code that generates CSV files in the "Heat Flow Viz" program with code that generates a netCDF file.
5. Consult the netCDF documentation to verify the netCDF file your program generates.
Show solution
Challenge Resources:
©1994-2014   |   Shodor   |   Privacy Policy   |   NSDL   |   XSEDE   |   Blue Waters   |   ACM SIGHPC   |   feedback  |   facebook   |   twitter   |   rss   |   youtube Not Logged In. Login