Next Article in Journal
Quantitative Study on Agricultural Premium Rate and Its Distribution in China
Next Article in Special Issue
Machine Learning-Based Assessment of Watershed Morphometry in Makran
Previous Article in Journal
Swelling Cities? Detecting China’s Urban Land Transition Based on Time Series Data
Previous Article in Special Issue
A Machine Learning Framework for Assessing Urban Growth of Cities and Suitability Analysis
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Quantitative Morphometric 3D Terrain Analysis of Japan Using Scripts of GMT and R

Laboratory of Image Synthesis and Analysis (LISA), École Polytechnique de Bruxelles (Brussels Faculty of Engineering), Université Libre de Bruxelles (ULB), Building L, Campus du Solbosch, ULB—LISA CP165/57, Avenue F. D. Roosevelt 50, 1050 Brussels, Belgium
*
Author to whom correspondence should be addressed.
Land 2023, 12(1), 261; https://doi.org/10.3390/land12010261
Submission received: 25 December 2022 / Revised: 11 January 2023 / Accepted: 13 January 2023 / Published: 16 January 2023
(This article belongs to the Special Issue Feature Papers for Land Innovations – Data and Machine Learning)

Abstract

:
In this paper, we describe two related scripting methods of cartographic data processing and visualization that provide 2D and 3D mapping of Japan with different algorithm complexity. The first algorithm utilizes Generic Mapping Toolset (GMT), which is known as an advanced console-based program for spatial data processing. The modules of GMT combine the functionality of scripting with the aspects of geoinformatics, which is especially effective for the rapid analysis of large geospatial datasets, multi-format data processing, and mapping in 2D and 3D modes. The second algorithm presents the use of the R programming language for cartographic visualization and spatial analysis. This R method utilizes the packages ‘tmap’, ‘raster’, ‘maps’, and ‘mapdata’ to model the morphometric elements of the Japanese archipelago, such as slope, aspect, hillshade and elevation. The general purpose graphical package ‘ggplot2’ of R was used for mapping the prefectures of Japan. The two scripting approaches demonstrated an established correspondence between the programming languages and cartography determined with the use of scripts for data processing. They outperform several well-known and state-of-the-art GIS methods for mapping due to their high automation of data processing. Cartography has largely reflected recent advances in data science, the rapid development of scripting languages, and transfer in the approaches of data processing. This extends to the shift from the traditional GIS to programming languages. As a response to these new challenges, we demonstrated in this paper the advantages of using scripts in mapping, which consist of repeatability and the flexible applicability of scripts in similar works.
PACS:
91.10.Da; 95.75.Rs; 95.75.-z; 92.70.Iv; 92.70.Pq; 93.30.-w; 93.30.Db; 92.40.Pb
MSC:
97Pxx; 97P40; 97P50; 97M50; 97P10; 91D20; 68P05; 92F05
JEL Classification:
C60; C61; Q50; Q51; Q55; Q56

1. Introduction

Cartographic visualization is an important component of many Earth science applications. In numeric land modelling, the discriminative power of 2D and 3D mapping is a key factor in the topographic analysis of land features since it provides the most direct and quickest way to evaluate geospatial information. During the last four decades, a variety of Geographic Information Systems (GIS) have been developed, with commercial ArcGIS software certainly being the most widely used. Land surface modelling in GIS shows that qualitative data analysis, cartographic visualization and the interpretation of the topographic features visualized on maps activate the evaluation of spatial heterogeneity and the variability of the objects and environmental processes on the Earth.
The performance of various GIS is, in many cases, tailored to their specific tasks, among which vector and raster spatial data processing is arguably the most prominent and important functionality of these software. For instance, some are better suited for image processing, such as Erdas Imagine [1], Idrisi GIS [2,3], Integrated Land and Water Information System (ILWIS) GIS [4], and ENvironment for Visualizing Images (ENVI) GIS, while others are best at vector data analysis and visualization, e.g., ArcGIS [5,6,7,8,9]. Most of these GIS are based on a standard interface with a restricted functionality that requires the manual processing of data, although recently machine learning techniques have been applied to spatial data modelling [10] and image analysis [11,12]. However, while these methods drive the geospatial analysis to gather explicit information on the terrain structure and morphometric variations, the core question emerges as the cartographic approach underlying the computational complexity of geoinformation processing. This raises the multi-disciplinary goal of succeeding in improving the cartographic workflow over the performance of the conventional algorithms. For instance, the use of scripts, besides the pre-defined algorithms in GIS, can result in an enlarged cartographic workflow functionality for data being modelled.
GIS-based mapping is a tedious and time-consuming process for cartographic performance as it may involve a large number of separated tasks and operations that are normally made using different commands in the menu toolbar. For this reason, the workflow is split into various steps of data processing. Better still, however, is using the full functionality of the programming and machine learning, applications of scripting languages for plugins, and auxiliary tools that ensure data processing using scripts [13]. Spatial analysis can benefit from the automation of cartographic processes because scripting enables the repeatability of the process. The advanced modelling enables the performance of a more comprehensive analysis of various factors affecting land surfaces and processes.
On the other hand, the importance of machine learning for topographic and geomorphological mapping is well known since it is less error-prone and time-consuming compared to the traditional state-of-the-art GIS. At the very least, this can be a use for scripting for data visualization, such as in Generic Mapping Tools (GMT) [14,15]. Despite certain difficulties in mastering the program, such as its high learning curve, console-based non-visual operation mode, and complex steps of fine-tuning map elements, GMT nevertheless provides a much more powerful functionality of cartographic workflow and increased flexibility in data processing. Furthermore, it yields deep insights into how to process geospatial information in relation to the individual traits of datasets, including the transformation of coordinate systems and georeferencing, extracting attributes and labelling, processing binary formats for gridded datasets, modelling elevation data for morphometric analysis, reading interleaved data formats in one script, and many more.
In this paper, we extend this idea of using scripts to the morphometric mapping of Japan by incorporating several libraries of R and modules of GMT for cartographic data processing. We propose a scripting framework that, by facilitating the mapping process using powerful methods of programming, can plot 2D and 3D maps more effectively than standard techniques of GIS. We devise a systemic way to use and process geoinformation derived from raster grids for visualising morphometric elements and parameters of terrain and use them to develop a series of scripts that could be extended to other regions to improve cartographic performance in 2D and 3D modelling.
The accurate visualization of complex terrain models can lead to the increased precision and efficacy of maps. Cartographic layout is usually seen as the final stage of spatial analysis summarising and presenting the results in a graphical form. That said, scripting by R land GMT largely facilitates visualization since similar parts of scripts may be reused. The contribution of the paper is twofold. First, we demonstrated that script-based visualization offers the increased precision of the morphological analysis through automation of data processing. Second, a marked improvement in the development of cartographic methods is observed, since using R and GMT in a mapping workflow paved the way for the machine learning methods in geospatial data analysis.

1.1. Background and Motivation

Topography is an important characteristic of the land surface, which is reflected in the landscape and associated with numerous environmental factors. Specifically, the geomorphic and topographic features control and affect vegetation coverage [16,17], habitats and landforms [18,19], hydrology, soil distribution, and local micro-climate settings that are dependent on the topographic exposure, slope steepness, and curvature of the relief. Spatial characteristics that can be retrieved from the topographic and land surface maps have many applications, such as environmental management [20], flood monitoring [21], hydrological and fluvial modelling in riverine ecosystems [22,23], analysis of coastal processes [24], soil management practices, and analysis of crop yields [25,26,27]. Moreover, land surface maps present a background for the analysis of the correlation between the geomorphology and geology [28] and geophysical and geographic factors and processes [29].
Topographic mapping based on the digital elevation model (DEM) is considered one of the most important issues of cartography and is often used as background information for spatial analysis in the geosciences. An inherent research step in the computations of a terrain analysis based on DEM is the use of modelling methods where GIS is traditionally applied. A variety of existing GIS software can be used for the spatial data visualization and topographic analysis considered a background for both socio-geographic and physical-geographic mapping. Since the onset of the development of GIS, technical methods of cartographic visualization and approaches to terrain analysis have been constantly improved.
One of the key components in GIS software and cartographic data processing is map projection. Mapping lands evokes a distortion in their angle, area, and shape depending on the type of map projection, which may be of the conic, azimuthal, cylindrical or miscellaneous types [30]. As a result, minor distortions arise when transforming the coordinates into various types of projections. Therefore, various projections can be better adjusted to map specific study areas depending on their locations and spatial extent.
For instance, the Albers conic equal-area projection is mostly used to plot areas with large longitudinal extents, e.g., Canada and USA. The polyconic projections have true scales on the parallels represented as non-concentric circular arcs. This makes this projection class neither equal-area nor conformal with the least distortion on the parallels having their centres along a central meridian. Likewise, the Lambert conic conformal projection is suitable for regions with a W-E extent with a true scale on the two standard parallels. The equidistant conic projection keeps a balance between the conformal and equal-area types with minimised distortion over the study area and a true scale along all the meridians and standard parallels.
Large regions with a global extent are better mapped using the Lambert azimuthal equal-area or stereographic equal angle projections, while northern regions, such as Scandinavian areas, can be effectively plotted using the polar stereographic projection, where map boundaries are represented by lines of constant longitude and latitude. In this study, we used the cylindrical Mercator projection for plotting a topographic map that is conformal in type with an inserted small global map in a perspective projection.

