Data and code for producing 3D models.
Some notes on a process for creating the .STL files from polar datasets. Generated during the dataviz hackathon 11/3-4/2014.
A process that can be followed uses what are called "height-maps". The idea is to obtain grey scale images (.png) of the bed and surface of the region of interest. Having these images, a short C program can be run to produce the corresponding STL file.
Begin by downloading and appropriate data set providing bed and surface elevation. A quick option is to take these from the SeaRISE data sets, located here:
http://websrv.cs.umt.edu/isis/images/a/a5/Greenland_5km_v1.1.nc
These netcdf files can be challenging for a new comer to work with. One way of doing it is to load the data into a program like Q-GIS in order to view it. ncview is also popular. Here, I explain the steps for saving the .png from QGIS.
Download, and install libtrix:
https://github.com/anoved/libtrix
with
make sudo make install
Then build hmstl:
https://github.com/anoved/hmstl
with:
make
Use hmstl to create the .stl file from the .png. The README file has many examples, but it is mostly just a matter of:
./hmstl -z
It is also possible to include a mask, see the REAME.