I have a shapefile of the worlds biomes

I would like to export it as a raster file; preferably a netCDF file with the MsTMIP format standard.

Ultimately, I could work with a netCDF that keeps metadata from the shapefile, or even a csv with no metadata. I can generate the .csv myself, but I expect that existing tools will do much of the work for me. Do they exist?

1 Answer 1


Use ogr2ogr to convert it to GMT vector format, and then convert it using GMT to netCDF with all metadata saved.

  • 1
    Thanks - I'll let you know how it goes; I am glad to see that GMT5 is released under LGPL, since it is compatible with my BSD license.
    – Abe
    Commented Oct 26, 2012 at 20:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.