if the ascii data is gridded X and Y with Z the height
many programs can read it
i can convert the simple cylindrical map i posted
http://imgbox.com/s4cVDHRd
to a CSV or a newline for each tone
– part of just the top line of that image
0.4973382353782654,0.4973375201225281,0.4973369240760803,0.4973363280296326,0.4973357319831848,0.4973350465297699,0.497334361076355,0.4973337352275848,0.4973330199718475,0.4973322153091431,0.4973317980766296,0.4973309934139252,0.4973304271697998,0.4973297715187073,0.4973290860652924,0.4973283708095551,0.4973277747631073,0.4973270893096924,0.4973263144493103,0.497325599193573,0.4973250329494476,0.4973240792751312,0.4973237216472626,0.4973227381706238,0.4973220229148865,0.4973213076591492,0.497320830821991,0.4973200261592865,0.4973195195198059,0.4973185062408447,0.4973178803920746,0.4973173141479492,0.4973164796829224,0.4973156154155731,0.4973149299621582,0.4973142743110657,0.4973134398460388,0.4973129034042358,0.4973121285438538,0.4973110854625702,0.4973106384277344,0.4973097741603851,0.4973090589046478,0.4973083436489105,0.4973075091838837,0.497306764125824,0.4973058700561523,0.4973052442073822,0.4973045289516449,0.4973037242889404,0.4973028898239136,0.4973023533821106,0.4973014295101166,0.4973005652427673,0.4972999095916748,0.4972991943359375,0.4972983300685883,0.4972977042198181,0.4972968697547913,0.4972958564758301,0.4972952604293823,0.4972945153713226,0.4972938001155853,0.4972928762435913,0.497292160987854,0.4972914457321167,0.4972905814647675,0.4972895979881287,0.4972890317440033,0.4972880780696869,0.4972874522209167,0.4972865283489227,0.497285783290863,0.4972848892211914,0.497283935546875,0.4972833096981049,0.4972825050354004,0.497281551361084,0.4972808957099915,0.4972798526287079,0.497279167175293,0.4972785711288452,0.4972774386405945,0.4972766637802124,0.4972758293151855,0.4972750544548035,0.4972738921642303,0.4972734153270721,0.4972724616527557,0.4972715377807617,0.497270792722702,0.4972701072692871,0.4972692430019379,0.4972682595252991,0.4972674548625946,0.4972667396068573,0.4972659349441528,0.4972649216651917,0.4972639977931976,0.4972631931304932,0.4972624182701111,0.4972615838050842,0.4972606897354126,0.4972597360610962,0.4972587823867798,0.4972581267356873,0.4972572326660156,0.4972562193870544,0.49725541472435,0.4972544610500336,0.4972538352012634,0.4972525537014008,0.4972518384456635,0.4972511529922485,0.4972499012947083,0.4972490966320038,0.4972485303878784,0.4972475171089172,0.4972467124462128,0.497245728969574,0.4972449541091919,0.497244119644165,0.4972431063652039,0.4972421526908875,0.4972416162490845,0.4972409009933472,0.4972397685050964,0.4972389340400696,0.4972377717494965,0.497236967086792,0.4972359836101532,0.4972351789474487,0.4972341954708099,0.4972333908081055,0.4972323775291443,0.4972315430641174,0.4972304701805115,0.4972297549247742,0.4972288012504578,0.4972279071807861,0.4972269535064697,0.4972260594367981,0.4972252249717712,0.4972240924835205,0.497223436832428,0.4972224235534668,0.4972214698791504,0.4972206056118011,0.4972196817398071,0.4972189366817474,0.4972178936004639,0.4972167909145355,0.4972158372402191,0.4972151219844818,0.4972141981124878,0.4972132444381714,0.4972125887870789,0.4972111582756042,0.4972104728221893,0.4972095489501953,0.4972086548805237,0.4972077310085297,0.4972065687179565,0.4972058236598969,0.4972048997879028,0.497203916311264,0.4972028434276581,0.4972020089626312,0.4972010850906372,0.4972003698348999,0.4971993565559387,0.4971980452537537,0.4971973299980164,0.4971965253353119,0.4971955418586731,0.4971946179866791,0.4971936345100403,0.4971926212310791,0.4971917569637299,0.4971908330917358,0.497189998626709,0.497188925743103,0.4971879422664642,0.4971869885921478,0.4971861839294434,0.4971853494644165,0.4971843659877777,0.4971832931041718,0.497182309627533,0.4971814751625061,0.4971804618835449,0.4971795678138733,0.4971785545349121,0.4971773624420166,0.4971766471862793,0.4971757531166077,0.4971747994422913,0.4971737265586853,0.4971727728843689,0.4971719682216644,0.4971708953380585,0.4971700310707092,0.497169017791748,0.4971680641174316,0.49716717004776,0.4971664547920227,0.4971652925014496,0.497164249420166,0.4971633851528168,0.4971624612808228,0.4971614480018616,0.4971605241298676,0.497159481048584,0.4971586167812347,0.4971577525138855,0.4971567094326019,0.4971559047698975,0.4971548020839691,0.4971538484096527,0.4971527755260468,0.4971518516540527,0.4971508681774139,0.4971498847007751,0.4971491992473602,0.4971481561660767,0.4971472024917603,0.4971462190151215,0.4971451759338379,0.4971444606781006,0.4971432685852051,0.497142493724823,0.4971414506435394,0.4971405863761902,0.4971396327018738,0.4971384406089783,0.4971376359462738,0.4971365630626678,0.4971355795860291,
or
0.4973382353782654
0.4973375201225281
0.4973369240760803
0.4973363280296326
0.4973357319831848
0.4973350465297699
so to convert the first example into a image i use Gmic in the terminal ( NOT the gimp plugin)
gmic data,txt -o ImageOfData.tif,float
Gmic can also change the values ( normalize it )
gmic ImageOfData.tif -n 0,1 -o normalized.tiff
and the min is now 0 and the max 1
or for 16 bit values
gmic ImageOfData.tif -n 1,65535 -o normalized.16U.tiff,ushort
( i like a tinny bit of padding 1 value on each end )
the second is a bit harder and i have a rather big and complex set of programs that already handle that ( raw2isis)
but for a 1024x1024 image OpenOffice Calc ( excel) can change it to a coma separated instead of a NEW LINE
and imagemagick ( custom Q32 build) can import a text image
once you have a 32 bit tiff or a 16 bit tiff it is easy to import it
or if you are good at python you can write a program
i also use Nip2 – a GUI to the VIPS image library
it has math functions also ( like gmic) but is less complex to use .