Article révisé par les pairs
Résumé : The applications of the machine learning and programming approaches in cartog- raphy has been increasing in recent years. This paper presents a case study of the scripting techniques used for cartographic mapping using Generic Mapping Tools (GMT) and R lan- guage (raster and tmaps packages). The aim of the study is environmental mapping of Ghana. The materials include high-resolution raster grids: topography by the General Bathymet- ric Chart of the Oceans (GEBCO), climate and environmental datasets (TerraClimate) and Shuttle Radar Topography Mission (SRTM) Digital Elevation Model (DEM) for geomor- phometric analysis (slope, aspect, hillshade and elevations). The methodology includes code snippets commented and explained with details of scripts. It is argued that using console- based scripting tools for mapping is effective for cartographic workflow due to the logical structure and repeatability of scripts. The results include eight new thematic maps of Ghana performed using scripting approach in GMT scripting toolset and R language for quantitative and qualitative environmental assessment. Maps show correlations between the landforms of Ghana and certain environmental variables (drought index and soil moisture) showing the effects of the topographic relief on the distribution of the continuous geographic fields. These varied in several geographically distinct regions of Ghana: Ashanti (Kumasi), Volta, Savannah, coastal and northern regions. Demonstrated maps show that scripting method works effectively on a wide range of geosciences including environmental, topographic and climate studies. In such a way, this paper contributes both to the regional studies of Ghana and development of cartographic techniques.