1.2. Related Work

Various publications focused on Japan were published that, in particular, aimed to understand how the geomorphology of the Japanese Alps is linked to the geologic and surface structures [31], rock glacial processes and distribution of vegetation [32], or reflected in the adjacent bathymetry [33]. Multivariate methods of spatial analysis extract local or regional terrain features from spatial data using coordinates that locate them. Thus, a variety of analytic techniques involves methods of quantitative analysis for detecting and describing spatiotemporal information for a deeper understanding of land surface processes. These can be used as the advanced tools enabling the performance of a terrain analysis on the highly heterogeneous morphological setting of Japan, as reflected in relevant works [34,35,36,37,38].
By choosing a proper GIS, data handling can yield a large number of extended features. However, providing a standardised solution for selecting a proper GIS is a challenge since, in most cases, it has a similar functionality of both raster and vector data analysis. Nevertheless, whichever GIS is chosen, it requires active work in an interface menu with the manipulation of input data and modelling to present a cartographic visualization. Another point is the issue of open source availability, which has restricted access for commercial GIS. The increasing variety of GIS necessitates that alternative tools with more flexible and varied approaches to cartographic visualization and geospatial modelling should be explored. Scripting approaches can provide a substitute functional tool for cartographic visualization and geospatial modelling. Examples of scripting toolsets in cartography include the Geographic Resources Analysis Support System (GRASS) GIS [39,40] and GMT used in topographic and geomorphic mapping [41,42].

1.3. Contribution

This paper presents an application of the GMT cartographic scripting toolset [43] and the R language [44] for the spatial analysis and terrain mapping of Japan. We demonstrate the main advantages of both methods, which consist of their straightforward and logical language syntax, a scripting approach, and open-source access. We use the powerful functionality of several GMT modules for the fine-tuning of the cartographic visualization, as well as R packages to process both tabular and geospatial data directly from a console. We considered the existing cases of using R libraries for geospatial data processing and visualisation. For instance, special packages for geographic data processing include gstat [45], RStoolbox [46], terra, and raster [47].
This study makes a technical contribution to the development of cartographic methods by adapting the R language for mapping instead of the traditional GIS. We combined the GMT scripting toolset and R language for spatial data visualization and morphometric analysis in a cartographic framework, which included following general steps: (1) processing the data of the General Bathymetric Chart of the Oceans (GEBCO), Earth Topography Global Relief Model (ETOPO1) and ETOPO2 by GMT for 2D and 3D mapping by scripts; (2) the importing of Shuttle Radar Topography Mission (SRTM90) DEM by R; (3) visualising a DEM using the ‘raster’ package; (4) computing the topographic surface parameters of slope, aspect, and hillshade using R scripts; and (5) cartographic visualization by the ‘tmap’ package of R with additional cartographic elements (legend, histogram, grid, ticks, annotations, compass directions, and a bar scale).
The structure of this document is as follows. First, we discuss the key issues relevant to the morphometric modelling based on DEM in a cartographic analysis of the geospatial data. Specifically, slope, aspect, hillshade and elevation are reviewed as essential elements of the terrain analysis. Second, we present a case of the Japanese archipelago as an example for mapping and briefly outline the major geographic features and morphology of the Japanese Alps. Third, we point out that our combination framework can be easily extended to other regions with heterogeneous terrain morphology with minor modifications of the scripts. To this end, we provide technical notes on scripts, followed by a methodological description of the performed morphometric analysis using R and GMT. The full scripts are listed in the Appendix as a technical cartographic reference for similar studies. Furthermore, the methodological part demonstrates several screenshots of the performed scripting process in the RStudio environment, where maps of slope, aspect, hillshade and elevation are plotted, and the GMT for 2D and 3D modelling.
The results present the computed and visualized maps of the Japanese archipelago made by a GMT scripting toolset and in RStudio. The latter ones include the morphometric elements (slope, aspect, hillshade, and elevation) with statistical elements of data distribution as histograms and a map of prefectures of Japan visualized by the ‘ggplot2’ graphical package of R. A discussion of the machine-based approach to cartographic modelling and visualization follows the Results section. Finally, we provide conclusions regarding the advantages of using GMT and R in cartography compared to the state-of-the-art GIS techniques based on a standard graphical user’s interface and ways of modelling geospatial data by scripting languages from the console.

2. Materials and Methods

The key methods included the GMT with diverse modules and packages of Rm, including ‘tmap’ for thematic mapping and ‘ggplot2’, ‘ggmap’ [48], ‘maps’ and ‘mapdata’ for the data capture and thematic regional mapping of prefectures of Japan. The package ‘mapdata’ contains the base location of the binary files of prefectures boundaries of Japan used by the map drawing functions. The ‘raster’ package was used for morphometric analysis, which also included the depending packages, such as ‘sp’, a package which operates with classes and methods for spatial data, and ‘sf’, a package operating with ‘Simple Features’ as object classes in an R syntax.

2.1. Study Region

The study region is Japan, shown in Figure 1.
The geology of Japan is characterised by an early stage of mountain range formation comprising young and active island arcs [49]. As a result of complex tectonic movements, uplift, and denudation processes, the Japanese Alps consist of a mountain range cut by river and glacial valleys, running through the main island of Honshu. During the Quaternary period, the major axis of the Japan Alps experienced more than 2000 m of uplift, which, together with the denudation processes, resulted in the exposure of the Takidani Granodiorite. The regions is divided into three major parts: the Northern, Central, and Southern Alps. The northern region located in the Nagano, Toyama and Gifu prefectures includes the Hida Mountains with high seismicity along one of major Quaternary faults, the Atotsugawa fault, with repetitive earthquakes [50].
The geologic structure of the Hida terrane shows a complex geologic structure with gneisses formed from Permo-Carboniferous clastic sediments during a single metamorphism at ca. 250 Ma [51]. The Northern Japanese Alps are characterised by lateral and terminal moraines and outwash terraces of glacial origin. The Central Alps include the Kiso Mountains located in the Nagano prefecture [52] and are characterised by a granite structure. The highest peak of the Japanese Alps is recorded in Mt. Kita (3193 m) in the Southern Alps, or Akaishi Mountains.
The Japanese Alps had long been exploited, and their geologic structure, geomorphologic setting [53], and tectonic evolution [54] have been reconstructed. In addition to the environmental value and strong effects on the climate and vegetation setting of Japan, the Japanese Alps contribute to the economy of the country, being a source of natural mineral resources such as timber and minerals, as well as habitat for diverse species and vegetation, including medical herbs. Moreover, rice paddy fields are cultivated on the slopes of the mountains. Finally, the Alps are considered a potential source of geothermal energy [55]. All these factors make the Japanese Alps a key land surface object for nature and the society of Japan.

2.2. Datasets Preprocessing

