PDA

View Full Version : Looking for tile map editor that exports map data as text files



Laskaris
03-31-2013, 08:38 AM
I am dabbling with some climate modelling software, to get a realistic climate for my fictional world. For its input, the software uses text-based files that include all the data on a planet's topography, bathymetry, and so on. For example, the topography file for a planet divided into 64 x 32 grid cells looks something like this:

0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 0
0 0 2 2 1 0 0 0
0 1 4 3 3 2 0 0

and so on. 2048 numbers in total representing elevation data for the 64 x 32 = 2048 grid cells of the planet.

Now, I am looking for a tile map editor that lets me make a tile map of a planet, and then exports the data as numbers to a text file, according to my specifications. This would allow me to easily create sets of topographic, bathymetric etc. data for using it in my climate modelling software.

Does anyone know of a tile map editor which can be set up to do this?

Thank you for your help!

GrumblingHive
04-29-2013, 09:30 AM
Hmm. I'm a bit sleepy, so it's possible I didn't understand correctly, but have you looked at imagemagick? Very good numerical output from bitmaps, constructs images from grids of numbers, etc.