There's no need for any fancy tools here at all. Just a decent text-editor (notepad will do if necessary) will let you turn it into a ASCII text file in a few easy steps.
Process
- Export your data as a CSV file (Excel/LibreOffice). (If you can export it with space as the delimiter, skip step 4).
This gives me for my subset of 6 squares:
lat\lon,100,102,104
0,0.345,0.297,0.331
2,0.426,0.433,0.502
- Now, replace the top row of the file with the below.:
ncols 3
nrows 2
xllcorner 100.0
yllcorner 0.0
cellsize 2.0
NODATA_value -9999
You will need to change ncols to be the number of columns. Similarly change nrows to the number of data rows.
If you exported with commas as the delimiter (as in my example) use search and replace to replace all comma's with spaces.
Your final file should look like this:
ncols 3
nrows 2
xllcorner 100.0
yllcorner 0.0
cellsize 2.0
NODATA_value -9999
0.345 0.297 0.331
0.426 0.433 0.502
- Save it as My_raster.asc (or whatever) and load into your GIS of choice.
Output