The geospatial data processing was performed in RStudio environment, Figure 2.
The workflow included the following general scheme: (1) loading packages, (2) obtaining data, (3) inspecting data.frame, (4) setting up the coordinate system, (5) calculating terrain characteristics (slope, aspect, hillshade) by the ‘raster’ package, (6) visualizing maps on a screen in RStudio, (7) plotting cartographic aesthetics in the ‘tmap’ package, and (8) mapping the prefectures of Japan in the ‘ggplot2’ package. The data for the terrain analysis include digital elevation models (DEM) from the Shuttle Radar Topography Mission (SRTM). The SRTM is widely used in research [56] due to its acceptable resolution (30 m × 30 m) and open-source availability: the National Aeronautics and Space Administration (NASA) Shuttle Radar Topography Mission (SRTM) provided DEMs for over 80% of the land surface on the Earth. The slope, aspect, hillshade and elevation maps were plotted using the RStudio environment [57] using the ‘raster’ package as implemented by [58]. Specifically, the following workflow was used for data pre-processing. The data were captured using the ‘getData()’ function of the ‘raster’ package of R from the available geospatial datasets of the University of California, Davis campus, CA, U.S.
The data were then reprojected to the Lambert conformal conic projection (LCC) by the following function: c r s ( a l t ) < " + p r o j = l c c + l a t _ 1 = 30 + l a t _ 2 = 40 + l o n _ 0 = 140 + d a t u m = W G S 84 " . The coordinate system is an important aspect of geographic data which is implemented in the R environment by a PROJ library [59]. It should be specially mentioned that the SRTM shows elevation data not as a bare-earth model but as a surface, which includes dense canopy forests and built-up areas in the estimation of the terrain. Although such nuances might be worrying in hydrological modelling, the SRTM is generally acceptable for country-level mapping, as in our case for mapping Japan using SRTM DEM.

2.3. Methods

2.3.1. 3D Modelling by GMT Scripts

Scripting by Generic Mapping Tools (GMT) followed the existing cartographic experience [60] with the use of a 3D package for the terrain modelling of Japan, as seen in Figure 3.
It should be noted that 3D modelling is an important approach to data processing, with many applications in engineering and natural sciences [61,62,63,64]. Most 3D modelling approaches in mapping address the problem of the visualization of the land surface in the forms of multiple views of the terrain by 3D data acquisition, e.g., light detection and ranging (LiDAR) [65,66]. The high cost of special hardware for obtaining LiDAR data and substantial manual processing reduce the operational flexibility of such approaches and limit their availability as practical applications for topographic mapping.
In this part, we present 3D terrain modelling based on the GMT open soft toolset. Such approach makes 3D mapping a more practical routine and enables many applications in Earth science with advanced cartographic data visualization of the terrain. Here, the 3D shapes of the terrain are presented in perspective projections for data interpolated by splines with heights obtained from the 3D coordinates of the raster grids of the ETOPO1 and ETOPO2 datasets. The differences in the local ruggedness of the terrain as represented by ETOPO1 and ETOPO2 are visualised and compared in 3D perspective plots with a rotated azimuth view. The algorithms included the ‘grdview’ module of GMT, as shown in scripts in the Appendix A.

2.3.2. Mapping the Prefectures of Japan

