The MOLA gridded data set is a great resource. The Generic Mapping Tools (GMT) are a great tool set. This article shows you how to take the raw binary MOLA gridded data set and convert it into the netCDF format that GMT uses. Once you do that, a whole range of mapping options are open to you.
We will assume that the Generic Mapping Tools (GMT) are already installed on your system. If not, they are an open source tool, and you should be able to get them installed relatively easily.
After that you need to get some gridded MOLA data. As always, the best resource for NASA mission data is the Planetary Data System (PDS), and the gridded MOLA data we want can be found on the Geosciences Node.
The method that I'll discuss can be applied to any of the kinds (areoid, counts, radius, and topography) and resolutions (4, 16, 32, 64, and 128 pixels per degree, more for the poles) of MOLA gridded data sets. For this example, we'll use topography at 128 pixels per degree that has Valles Marineris it it. The megt00n270hb files are the ones we want. I know this because I know the latitude and longitude of the feature I'm interested in, and I have familiarized myself with the scheme for how to decypher the alphabet soup of a file name (which can be found on the gridded data page).
So you need the raw gridded data, which is a file with the img suffix, and it is also handy to have the label file (it has the same name but with a lbl suffix).
So I'll cut right to the chase, the next step is to type the following on your command line, all in one go (the text below may be wrapped by your browser):
xyz2grd megt00n270hb.img -Gmegt00n270hb.grd -I0.0078125 -R270/360/-44/0 -Ddegrees/degrees/m/1/0/"MOLA Topography"/"128 pixels per degree" -F -ZTLhw -V
That's really all there is to it. Once you do that, you'll have a netCDF file, megt00n270hb.grd, that is ready to be used by other GMT programs.
However, if you already knew all of the ins and outs of GMT, then you probably wouldn't be reading this. So here are the details for each of the above elements:
xyz2grdmegt00n270hb.img-Gmegt00n270hb.grd-G with the value megt00n270hb.grd. This is the name that we'll call the output file. It could be anything we want, but this follows some reasonable naming patterns.
-I0.0078125-R270/360/-44/0-Ddegrees/degrees/m/1/0/"MOLA Topography"/"128 pixels per degree"-F-ZTLhw or -ZTLh-VThat's it, now you know how to take a raw MOLA gridded data file and convert it into a netCDF file.
GMT is great, but I get tired of typing in all of those options all of the time. I've created a Perl program, mola2gmt, that acts as a wrapper around the GMT xyz2grd program, and is smart enough to parse that label file to fill in a lot of the above options automatically. Furthermore, it also has the option of running grdcut on that file, since you rarely need an area as big as the default tile size of the gridded data products.
When you write up that great paper, don't forget to properly cite the PDS data. Similarly, you can also cite some GMT articles if you like.