| 1 |
-- Data Source: |
| 2 |
http://koeppen-geiger.vu-wien.ac.at/present.htm |
| 3 |
|
| 4 |
Download "code with raster file: Map_KG-Global.R" |
| 5 |
|
| 6 |
|
| 7 |
-- Bulding: |
| 8 |
g++ asc2a.cpp texture.cxx -o asc2a -lGL -lz -losg |
| 9 |
|
| 10 |
|
| 11 |
-- Workflow: |
| 12 |
1. Convert the ESRI grid to ASCII using R: |
| 13 |
https://groups.google.com/forum/#!topic/maxent/OrTBUvqOXaE |
| 14 |
|
| 15 |
2. Run asc2a to convert the ASCII file to a single channel rgb file: |
| 16 |
./asc2a <infile>.asc <outfile>.rgb |
| 17 |
|
| 18 |
3. Use your favorite image processing package to convert from rgb to png |
| 19 |
to compress it 40x compared to the ESRI grid image and 110x compared to |
| 20 |
the ASCII file. |
| 21 |
|