To illustrate the location of various prefectures of Japan, we used the "ggplot2" packages of R for plotting the regions of prefectures using arguments in the dataset for visualization. The data were captured by the ‘maps’ package of R [67] and ‘mapdata’, which provide the map databases, including the data on Japan: its prefectures, areas, etc. The advantage of this approach consists of the integrated use of ‘mapdata’ with the ‘ggplot2’ package of R. The ‘ggplot2’ package is a common graphical package designed for general purpose scientific visualization; however, it is applicable for cartographic purposes as well. Here, the main elements, i.e., the polygons of the prefectures in Japan, were plotted using the g e o m _ p o l y g o n function, which operates with data frames containing the coordinates of polygons and values associated with each of them:
geom_polygon(data=japan, aes(x=long, y=lat, fill=region, group=group)
The annotations of the axes were added using the ‘xlab’ and ‘ylab’ functions. The color scales were defined in the RColorBrewer and extended from the default, fixed number of colors to the number of prefectures in Japan, which was inspected by the ‘length’ function, as follows:
length(unique(japan$region))
Afterwards, the number of colors in the color palette was defined using the ‘colourCount’ function:
colourCount = length(unique(japan$region))
Following that, the color palette was expanded to the required number (47 prefectures of Japan) by the use of the ‘colorRampPalette’ function, as follows:
colorRampPalette(brewer.pal(name="Spectral", n = 8))(47).
Now, when the color palette was adjusted to the dataset, the map of prefectures of Japan was colored by assigning each individual color to each of the 47 prefectures, as follows:
scale_fill_manual(values = getPalette(colourCount)).
Other, additional cartographic elements included adding the titles, subtitles and captions by the ‘labs’ function, which enables the modification of the labels, annotations and captions. The rest of the aesthetics were added using t h e m e ( ) function, as shown in Figure 4, which provides an illustration of the script on the left and the resulting output map on the right part of the menu. These include, among others, plotting the legend, its orientation and annotations, defining the text size and font characteristics, selecting the color of background, and choosing the types of grid ticks and the frequency of breaks on a cartographic grid. The final map is shown in Figure 4.
The map of the prefectures of Japan (Figure 4) presented the visualization of the 47 prefectures made using the ‘ggplot2’ package of R, as well as the ‘mapdata’ and ‘maps’ packages used for data capture and processing. Each prefecture was colored as single-colored polygons modified from the default palette of R (‘Spectral’) using the palette extension by the ‘colorRampPalette’ function.

2.3.3. Mapping Morphological Features

Modeling slope, aspect, and hillshade is a technique for visualising terrain determined by DEM as a numerical data source. Here, the slope and the aspect were plotted first as major features. Following that, we visualised the hillshade, which is a derivative from the slope and an aspect of the elevation. The parameters of hillshade were adjusted and visually changed using various illuminating positions of the light source as degrees of simulated sun angle rotation. The four derivatives of the SRTM90 DEM grid were modelled and visualized using R as follows: slope, aspect, hillshade, and elevation.
The slope gradient, aspect and hillshade were defined by the algorithm of the ‘raster’ package of R at any point of the input raster grid (SRTM90) using local neighbourhood analysis. These variables are automatically defined by the machine using values of altitude (elevation) and its derivatives at or around each cell point on a raster grid representing the land surface. The ‘alt’ has a formal class ‘RasterLayer’ of package ‘raster’ with 12 slots.

Slope

The terrain characteristics of slope were calculated and modelled using the ‘raster’ package of R using the following sequence of commands. First, the color palette of R was created for visualization: c o l s < r a i n b o w ( 255 ) . Second, the slope and aspect were computed by following: s l o p e = t e r r a i n ( a l t , o p t = s l o p e " ) . Third, the slope was visualised: p l o t ( s l o p e , c o l = c o l s , m a i n = S l o p e , x l a b = l o n " , y l a b = l a t " ) . Here, ‘alt’ represents the abbreviation of ‘altitude’.

Aspect

The aspect was modelled using the function ‘terrain’ with the option ‘aspect’ as follows: a s p e c t = t e r r a i n ( a l t , o p t = a s p e c t " ) , followed by the definition of colors: c o l s < t e r r a i n . c o l o r s ( 255 ) . Afterwards, using the same function p l o t ( ) as for the slope modeling, the map of the aspect was plotted using the following snippet of code: p l o t ( a s p e c t , c o l = c o l s , m a i n = E x p o s u r e , x l a b = l o n " , y l a b = l a t " ) . The full script of R is provided in the Appendix A.5.

Hillshade

The topographic hillshade represents a remarkable phenomenon in cartography that occurs when shadow caused by the elevation cue three-dimensional shape perception. Various techniques exist to produce a monochrome 3D view of a terrain relief with the relative position of the artificial illumination representing the shadows from the natural sun. The effects from this shading are well reflected in a highly rugged terrain such as Japan, where high-elevation land surface uses strong luminance contrast, while low heights use low contrast. In attempts to visualise reliefs using the shading effects of a monochrome palette, efforts have been made since the onset of the GIS development and are considered in this work. The computation of hillshade was carried out using the following algorithm: h i l l = h i l l S h a d e ( s l o p e , a s p e c t , a n g l e = 40 , d i r e c t i o n = 270 ) . The color palette was applied using the code snippet: c o l s < t o p o . c o l o r s ( 255 ) . Plotting the map was carried out using the plot function as described above.

Cartographic processing

Mapping the morphological parameters in the ‘tmap’ package [68] included the processing of the computed raster layers by a specifically designed cartographic package where more elements could be added to the layout and more control over their aesthetics was available. The package used a function t m a p _ s t y l e , where the general style of the layout was defined. Then, t m _ s h a p e was used to control the main data: the name of the raster, title, and subtitle. The t m _ r a s t e r function was applied to process the color scale of the numeric variables (values of slopes in degrees), labels, and other cartographic details in the legend; see Figure 5.
The t m _ s c a l e _ b a r and t m _ c o m p a s s functions show the parameters of the annotations of the auxiliary elements on the map. Thus, the t m _ l a y o u t function controls the variety of the cartographic aesthetics necessary for proper visualization, such as the fonts and ticks or color of panel labels. The elements of the map affect the perception of the cartographic layout, which is crucial for overall visual appreciation by the reader. Therefore, map elements were adjusted using relevant functions of the package. The final map was visualized in an RStudio environment by calling the raster for inspection (here, ‘map1’) and saved using the t m a p _ s a v e function: t m a p _ s a v e ( m a p 1 , S l o p e _ J a p a n . j p g " , h e i g h t = 7 ) . The same procedure was repeated with all the other three files (slope, aspect, and hillshade). The script visualized in RStudio is presented in Figures where the left parts demonstrate the script and the right part shows the output maps.

3. Results

The results of the geospatial modelling of Japan are structured into the 2D and 3D plots made using GMT, the regional mapping of prefectures performed by R, and morphological mapping (slope, aspect, and hillshade sections). Various R packages were used in the workflow, as described above and presented in the Appendices. The slope gradient, being a derivative of the altitude, presents a scale-dependent variable which changes according to the reduced or increased DEM resolution. Since the input data of this research are a 30*m SRTM DEM, the results of the slope modelling refer to the given resolution.
Marked physiographic variations in the Japanese Alps control the type and distribution of morphometric parameters in the following two regards. First, the heights change between the Hokkaido, Kyushu and Honshu Islands, with the highest elevation points in the central part of the Honshu (Mt. Fuji). Therefore, the variation of topographic ruggedness and slope steepness is primarily controlled by the geographic location, with the largest difference between the extreme highest and lowest points in the Central Alps. Second, the largest earthquake recorded in Japan, the Tohoku earthquake recorded ca. 371 km NE of Tokyo in 2011 (Miyagi prefecture, see the map in Figure 4), affected the topography of the country and increased slope instability and the risk of landslides.
The comparison of the exposure (Figure 5, left) and elevation maps (Figure 5, right) shows the trends in the North-South-West-East directions with regard to the topographic altitude of the land surface. The functional options related to the visualization by RStudio are discussed in previous sections. The presented maps are based on the ETOPO1 and ETOPO2 data with 1 and 2 arc second resolution, respectively, used for 3D modelling by GMT, as shown on the surface plot of the land relief of Japan with varied rotation. The 3D mesh model with isolines drawn on top of the surface is based on ETOPO2, and the grey-shaded topographic ‘waterfall’ plot based on the ETOPO2 grid with a view rotation of 115/30° as shown in Figure 6.
A 3D map with a view rotation of 65/30°is presented in Figure 7. The SRTM90 DEM, which shows the morphometric models, represents the slope, aspect, and hillshade relief in the land surface of Japan. The number of pixels (over 16,000 on a raster grid) was the greatest in the ‘gentle’ slope level (yellow color) compared to the others: 12,000 pixels for the ‘moderate’ slope (orange color), over 10,000 for the ‘strong’ slope (light red color), and 8000 for the ‘very strong’ slope (magenta color); three bins are covered by the class ‘extreme’ slope (purple color), and the rest (blue color) are represented by the less than 3000 pixels group, that is, the steepest mountain slopes.
The slope map shows the steepness of the mountain sides in the Japanese Alps in the Northern, Central and Southern Alps. The highs and hills in the raster grids are visualised in different sub-regions of Japan. The slope directions (Figure 8) revealed the following variations in the data: ‘gentle’, ‘moderate’, ‘strong’, ‘very strong’, ‘extreme’, and ‘steep’ slopes of the mountainous regions of Japan.
The aspect map (Figure 9) demonstrates that slope orientation, according to the compass direction (W-E-S-N), differs in various parts of the mountains chains of the Japanese Alps.
Thus, in the central part of the area (around 36° N), many slopes have a primarily west orientation (as shown by a red color), which is correlated to the geographic distribution of the Central Alps. However, in other parts, the southern (yellow color) and eastern (orange color) orientations demonstrate the prevailing values. Similarly, the northern orientation (green color) of the slopes contributes the least in the examined dataset.
Furthermore, the relationship of the slope aspect and elevation values indicating the altitude of the mountains might be the points of correlation. This should be emphasised since the impact of the geomorphic patterns on the morphometric characteristics helps detect the trends, showing the relief in the Japanese Alps. The hillshade map (Figure 10) shows a complex model based on the previously created maps of slope and aspect.
The levels of illumination were set at angle = 40°and azimuthal direction = 270°. The elevation map was used as a basis for the relief overlaid by the hill shading. The results of the regional mapping of prefectures performed by R are shown in Figure 11.

4. Discussion

The results of the SRTM90 DEM modelling identified major morphometric characteristics, such as slope, aspect and hillshade and demonstrated the uneven elevation in the topographic maps made using R scripting. Using a variety of R packages implies both the processing of data, exploration of data frames, manipulation of its structure and spatial data analysis (e.g., using the ‘raster’ package), and the cartographic aesthetic visualization of the layouts supported by specially designed packages such as ‘tmap’, ‘maps’ and ‘mapdata’.
The analysis of topographic attributes and DEM is of fundamental importance for reconstructing the genesis and development of landforms and, more generally, the geological setting of a specific area. The new ways of measuring, sensing, and analysing relief morphology carried out in Japan suggest that the range of the relief is reinforced by the high-elevation landforms, as well as external factors such as geomorphological processes and the climate, which contribute to eroding and modifying them. In fact, a strong correlation between geomorphology, topography and climate is commonly known, as also reported in Japan [69]. As proof of this, they pointed out that the climatic changes since the Late Glacial period have been responsible for the passage from the glacial to the permafrost environment in the current alpine zone, leading to modifications in the geomorphological processes and in the relief of the northern Japanese Alps.
Other important findings in geomorphic studies in Japan are well summarized by [70], who noted extensive sedimentation in mountain piedmonts and coastal fluvial plains and abundant sediment in steep watersheds. They furthermore pointed out the occurrence of hydro-geomorphological events in the areas of earthquakes and volcanic eruptions, as well as the post-glacial development of hillslope and flood processes along alluvial fans strongly controlled by the climate. In addition to the environmental factors, the relief directly influences the social-economic patterns through the possibility of road and building constructions and the potential triggering of landslides, which depend on the rock properties and slope steepness.
The geomorphic processes are largely driven by the gravity of the Earth and controlled by the slope steepness of the relief. As a result, the intensity of the surface processes, such as landslides, is affected by the displacement gradients connected to the geometric curvature and ruggedness of the relief. In such a way, practical applications of land surface maps in 2D and 3D representations enable the evaluation of the slope steepness quantitatively. In turn, the information retrieved from the calculated rates at which landslides are dismantling mountain slopes can be used for hazard and risk assessment for practical purposes of engineering geology, as well as for estimating potential slope instability [71]. Furthermore, other applications of land surface maps include the evaluation of environmental risks caused by climatic factors, such as precipitation intensity and the repeatability of rainfall or downpours [72,73] and visualising water surface dynamics in the context of flood and drought applications [74]. Finally, risk assessment and management in mountainous regions should consider other natural events, such as earthquakes or typhoons [75,76,77].
Due to the importance of topographic data visualization and the need for updated maps based on high-resolution data, there are many research reports on methods of topographic and bathymetric mapping and DEM applications for geospatial mapping. The latter includes, for instance, land surface classification based on DEM, reliefs, and geomorphological modelling using various GIS and geomorphometric computations of slope and aspect, as well as issues concerning the visualising methods of hillshade and DEM [78,79,80]. Since morphometric studies should always be supported by a spatial topographic representation, the questions of technical tools of mapping always remain actual for DEM-based studies. Our research contributed to this topic and showed that the integrated use of GMT and R in morphometric studies is an effective approach both for thematic mapping and for spatial analysis.
Graphics and maps, when created well, can provide eye-catching and detailed information on the land surface. This is why graphical approaches and methodologies of cartographic visualization are of high importance in Earth sciences. Despite a specific language syntax and approaches to data analysis that require mastering the tool, the GMT scripting toolset and R language are shown to be very promising tools for geospatial visualization, morphological modelling, and mapping, supporting the research in various aspects due to their different functionality.
Cartographic data visualization, regardless of what GIS software is used, is an integral part of the complex workflow of geospatial research. To mention some steps in a simplified process of geospatial data analysis using cartographic tasks, this includes data capture, preprocessing, projecting, analysis of content of the datasets, modelling variables, visualising and plotting the maps with controlled layout, and others. Applying the methods of scripts extended to the machine learning approaches to a cartographic workflow facilitates the process of spatial analysis. Specifically, it helps to increase the accuracy and precision of the final results and maps and significantly decreases the time of data processing due to the automation of geospatial data processing. Moreover, we have shown that the use of scripts and programming methods are more efficient and therefore more suitable for cartographic workflow due to repeatability. Our methods could be easily extended to also use other datasets and geographic extent of data. In fact, the computational procedure adopted here to investigate the setting of reliefs and mapping land features in 2D or 3D models could be applied to any target scales, be it global downscaled modelling or upscaling to regional (prefecture-level) and local (city-level) terrain models.

5. Conclusions

In this paper, we have designed adaptive script-based algorithms for plotting morphologic maps using GMT and R that are able to visualise maps accurately and effectively. Our two algorithms provide a tradeoff between the computational approach of R for geospatial data processing and the cartographic performance of GMT. For future relevant works, we suggest that one chooses the appropriate algorithm based on their mapping goals and available dataset. Both programs have free access as open-source tools and extensive functionality for geographic data analysis and visualization. The presented methods can be used and adopted to other regions and areas with changed relevant coordinates and modified attributes for 3D modelling (e.g., elevation range). We have shown that the use of both these tools for mapping is a very effective approach for spatial analysis that can be used instead of or besides GIS, as a complimentary script-based method.
We furthermore identified the existing challenges such as the need to use, install, and load a variety of packages in R to fit in various tasks, such as: geomorphometry, classic mapping, spatial analysis, data capture, and data conversion. In contrast, GMT enables us to perform all the steps of a cartographic workflow in the same session by calling necessary modules. On the one hand, using scripts can be an easier approach compared to GIS, but on the other hand, it can be a challenge, since it requires finding a suitable package, installing and activating it, and using it by applying its specific functions and syntax using GMT or R.
The integration of our method based on the GMT and R algorithms for processing various geospatial data is straightforward since many data formats can smoothly be imported and processed both by GMT and R. Furthermore, R has certain embedded datasets that we used for plotting the prefectures of Japan and for visualising physical features of relief. Working on grey-level images for 3D modelling by GMT enabled us to detail the land surface features and demonstrated the high accuracy of the ETOPO grids. With respect to our work, which exploited script-based mapping, we have designed and presented a series of thematic maps on Japan that can be applied for other regions and countries.
As we have shown in this study, the use of GMT and R for 2D and 3D mapping in geographic analysis is highly effective and recommended, especially for perspective visualization of the terrain. However, we should also notice that this method is not yet as popular as traditional GIS. This can be explained by the non-trivial approach of using scripts and programming techniques in mapping and cartographic data processing, as well as certain skills required for coding and mastering the syntax of both the tools. Nevertheless, the improved workflow of mapping and results suggests that both GMT and R are effective for geosciences and recommended for mapping purposes.

Author Contributions

Supervision, conceptualization, methodology, software, resources, funding acquisition, and project administration, O.D.; writing—original draft preparation, methodology, software, data curation, visualization, formal analysis, validation, writing—review and editing, and investigation, P.L. All authors have read and agreed to the published version of the manuscript.

Funding

The publication was funded by the Editorial Office of Land, Multidisciplinary Digital Publishing Institute (MDPI) with the publication fee waived for this manuscript. This project was supported by the Federal Public Planning Service Science Policy or Belgian Science Policy Office, Federal Science Policy—BELSPO (B2/202/P2/SEISMOSTORM).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

The authors thank the anonymous reviewers of Land for reading, suggestions and comments that improved an earlier version of this manuscript.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

    The following abbreviations are used in this manuscript:
DEMDigital Elevation Model
ENVI GISENvironment for Visualizing Images GIS
ETOPOEarth Topography Global Relief Model
GEBCOGeneral Bathymetric Chart of the Oceans
GISGeographic Information System
GMTGeneric Mapping Tools
ILWIS GISIntegrated Land and Water Information System GIS
LCCLambert Conformal Conic
LiDARLight Detection and Ranging
NASANational Aeronautics and Space Administration
SRTMShuttle Radar Topography Mission
WGSWorld Geodetic System

Appendix A. GMT Scripts

Appendix A.1. GMT Script for 2D Mapping of Japan

Listing 1. GMT script for topographic map.
Land 12 00261 i001aLand 12 00261 i001bLand 12 00261 i001c

Appendix A.2. GMT Script for 3D Mapping of Surface Plot of Japan

Listing 2. GMT script for 3D surface plot of Japan.
Land 12 00261 i002

Appendix A.3. Modified GMT Script for 3D Mesh Model of Japan (Lines 29–34 of the Previous Script)

Listing 3. GMT script for 3D mesh model of Japan.
Land 12 00261 i003

Appendix A.4. GMT Script for 3D Grayscale ‘Waterfall’ Model of Japan

Listing 4. GMT script for 3D grayscale ‘waterfall’ model of Japan.
Land 12 00261 i004

Appendix A.5. R Script for Plotting Prefectures of Japan

Listing 5. R script for plotting prefectures of Japan.
Land 12 00261 i005aLand 12 00261 i005b

Appendix A.6. R Script for Terrain Mapping of Japan

Listing 6. R script for terrain maps.
Land 12 00261 i006aLand 12 00261 i006b

Appendix A.7. R Script for Mapping Slope of Japan

Listing 7. R script for mapping slope map of Japan.
Land 12 00261 i007aLand 12 00261 i007b

Appendix A.8. R Script for Mapping Aspect of the Terrain in Japan

Listing 8. R script for mapping aspect of the terrain in Japan.
Land 12 00261 i008aLand 12 00261 i008b

Appendix A.9. R Script for Mapping Hillshade in the Terrain of Japan

Listing 9. R script for mapping hillshade in the terrain of Japan.
Land 12 00261 i009

Appendix A.10. R script for mapping elevation heights over Japan

Listing 10. R script for mapping elevation heights over Japan.
Land 12 00261 i010

References

  1. Iwahashi, J.; Kamiya, I.; Matsuoka, M. Regression analysis of Vs30 using topographic attributes from a 50-m DEM. Geomorphology 2010, 117, 202–205. [Google Scholar] [CrossRef]
  2. Shoyama, K. Assessment of Land-Use Scenarios at a National Scale Using Intensity Analysis and Figure of Merit Components. Land 2021, 10, 379. [Google Scholar] [CrossRef]
  3. Ayalew, L.; Yamagishi, H. The application of GIS-based logistic regression for landslide susceptibility mapping in the Kakuda-Yahiko Mountains, Central Japan. Geomorphology 2005, 65, 15–31. [Google Scholar] [CrossRef]
  4. Babiker, I.S.; Mohamed, M.A.; Hiyama, T.; Kato, K. A GIS-based DRASTIC model for assessing aquifer vulnerability in Kakamigahara Heights, Gifu Prefecture, central Japan. Sci. Total Environ. 2005, 345, 127–140. [Google Scholar] [CrossRef]
  5. Ohta, R.; Matsushi, Y.; Matsuzaki, H. Use of terrestrial cosmogenic 10Be to quantify anthropogenic sediment yield from mountainous watersheds: Application in reconstructing environmental change in the Tanakami Mountains, central Japan. Geomorphology 2022, 405, 108201. [Google Scholar] [CrossRef]
  6. Ikemi, H. Geologically constrained changes to landforms caused by human activities in the 20th century: A case study from Fukuoka Prefecture, Japan. Appl. Geogr. 2017, 87, 115–126. [Google Scholar] [CrossRef]
  7. Iwahashi, J.; Kamiya, I.; Yamagishi, H. High-resolution DEMs in the study of rainfall- and earthquake-induced landslides: Use of a variable window size method in digital terrain analysis. Geomorphology 2012, 153–154, 29–38. [Google Scholar] [CrossRef]
  8. Nakayama, T.; Osako, M. Development of a process-based eco-hydrology model for evaluating the spatio-temporal dynamics of macro- and micro-plastics for the whole of Japan. Ecol. Model. 2023, 476, 110243. [Google Scholar] [CrossRef]
  9. Hanaoka, K.; Nakaya, T.; Yano, K.; Inoue, S. Network-based spatial interpolation of commuting trajectories: Application of a university commuting management project in Kyoto, Japan. J. Transp. Geogr. 2014, 34, 274–281. [Google Scholar] [CrossRef]
  10. Thongthammachart, T.; Araki, S.; Shimadera, H.; Matsuo, T.; Kondo, A. Incorporating Light Gradient Boosting Machine to land use regression model for estimating NO2 and PM2.5 levels in Kansai region, Japan. Environ. Model. Softw. 2022, 155, 105447. [Google Scholar] [CrossRef]
  11. Alifu, H.; Vuillaume, J.F.; Johnson, B.A.; Hirabayashi, Y. Machine-learning classification of debris-covered glaciers using a combination of Sentinel-1/-2 (SAR/optical), Landsat 8 (thermal) and digital elevation data. Geomorphology 2020, 369, 107365. [Google Scholar] [CrossRef]
  12. Carrasco, L.; Fujita, G.; Kito, K.; Miyashita, T. Historical mapping of rice fields in Japan using phenology and temporally aggregated Landsat images in Google Earth Engine. ISPRS J. Photogramm. Remote Sens. 2022, 191, 277–289. [Google Scholar] [CrossRef]
  13. Naghibi, S.A.; Hashemi, H.; Pradhan, B. APG: A novel python-based ArcGIS toolbox to generate absence-datasets for geospatial studies. Geosci. Front. 2021, 12, 101232. [Google Scholar] [CrossRef]
  14. Farag, T.; Sobh, M.; Mizunaga, H. 3D constrained gravity inversion to model Moho geometry and stagnant slabs of the Northwestern Pacific plate at the Japan Islands. Tectonophysics 2022, 829, 229297. [Google Scholar] [CrossRef]
  15. Lemenkova, P. Handling Dataset with Geophysical and Geological Variables on the Bolivian Andes by the GMT Scripts. Data 2022, 7, 74. [Google Scholar] [CrossRef]
  16. Hara, Y.; Oki, S.; Uchiyama, Y.; Ito, K.; Tani, Y.; Naito, A.; Sampei, Y. Plant Diversity in the Dynamic Mosaic Landscape of an Agricultural Heritage System: The Minabe-Tanabe Ume System. Land 2021, 10, 559. [Google Scholar] [CrossRef]
  17. Gomez, C.; Hayakawa, Y.; Obanawa, H. A study of Japanese landscapes using structure from motion derived DSMs and DEMs based on historical aerial photographs: New opportunities for vegetation monitoring and diachronic geomorphology. Geomorphology 2015, 242, 11–20. [Google Scholar] [CrossRef] [Green Version]
  18. Kim, M.; Rupprecht, C.D.D.; Furuya, K. Residents’ Perception of Informal Green Space—A Case Study of Ichikawa City, Japan. Land 2018, 7, 102. [Google Scholar] [CrossRef] [Green Version]
  19. Sasaki, K.; Hotes, S.; Ichinose, T.; Doko, T.; Wolters, V. Hotspots of Agricultural Ecosystem Services and Farmland Biodiversity Overlap with Areas at Risk of Land Abandonment in Japan. Land 2021, 10, 1031. [Google Scholar] [CrossRef]
  20. Otani, S.; Kurosaki, Y.; Kurozawa, Y.; Shinoda, M. Dust Storms from Degraded Drylands of Asia: Dynamics and Health Impacts. Land 2017, 6, 83. [Google Scholar] [CrossRef]
  21. Hooke, J.M. Changing landscapes: Five decades of applied geomorphology. Geomorphology 2020, 366, 106793. [Google Scholar] [CrossRef]
  22. Siakeu, J.; Oguchi, T.; Aoki, T.; Esaki, Y.; Jarvie, H.P. Change in riverine suspended sediment concentration in central Japan in response to late 20th century human activities. CATENA 2004, 55, 231–254. [Google Scholar] [CrossRef]
  23. Nakayama, T. For improvement in understanding eco-hydrological processes in mire. Ecohydrol. Hydrobiol. 2013, 13, 62–72. [Google Scholar] [CrossRef]
  24. Ito, S.; Onitsuka, T.; Kuroda, H.; Hasegawa, N.; Fukuda, H.; Gouda, H.; Akino, H.; Sonoki, S.; Endo, K.; Takayama, T.; et al. Evaluation of seafloor environmental characteristics of harvesting ground of a kelp Saccharina longissima using GIS in the Pacific coastal area of eastern Hokkaido, Japan. Reg. Stud. Mar. Sci. 2022, 55, 102527. [Google Scholar] [CrossRef]
  25. Tabuchi, K.; Murakami, T.; Okudera, S.; Furihata, S.; Sakakibara, M.; Takahashi, A.; Yasuda, T. Predicting potential rice damage by insect pests using land use data: A 3-year study for area-wide pest management. Agric. Ecosyst. Environ. 2017, 249, 4–11. [Google Scholar] [CrossRef]
  26. Priya, S.; Shibasaki, R. National spatial crop yield simulation using GIS-based crop production model. Ecol. Model. 2001, 136, 113–129. [Google Scholar] [CrossRef]
  27. Sasai, T.; Nakai, S.; Setoyama, Y.; Ono, K.; Kato, S.; Mano, M.; Murakami, K.; Miyata, A.; Saigusa, N.; Nemani, R.R.; et al. Analysis of the spatial variation in the net ecosystem production of rice paddy fields using the diagnostic biosphere model, BEAMS. Ecol. Model. 2012, 247, 175–189. [Google Scholar] [CrossRef]
  28. Matsu’ura, T.; Kimura, H.; Komatsubara, J.; Goto, N.; Yanagida, M.; Ichikawa, K.; Furusawa, A. Late Quaternary uplift rate inferred from marine terraces, Shimokita Peninsula, northeastern Japan: A preliminary investigation of the buried shoreline angle. Geomorphology 2014, 209, 1–17. [Google Scholar] [CrossRef]
  29. Imaizumi, F.; Nishiguchi, T.; Matsuoka, N.; Trappmann, D.; Stoffel, M. Interpretation of recent alpine landscape system evolution using geomorphic mapping and L-band InSAR analyses. Geomorphology 2018, 310, 125–137. [Google Scholar] [CrossRef]
  30. Ghaderpour, E. Some Equal-area, Conformal and Conventional Map Projections: A Tutorial Review. J. Appl. Geod. 2016, 10, 197–209. [Google Scholar] [CrossRef]
  31. Matsuoka, N. A multi-method monitoring of timing, magnitude and origin of rockfall activity in the Japanese Alps. Geomorphology 2019, 336, 65–76. [Google Scholar] [CrossRef]
  32. Fujino, M.; Sakakibara, K.; Tsujimura, M.; Suzuki, K. Influence of alpine vegetation on water storage and discharge functions in an alpine headwater of Northern Japan Alps. J. Hydrol. X 2023, 18, 100146. [Google Scholar] [CrossRef]
  33. Kariya, Y. Geomorphic processes at a snowpatch hollow on Gassan volcano, northern Japan. Permafr. Periglac. Process. 2002, 13, 107–116. [Google Scholar] [CrossRef]
  34. Oguchi, T. Geomorphology and GIS in Japan: Background and characteristics. GeoJournal 2000, 52, 195–202. [Google Scholar] [CrossRef]
  35. Oguchi, T. Geomorphological debates in Japan related to surface processes, tectonics, climate, research principles, and international geomorphology. Geomorphology 2020, 366, 106805. [Google Scholar] [CrossRef]
  36. Matsu’ura, T. Late Quaternary uplift rate inferred from marine terraces, Muroto Peninsula, southwest Japan: Forearc deformation in an oblique subduction zone. Geomorphology 2015, 234, 133–150. [Google Scholar] [CrossRef] [Green Version]
  37. Niwa, Y.; Sugai, T. Millennial-scale vertical deformation of the Hachinohe coastal plain (NE Japan). Geomorphology 2021, 389, 107835. [Google Scholar] [CrossRef]
  38. Hattanji, T.; Kodama, R.; Takahashi, D.; Tanaka, Y.; Doshida, S.; Furuichi, T. Migration of channel heads by storm events in two granitic mountain basins, western Japan: Implication for predicting location of landslides. Geomorphology 2021, 393, 107943. [Google Scholar] [CrossRef]
  39. Lemenkova, P. NOAA Marine Geophysical Data and a GEBCO Grid for the Topographical Analysis of Japanese Archipelago by Means of GRASS GIS and GDAL Library. Geomat. Environ. Eng. 2020, 14, 25–45. [Google Scholar] [CrossRef]
  40. Lemenkova, P. GRASS GIS for classification of Landsat TM images by maximum likelihood discriminant analysis: Tokyo area, Japan. Geod. Glas. 2020, 51, 5–25. [Google Scholar] [CrossRef]
  41. Lemenkova, P. Mapping Climate Parameters over the Territory of Botswana Using GMT and Gridded Surface Data from TerraClimate. ISPRS Int. J.-Geo-Inf. 2022, 11, 473. [Google Scholar] [CrossRef]
  42. Lemenkova, P. Console-Based Mapping of Mongolia Using GMT Cartographic Scripting Toolset for Processing TerraClimate Data. Geosciences 2022, 12, 140. [Google Scholar] [CrossRef]
  43. Wessel, P.; Luis, J.F.; Uieda, L.; Scharroo, R.; Wobbe, F.; Smith, W.H.F.; Tian, D. The Generic Mapping Tools Version 6. Geochem. Geophys. Geosyst. 2019, 20, 5556–5564. [Google Scholar] [CrossRef] [Green Version]
  44. R Core Team. R: A Language and Environment for Statistical Computing; R Foundation for Statistical Computing: Vienna, Austria, 2022. [Google Scholar]
  45. Hengl, T.; Bajat, B.; Blagojević, D.; Reuter, H.I. Geostatistical modeling of topography using auxiliary maps. Comput. Geosci. 2008, 34, 1886–1899. [Google Scholar] [CrossRef] [Green Version]
  46. Lemenkova, P.; Debeir, O. R Libraries for Remote Sensing Data Classification by K-Means Clustering and NDVI Computation in Congo River Basin, DRC. Appl. Sci. 2022, 12, 12554. [Google Scholar] [CrossRef]
  47. Lemenkova, P.; Debeir, O. Satellite Image Processing by Python and R Using Landsat 9 OLI/TIRS and SRTM DEM Data on Côte d’Ivoire, West Africa. J. Imaging 2022, 8, 317. [Google Scholar] [CrossRef]
  48. Kahle, D.; Wickham, H. ggmap: Spatial Visualization with ggplot2. R J. 2013, 5, 144–161. [Google Scholar] [CrossRef] [Green Version]
  49. Sueoka, S.; Kobayashi, Y.; Fukuda, S.; Kohn, B.P.; Yokoyama, T.; Sano, N.; Hasebe, N.; Tamura, A.; Morishita, T.; Tagami, T. Low-temperature thermochronology of active arc-arc collision zone, South Fossa Magna region, central Japan. Tectonophysics 2022, 828, 229231. [Google Scholar] [CrossRef]
  50. Enescu, B.; Ito, K. The 1998 Hida Mountain, Central Honshu, Japan, earthquake swarm: Double-difference event relocation, frequency–magnitude distribution and Coulomb stress changes. Tectonophysics 2005, 409, 147–157. [Google Scholar] [CrossRef]
  51. Tsujimori, T.; Liou, J.; Ernst, W.; Itaya, T. Triassic paragonite- and garnet-bearing epidote-amphibolite from the Hida Mountains, Japan. Gondwana Res. 2006, 9, 167–175. [Google Scholar] [CrossRef]
  52. Sueoka, S.; Tsutsumi, H.; Tagami, T. New approach to resolve the amount of Quaternary uplift and associated denudation of the mountain ranges in the Japanese Islands. Geosci. Front. 2016, 7, 197–210. [Google Scholar] [CrossRef] [Green Version]
  53. Kariya, Y.; Sato, G.; Komori, J. Landslide-induced terminal moraine-like landforms on the east side of Mount Shiroumadake, Northern Japanese Alps. Geomorphology 2011, 127, 156–165. [Google Scholar] [CrossRef]
  54. Sato, H.; Imaizumi, T.; Yoshida, T.; Ito, H.; Hasegawa, A. Tectonic evolution and deep to shallow geometry of Nagamachi-Rifu Active Fault System, NE Japan. Earth, Planets Space 2002, 54, 1039–1043. [Google Scholar] [CrossRef] [Green Version]
  55. Tsuchiya, N.; Yamada, R. Geological and Geophysical Perspective of Supercritical Geothermal Energy in Subduction Zone, Northeast Japan. Procedia Earth Planet. Sci. 2017, 17, 193–196. [Google Scholar] [CrossRef]
  56. Rabus, B.; Eineder, M.; Roth, A.; Bamler, R. The shuttle radar topography mission—A new class of digital elevation models acquired by spaceborne radar. ISPRS J. Photogramm. Remote Sens. 2003, 57, 241–262. [Google Scholar] [CrossRef]
  57. RStudio Team. RStudio: Integrated Development Environment for R; RStudio Inc.: Boston, MA, USA, 2017; Available online: https://www.RStudio.com/ (accessed on 23 December 2022).
  58. Hijmans, R.J. Raster: Geographic Data Analysis and Modeling. R Package Version 2.6-7. 2017. Available online: https://CRAN.R-project.org/package=raster (accessed on 23 December 2022).
  59. Evers, K.; Knudsen, T. Transformation pipelines for PROJ.4. In Proceedings of the FIG Working Week 2017, Surveying the World of Tomorrow—From Digitalisation to Augmented Reality, Helsinki, Finland, 29 May–2 June 2017; pp. 1–13. [Google Scholar]
  60. Lemenkova, P.; Debeir, O. Seismotectonics of Shallow-Focus Earthquakes in Venezuela with Links to Gravity Anomalies and Geologic Heterogeneity Mapped by a GMT Scripting Language. Sustainability 2022, 14, 15966. [Google Scholar] [CrossRef]
  61. Narksri, P.; Takeuchi, E.; Ninomiya, Y.; Morales, Y.; Akai, N.; Kawaguchi, N. A Slope-robust Cascaded Ground Segmentation in 3D Point Cloud for Autonomous Vehicles. In Proceedings of the 2018 21st International Conference on Intelligent Transportation Systems (ITSC), Maui, HI, USA, 4–7 November 2018; pp. 497–504. [Google Scholar] [CrossRef]
  62. Matsuyama, H.; Aoki, S.; Yonezawa, T.; Hiroi, K.; Kaji, K.; Kawaguchi, N. Deep Learning for Ballroom Dance Recognition: A Temporal and Trajectory-Aware Classification Model With Three-Dimensional Pose Estimation and Wearable Sensing. IEEE Sens. J. 2021, 21, 25437–25448. [Google Scholar] [CrossRef]
  63. Watanabe, K.; Hiroi, K.; Kamiyama, T.; Sano, H.; Tsukamoto, M.; Katagiri, M.; Ikeda, D.; Kaji, K.; Kawaguchi, N. A Smartphone 3D Positioning Method using a Spinning Magnet Marker. J. Inf. Process. 2019, 27, 10–24. [Google Scholar] [CrossRef] [Green Version]
  64. Wang, W.; Sakurada, K.; Kawaguchi, N. Incremental and Enhanced Scanline-Based Segmentation Method for Surface Reconstruction of Sparse LiDAR Data. Remote Sens. 2016, 8, 967. [Google Scholar] [CrossRef]
  65. Kasai, M.; Ikeda, M.; Asahina, T.; Fujisawa, K. LiDAR-derived DEM evaluation of deep-seated landslides in a steep and rocky region of Japan. Geomorphology 2009, 113, 57–69. [Google Scholar] [CrossRef]
  66. Kondo, H.; Toda, S.; Okumura, K.; Takada, K.; Chiba, T. A fault scarp in an urban area identified by LiDAR survey: A Case study on the Itoigawa–Shizuoka Tectonic Line, central Japan. Geomorphology 2008, 101, 731–739. [Google Scholar] [CrossRef]
  67. Becker, R.A.; Wilks, A.R.; Brownrigg, R.; Minka, T.P. Maps: Draw Geographical Maps. R Package Version 2.3-2. 2013. Available online: http://CRAN.R-project.org/package=maps (accessed on 23 December 2022).
  68. Tennekes, M. tmap: Thematic Maps in R. J. Stat. Softw. 2018, 84, 1–39. [Google Scholar] [CrossRef] [Green Version]
  69. Aoyama, M. Rock glaciers in the northern Japanese Alps: P alaeoenvironmental implications since the Late Glacial. J. Quat. Sci. 2005, 20, 471–484. [Google Scholar] [CrossRef]
  70. Oguchi, T.; Saito, K.; Kadomura, H.; Grossman, M. Fluvial geomorphology and paleohydrology in Japan. Geomorphology 2001, 39, 3–19. [Google Scholar] [CrossRef]
  71. Fujisawa, K.; Marcato, G.; Nomura, Y.; Pasuto, A. Management of a typhoon-induced landslide in Otomura (Japan). Geomorphology 2010, 124, 150–156. [Google Scholar] [CrossRef]
  72. Tsunetaka, H. Comparison of the return period for landslide-triggering rainfall events in Japan based on standardization of the rainfall period. Earth Surf. Process. Landforms 2021, 46, 2984–2998. [Google Scholar] [CrossRef]
  73. Oku, Y.; Nakakita, E. Future change of the potential landslide disasters as evaluated from precipitation data simulated by MRI-AGCM3.1. Hydrol. Process. 2013, 27, 3332–3340. [Google Scholar] [CrossRef]
  74. Sogno, P.; Klein, I.; Kuenzer, C. Remote Sensing of Surface Water Dynamics in the Context of Global Change—A Review. Remote Sens. 2022, 14, 2475. [Google Scholar] [CrossRef]
  75. Yamada, M.; Kumagai, H.; Matsushi, Y.; Matsuzawa, T. Dynamic landslide processes revealed by broadband seismic records. Geophys. Res. Lett. 2013, 40, 2998–3002. [Google Scholar] [CrossRef]
  76. Wang, G.; Suemine, A.; Schulz, W.H. Shear-rate-dependent strength control on the dynamics of rainfall-triggered landslides, Tokushima Prefecture, Japan. Earth Surf. Process. Landforms 2010, 35, 407–416. [Google Scholar] [CrossRef]
  77. Hirata, Y.; Chigira, M. Landslides associated with spheroidally weathered mantle of granite porphyry induced by 2011 Typhoon Talas in the Kii Peninsula, Japan. Eng. Geol. 2019, 260, 105217. [Google Scholar] [CrossRef]
  78. Prima, O.D.A.; Echigo, A.; Yokoyama, R.; Yoshida, T. Supervised landform classification of Northeast Honshu from DEM-derived thematic maps. Geomorphology 2006, 78, 373–386. [Google Scholar] [CrossRef]
  79. Lin, Z.; Oguchi, T. Drainage density, slope angle, and relative basin position in Japanese bare lands from high-resolution DEMs. Geomorphology 2004, 63, 159–173. [Google Scholar] [CrossRef]
  80. Hayakawa, Y.S.; Oguchi, T. DEM-based identification of fluvial knickzones and its application to Japanese mountain rivers. Geomorphology 2006, 78, 90–106. [Google Scholar] [CrossRef]
Figure 1. Topographic map of Japan. Data source: GEBCO. Software: GMT, version 6.1.1. Cartography source: authors.
Figure 1. Topographic map of Japan. Data source: GEBCO. Software: GMT, version 6.1.1. Cartography source: authors.
Land 12 00261 g001
Figure 2. Geodata processing in RStudio environment. (Left): (1) loading packages, (2) obtaining data, (3) inspecting data.frame. (Right): (1) setting up coordinate system, (2) calculating terrain characteristics (slope, aspect, hillshade) by ‘raster’ package, (3) visualizing maps on a screen in RStudio. Source: authors.
Figure 2. Geodata processing in RStudio environment. (Left): (1) loading packages, (2) obtaining data, (3) inspecting data.frame. (Right): (1) setting up coordinate system, (2) calculating terrain characteristics (slope, aspect, hillshade) by ‘raster’ package, (3) visualizing maps on a screen in RStudio. Source: authors.
Land 12 00261 g002
Figure 3. A 3D model of the land surface of Japan. Plotting is performed with rotation of 165/30° based on Earth topography one minute (ETOPO1) grid representing global relief. Software: GMT, version 6.1.1. Map source: authors.
Figure 3. A 3D model of the land surface of Japan. Plotting is performed with rotation of 165/30° based on Earth topography one minute (ETOPO1) grid representing global relief. Software: GMT, version 6.1.1. Map source: authors.
Land 12 00261 g003
Figure 4. Mapping the prefectures of Japan. (a) Script used for mapping by ‘ggplot2’, ‘ggmap’, ‘maps’ and ‘mapdata’ packages. (b) Map of the prefectures of Japan. Source: authors.
Figure 4. Mapping the prefectures of Japan. (a) Script used for mapping by ‘ggplot2’, ‘ggmap’, ‘maps’ and ‘mapdata’ packages. (b) Map of the prefectures of Japan. Source: authors.
Land 12 00261 g004
Figure 5. (a) Visualized plots of slope exposure. (b): Elevation of the terrain of Japan by ‘raster’ package of R. Source: authors.
Figure 5. (a) Visualized plots of slope exposure. (b): Elevation of the terrain of Japan by ‘raster’ package of R. Source: authors.
Land 12 00261 g005
Figure 6. Japan: 3D topographic mesh model with isolines drawn on top of surface based on ETOPO2, with rotation of 115/30°. Software: GMT, version 6.1.1. Map source: authors.
Figure 6. Japan: 3D topographic mesh model with isolines drawn on top of surface based on ETOPO2, with rotation of 115/30°. Software: GMT, version 6.1.1. Map source: authors.
Land 12 00261 g006
Figure 7. Japan: 3D grayshaded topographic waterfall plot based on ETOPO2 with rotation of 65/30°. Software: GMT, version 6.1.1. Map source: authors.
Figure 7. Japan: 3D grayshaded topographic waterfall plot based on ETOPO2 with rotation of 65/30°. Software: GMT, version 6.1.1. Map source: authors.
Land 12 00261 g007
Figure 8. Slope steepness in Japan. (a) Script for plotting by ‘raster ’ and ‘tmap’ packages. (b) Map in RStudio. Source: authors.
Figure 8. Slope steepness in Japan. (a) Script for plotting by ‘raster ’ and ‘tmap’ packages. (b) Map in RStudio. Source: authors.
Land 12 00261 g008
Figure 9. Aspect exposure of slopes in Japan. (a) Script by ‘raster ’ and ‘tmap’ packages. (b) Map prepared in RStudio. Source: authors.
Figure 9. Aspect exposure of slopes in Japan. (a) Script by ‘raster ’ and ‘tmap’ packages. (b) Map prepared in RStudio. Source: authors.
Land 12 00261 g009
Figure 10. Terrain hillshade in Japan. (a) Script used for plotting using ‘raster ’ and ‘tmap’ packages of R. (b) Map in RStudio. Source: authors.
Figure 10. Terrain hillshade in Japan. (a) Script used for plotting using ‘raster ’ and ‘tmap’ packages of R. (b) Map in RStudio. Source: authors.
Land 12 00261 g010
Figure 11. Japan: map of prefectures. R, v. 4.2.2 (RStudio v. 2022.12.0+353). Map source: authors.
Figure 11. Japan: map of prefectures. R, v. 4.2.2 (RStudio v. 2022.12.0+353). Map source: authors.
Land 12 00261 g011
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Lemenkova, P.; Debeir, O. Quantitative Morphometric 3D Terrain Analysis of Japan Using Scripts of GMT and R. Land 2023, 12, 261. https://doi.org/10.3390/land12010261

AMA Style

Lemenkova P, Debeir O. Quantitative Morphometric 3D Terrain Analysis of Japan Using Scripts of GMT and R. Land. 2023; 12(1):261. https://doi.org/10.3390/land12010261

Chicago/Turabian Style

Lemenkova, Polina, and Olivier Debeir. 2023. "Quantitative Morphometric 3D Terrain Analysis of Japan Using Scripts of GMT and R" Land 12, no. 1: 261. https://doi.org/10.3390/land12010261

APA Style

Lemenkova, P., & Debeir, O. (2023). Quantitative Morphometric 3D Terrain Analysis of Japan Using Scripts of GMT and R. Land, 12(1), 261. https://doi.org/10.3390/land12010261

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop