1 Introduction

Edge detectors have been widely used in the interpretation of potential field methods for delineating geologic structures such as faults, contacts, dykes, and ore bodies (Alarifi, 2022; Alrefaee et al., 2022; Chen et al., 2022; Ibraheem et al., 2018a, 2018b, 2019, 2022; Mohamed & Zaher, 2020; Napoli et al., 2021; Uluğtekin et al., 2022). The vertical and horizontal derivatives of the gravity and magnetic data serve as a base for the edge detection filters. In the geophysical literature, several edge detection techniques have been introduced to detect the shape of the subsurface causative sources based on the gradients of the potential field or on the ratios of these gradients (e.g., Arisoy & Dikmen, 2013; Cooper, 2014; Cooper & Cowan, 2006; Cordell & Grauch, 1985; Ferreira et al., 2013; Miller & Singh, 1994; Verduzco et al., 2004; Wijns et al., 2005). A number of edge detectors have recently been developed to improve the imaging of the edges of subsurface causative gravity and magnetic sources (e.g., Chen & Zhang, 2022; Dwivedi & Chamoli, 2021; Ibraheem et al., 2021a; Nasuti Y. & Nasuti A., 2018; Nasuti et al., 2019; Prasad et al., 2022; Zhu et al., 2021, among others).

For comparison purposes, some popularly and frequently used edge detectors have been selected. The total horizontal derivative (THDR) of the potential field is given by the Eq. (1). The edges of magnetic and gravity sources are highlighted by the peaks of the THDR amplitude (Cordell & Grauch, 1985):

$$THDR=\sqrt{{\left(\frac{\partial f}{\partial x}\right)}^{2}+{\left(\frac{\partial f}{\partial y}\right)}^{2}}$$
(1)

where f is the measured potential field and \(\left(\frac{\partial \mathrm{f}}{\partial \mathrm{x}}\right)\) and \((\frac{\partial \mathrm{f}}{\partial \mathrm{y}})\) are its derivatives in x and y directions.

Moreover, the amplitude of the analytical signal (AS) is calculated using the following formulation (Roest et al., 1992):

$$\left|AS(x,y)\right|=\sqrt{{\left(\frac{\partial f}{\partial x}\right)}^{2}+{\left(\frac{\partial f}{\partial y}\right)}^{2}+{\left(\frac{\partial f}{\partial z}\right)}^{2}}$$
(2)

where \(\frac{\partial \mathrm{f}}{\partial \mathrm{z}}\) is the derivative of the field in z direction,

The causative source is defined by the AS maxima where it generates a bell-shaped anomaly over the body. However, if several causative sources are present, the outcome of the AS would be dominated by strong anomalies and by shallow sources (Arisoy & Dikmen, 2013). Additionally, the predicted edges’ magnetic signatures appear larger and more diffused compared to the actual ones (Nasuti et al., 2019). Furthermore, Wijns et al. (2005) used the ratio of THDR to AS to suggest a Theta map (or cos theta) filter which is defined as:

$$Theta \; map=\frac{THDR}{AS}=\frac{\sqrt{{\left(\frac{\partial f}{\partial x}\right)}^{2}+{\left(\frac{\partial f}{\partial y}\right)}^{2}}}{\sqrt{{\left(\frac{\partial f}{\partial x}\right)}^{2}+{\left(\frac{\partial f}{\partial y}\right)}^{2}+{\left(\frac{\partial f}{\partial z}\right)}^{2}}}$$
(3)

The tilt angle (TDR) was the first phase-based filter introduced by Miller and Singh (1994) and is calculated using the Eq. (4):

$$TDR={\mathrm{tan}}^{-1}\left(\frac{\frac{\partial f}{\partial z}}{\sqrt{{\left(\frac{\partial f}{\partial x}\right)}^{2}+{\left(\frac{\partial f}{\partial y}\right)}^{2}}}\right)$$
(4)

Similar to TDR filter but sharper filter was introduced by Cooper and Cowan (2006) known as horizontal tilt angle (TDX) and is given by the Eq. (5) where its maximum values correspond the edges of the causative structure. Like with the Theta and TDR filters, the TDX filter estimates diffuse edges that are wider than true boundaries (Ma et al., 2014).

$$TDX={\mathrm{tan}}^{-1}\left(\frac{\sqrt{{\left(\frac{\partial f}{\partial x}\right)}^{2}+{\left(\frac{\partial f}{\partial y}\right)}^{2}}}{\left|\frac{\partial f}{\partial z}\right|}\right)$$
(5)

Moreover, the ratio of the first-order vertical derivative to the total horizontal derivative of AS defines the Etilt filter developed by Arisoy and Dikmen (2013) which is calculated using the Eq. (6):

$$ETilt={\mathrm{tan}}^{-1}\left(k\frac{\frac{\partial f}{\partial z}}{\sqrt{{\left(\frac{\partial AS}{\partial x}\right)}^{2}+{\left(\frac{\partial AS}{\partial y}\right)}^{2}}}\right)$$
(6)

where k is a dimensional correction factor given by \(k=\frac{1}{\sqrt{{dx}^{2}+{dy}^{2}}}\), and dx and dy represent the sampling intervals in x and y directions, respectively.

Arisoy and Dikmen (2013) suggested to use the horizontal derivative of the ETilt as an edge detection filter and called it enhanced total horizontal derivative of the tilt angle (ETHDR) (Eq. 7) because it produces sharper boundaries over the causative sources than the Etilt filter. The ETilt and ETHDR filters provide a clear advantage over the original tilt derivative in terms of resolution and detection of deep and shallow bodies (Nasuti Y. & Nasuti A., 2018). The ETHDR filter effectively defines the boundaries of the causative structures even in the presence of several adjacent sources.

$$ETHDR=\sqrt{{\left(\frac{\partial ETilt}{\partial x}\right)}^{2}+{\left(\frac{\partial ETilt}{\partial y}\right)}^{2}}$$
(7)

So, the edges of the causative sources are detected by zero values in the TDR function and by the maxima in the case of other edge detectors used in this study. However, the AS filter can be considered as a good detector of the source itself rather than its edges. The known conventional filters published in the geophysical literature have several drawbacks, including the limitation in imaging the boundaries of deep and/or neighboring causative sources and also the producing of false anomalies. In addition, the delineation of edges of the subsurface structures is wider than the actual ones using these filters. Therefore, a new enhancement filter has been designed in this research in order to overcome these issues. Both synthetic noise-free and noise-contaminated magnetic data, as well as data measured in the field from Sohag, Egypt, were used to evaluate the efficiency of the proposed new filter.

2 ImpTDX Filter

The arctangent function has been used in most of the published edge detectors introduced in the geophysical literature (e.g., Arisoy & Dikmen, 2013; Cooper & Cowan, 2006; Ferreria et al., 2013; Ma et al., 2014; Miller & Singh, 1994; Nasuti et al., 2019, among others). However, the hyperbolic tangent function has a smaller range [\(-\) 1, + 1] than the arctangent function [\(-\pi /2\), \(+\pi /2\)] (i.e., a smaller range around the turning point on the x-axis), therefore using it in edge detection may lead to detect the boundaries of the causative bodies much precisely.

Despite providing a strong and sharp gradient over the causative source, the TDX filter (Eq. 5) portrays boundaries that are wider than they actually are, especially for structures at intermediate and deep depths. Therefore, we present in this study a new novel edge detector using hyperbolic tangent function which can overcome this problem and has several other advantages. The new filter has been given the name impTDX filter since it can be thought of as an enhanced version of the TDX filter. It normalizes the second-order vertical derivative (SVD) using the TDX function and is calculated as follow (after reduction of the data to the north magnetic pole in case of magnetics):

$$impTDX=tanh\left(M.\frac{\left(\frac{{\partial }^{2}f}{\partial {z}^{2}}\right)}{\sqrt{{\left(\frac{\partial TDX}{\partial x}\right)}^{2}+{\left(\frac{\partial TDX}{\partial y}\right)}^{2}}}\right)$$
(8)

where \(\frac{{\partial }^{2}f}{\partial {z}^{2}}\) is the SVD of the measured magnetic field and M is the average value of the magnetic field intensity in the study area.

Because the SVD of the measured potential field can increase the noise in the resultant data, the second-order of horizontal derivative can be used instead using Laplace equation. Thus, Eq. (8) can be written as follow:

$$impTDX=tanh\left(\frac{-M.\left(\frac{{\partial }^{2}f}{\partial {x}^{2}}+\frac{{\partial }^{2}f}{\partial {y}^{2}}\right)}{\sqrt{{\left(\frac{\partial TDX}{\partial x}\right)}^{2}+{\left(\frac{\partial TDX}{\partial y}\right)}^{2}}}\right)$$
(9)

It can also be written as:

$$impTDX=\left(\frac{{e}^{\left(\frac{-M.\left(\frac{{\partial }^{2}f}{\partial {x}^{2}}+\frac{{\partial }^{2}f}{\partial {y}^{2}}\right)}{\sqrt{{\left(\frac{\partial TDX}{\partial x}\right)}^{2}+{\left(\frac{\partial TDX}{\partial y}\right)}^{2}}}\right)}-{e}^{\left(\frac{M.\left(\frac{{\partial }^{2}f}{\partial {x}^{2}}+\frac{{\partial }^{2}f}{\partial {y}^{2}}\right)}{\sqrt{{\left(\frac{\partial TDX}{\partial x}\right)}^{2}+{\left(\frac{\partial TDX}{\partial y}\right)}^{2}}}\right)}}{{e}^{\left(\frac{-M.\left(\frac{{\partial }^{2}f}{\partial {x}^{2}}+\frac{{\partial }^{2}f}{\partial {y}^{2}}\right)}{\sqrt{{\left(\frac{\partial TDX}{\partial x}\right)}^{2}+{\left(\frac{\partial TDX}{\partial y}\right)}^{2}}}\right)}+{e}^{\left(\frac{M.\left(\frac{{\partial }^{2}f}{\partial {x}^{2}}+\frac{{\partial }^{2}f}{\partial {y}^{2}}\right)}{\sqrt{{\left(\frac{\partial TDX}{\partial x}\right)}^{2}+{\left(\frac{\partial TDX}{\partial y}\right)}^{2}}}\right)}}\right)$$
(10)
$$impTDX=\left(\frac{{e}^{\left(-2M.\frac{\left(\frac{{\partial }^{2}f}{\partial {x}^{2}}+\frac{{\partial }^{2}f}{\partial {y}^{2}}\right)}{\sqrt{{\left(\frac{\partial TDX}{\partial x}\right)}^{2}+{\left(\frac{\partial TDX}{\partial y}\right)}^{2}}}\right)}-1}{{e}^{\left(-2M.\frac{\left(\frac{{\partial }^{2}f}{\partial {x}^{2}}+\frac{{\partial }^{2}f}{\partial {y}^{2}}\right)}{\sqrt{{\left(\frac{\partial TDX}{\partial x}\right)}^{2}+{\left(\frac{\partial TDX}{\partial y}\right)}^{2}}}\right)}+1}\right)$$
(11)

The range of the impTDX transform varies from − 1 to 1 due to the characteristics of the hyperbolic tangent function, and the maxima of the new filter peak over the entire causative body. The filter sharply detects the edges of both deep and shallow structures as well as the edges of various magnetic sources adjacent to each other. It also equalizes the signals of causative sources located at shallow and deep depths. We recommend computing the THDR of the impTDX function (THDR_impTDX), which gives maximum values over the body’s edges, in order to more clearly and sharply locate the edges of magnetic sources. It is calculated using Eq. (12).

$$THDR\_impTXD=\sqrt{{\left(\frac{\partial impTXD}{\partial x}\right)}^{2}+{\left(\frac{\partial impTXD}{\partial y}\right)}^{2}}$$
(12)

3 Synthetic Modeling Study

The robustness of the impTDX filter to detect the edges of magnetic sources was compared with other filters and examined using 3D synthetic models. It is presumed that the inclination of the magnetic field equals 90 and the declination is zero. Otherwise, magnetic data require correction to remove their dependence on the magnetic inclination. Two scenarios have been considered in this study assuming only induced magnetization:

3.1 Scenario I

The first scenario includes a model composed of two dyke-like prisms (D1 and D2) located at different depths (Fig. 1a). They have the same dimensions (length = 4000 m, width = 400 m, and depth extent = 4000 m). The depths to the top surface are 50 m and 250 m for D1 and D2, respectively. A total magnetic field M = 50,000 nT and a magnetic susceptibility contrast of 0.02 (SI unit) were used in the modeling study. Figure 1b shows the magnetic anomaly map produced by the synthetic models in Fig. 1a. Figurs 2a–i demonstrate the results of applying different filters to the obtained magnetic data. These include THDR (Fig. 2a), AS (Fig. 2b), TDR (Fig. 2c) Theta map (Fig. 2d), TDX (Fig. 2e), Etilt (Fig. 2f), ETHDR (Fig. 2g), impTDX (Fig. 2h), and THDR_impTDX (Fig. 2i). All the used methods perform nicely in the case of shallow targets (body D1). However, the results become more complex when depicting the edges of deep structures (body D2). For a clearer comparison between the results of applying the different filters, the profile P1–P1′ (see Fig. 1b) was taken to cross the bodies perpendicularly and pass over their centers. The response to these filters along this profile is shown in Fig. 3.

Fig. 1
figure 1

a A 3D perspective of two dyke-like synthetic models located at 50 m (D1) and 250 m (D2) with dimensions of 4000 m × 400 m × 4000 m. b Magnetic anomaly map of the synthetic model shown in a. Dotted black line refers to the location of profile P1–P1′ taken perpendicular to the strike of the dyke-like structures

Fig. 2
figure 2

a THDR, b AS, c TDR, d Theta, e TDX, f Etilt, g ETHDR, h impTDX, and i THDR_impTDX maps of the synthetic model data in Fig. 1a. Real edges of magnetic sources are shown in black lines

Fig. 3
figure 3

A presentation of the magnetic data along profile P1–P1′ in Fig. 1b and the magnetic responses produced by applying of the different edge detectors used in the current study

The magnetic data filtered using THDR (Fig. 2a) and AS (Fig. 2b) were unable to precisely detect the edge of the deep body (D2). Despite the other filters (i.e., TDR, Theta map, TDX, Etilt and ETHDR) were able to equalize the signals from shallow and deep depths but they detected the deep sources with boundaries much wider than they are. Compared to previous approaches, the impTDX and its THDR produce results that are less dependent on the depth of the sources as shown in Fig. 5h and i and also in Fig. 6. Even for deeper sources, the impTDX filter's maximum values are located over the causative sources where the impTDX filter images their edges distinctively. Moreover, the THDR_impTDX filter shows very sharp peaks over the body's boundaries.

3.2 Scenario II

The synthetic modeling study in the second scenario (Fig. 4a and b) includes six magnetic prismatic bodies (B1–B6) located at different depths (from 5 to 20 m) with magnetic and geometrical parameters shown in Table 1. Except for B6, which has a magnetic susceptibility of − 0.02 (SI unit) representing a diamagnetic material, all magnetic sources have magnetic susceptibilities of 0.02 (SI unit). For the present synthetic modeling study, a background total magnetic field of 50,000 nT is employed. Two synthetic data sets with a grid of 150 m by 200 m and spacing of 1 m were presumed to appraise the efficiency of the suggested filter. One set is free of noise and the other is corrupted with Gaussian noise with a standard deviation of 0.1 nT (Ferreira et al., 2013; Li et al., 2019; Nasuti et al., 2019) to simulate the data collected at the field. The magnetic response to the various synthetic models is shown in Fig. 4c for the noise-free magnetic data. The magnetic map produced by the synthetic models (Fig. 4a) shows that the resultant magnetic amplitudes range from − 4 to 314 nT. The magnetic signature of the shallow bodies (e.g., B1 and B4) are clearly noticed whereas the amplitudes of the deep bodies are relatively low. However, the anomalies from B5 and B6 are complex due to the relative positions of these bodies. The results of applying THDR, AS, TDR, Theta map, TDX, ETilt, ETHDR, impTDX, and THDR_impTDX filters are shown in Fig. 5. Figure 6 shows a profile P2-P2' passing over the centers of the bodies B1, B2, and B3 (refer to Fig. 4c to see the location of this profile). This profile shows clearly the differences between the applied methods.

Fig. 4
figure 4

a A 3D perspective, b a bird’s-eye view of a synthetic model including six magnetic bodies (B1–B6) with different depths range from 5 to 20 m (refer to Table 1), and c Noise-free magnetic anomaly map produced by the magnetic sources in a. Dotted black line in Fig. 3c refers to the location of profile P2–P2'

Table 1 Magnetic and geometrical parameters of the synthetic model suggested for the six modeled bodies in Fig. 4a
Fig. 5
figure 5

a THDR, b AS, c TDR d Theta, e TDX, f Etilt, g ETHDR, h impTDX, and i THDR_impTDX maps of the synthetic model data. Real edges of magnetic sources are shown in black lines

Fig. 6
figure 6

A presentation of the magnetic data in Fig. 4c along profile P2–P2′ and the magnetic responses produced by applying of the different edge detectors used in the current study

The result of applying the THDR filter to the calculated synthetic magnetic data using the model in Fig. 4a and Table 1 is shown in Fig. 5a. The filter shows a good result in detecting shallow sources (i.e., B1, B4, and B6) but with edges wider than the actual ones. However, the deep sources (B2, B3, and B5) were poorly detected due to the attenuation of the amplitudes with depth. Regarding AS filter, it reveals shallow sources` edges more clearly than deep ones, moreover it couldn`t discriminate between the two overlapped prismatic bodies B5 and B6, and shows them as if they are resulted from one source (Fig. 5b). Also, the detected edges are greater than the actual edges. The TDR filter (Fig. 5c) exhibits high ability to balance deep and shallow sources but it could not determine the boundaries precisely. The results from Theta map (Fig. 5d) and TDX (Fig. 5e) filters seem similar. Although they balanced the anomalies from sources at different depths and showed sharp edge over them, but they gave edges much wider than reality. Moreover, the ETilt and ETHDR filters (Fig. 5f and g) display also wider boundaries. They produced false anomalies at the edge of the map. The proposed impTDX filter and its THDR (Fig. 5h and i) exhibit accurate and more precise boundaries over the edges of both shallow and deep bodies compared to other filters. The impTDX filter gives an image with a muted background where only the causative sources can be seen, which means it either reaches a maximum (a value of 1) above the source or a minimum (a value of -1) when it is outside. This can greatly facilitate the structural interpretation process.

In the second case, where a random noise was added to the magnetic data, the applied conventional filters (i.e., THDR (Fig. 7a), AS (Fig. 7b), TDR (Fig. 7c), Theta map (Fig. 7d), TDX (Fig. 7e), Etilt (Fig. 7f), and ETHDR (Fig. 7g)) in contrast to the impTDX filter (Fig. 7h) and its THDR (Fig. 7i), were significantly impacted by the noise. However, these edge detectors gave blurred boundaries of the modeled prismatic sources with a low resolution. Comparatively to other conventional filters, the ETilt and ETHDR filters were greatly influenced by additive noise. The outcome of using the suggested impTDX and THDR_impTDX edge detectors (Fig. 7h and i) demonstrates that, when compared to the other applied filters, the imaged edges appear to be the sharpest and the closest to the actual ones. Additionally, there are no fuzzy boundaries in the output result of the suggested method, which can simultaneously determine the high and low amplitude as well as shallow and deep edges. Despite the impTDX and the THDR_impTDX filters show a high efficacy in noisy data, they are still affected by this noise especially in the boundaries of the map. Upward continuation can be an option to reduce noise in cases when the data have high levels of noise.

Fig. 7
figure 7

a THDR, b AS, c TDR, d Theta, e TDX, f Etilt, g ETHDR, h impTDX, and i THDR_impTDX maps of the noisy synthetic magnetic data

4 Application to Magnetic Data from Sohag, Egypt

4.1 Geological and Structural Settings

The study area (Fig. 8) is located between latitudes 26° 00′ 12.5″ and 27° 00′ 29.7″ N and longitudes 31° 26′ 47″ and 32° 03′ 32″ E in Egypt. The geological and structural settings of Sohag region have been discussed by several researchers (e.g., Abd El Aal et al., 2020; Abu Seif, 2015; Ghazala et al., 2018a, 2018b; Ibraheem et al., 2019, among others). The subsurface stratigraphic column of the area consists of sediments ranging from Late Cretaceous (Nubian sandstone) to Quaternary overlying unconformably the Precambrian basement rocks. At the Balyana-1 well, the Precambrian granitic basement surface was observed at a depth of 1640 m. (Ganoub El-Wadi Petroleum Holding Company, 1994; Ibraheem et al., 2019). However, Ghazala et al. (2018a) reported that the depths to the basement rocks at the study area range from 400 to 4000 m with an average value of 3500 m based on gravity and aeromagnetic data. They interpreted the basement structures as alternative horsts and grabens created by parallel fault sets.

Fig. 8
figure 8

Location and geology maps of the study area, Sohag, Nile valley, Egypt (after Conoco, 1987)

The surface geology consists of sedimentary sequence and ranges from Eocene to Quaternary (Abu Seif, 2015; Conoco, 1987) as shown in Fig. 8. The Nile Valley is bounded by limestone plateau (Lower Eocene) which is intersected by several drainage basins discharges from east to west towards the valley (Abd El Aal et al., 2020). The Lower Eocene is represented by the Thebes Formation made up of a thick laminated to massive limestone succession with chart bands and marl (Mahran et al., 2013). Drunka Formation covering Thebes Formation and consists of laminated limestone and interbeds of hard massive limestone and chart bands, moreover, it includes concretions of highly silicified limestone (Abu Seif, 2015). Issawia Formation (70 m of Pliocene–Pleistocene deposits) of brownish marl, clay, conglomerate, and limestone and is characterized by presence of hard red breccias at its top (Abu Seif, 2015; Said, 1990). It is covered with flood plain of mainly alluvium deposits along the Nile Valley's confined region. Quaternary sediments are composed of pre-Nile deposits, alluvial fanglomerates, Wadi deposits, and also Playa deposits. The topographic map of the area (Fig. 9) obtained from the Shuttle Radar Topography Mission (SRTM), Digital Elevation Model (DEM) reflects intermediate to high relief range from 39 to 517 m.

Fig. 9
figure 9

Topographic map of the study area obtained from the Shuttle Radar Topography Mission (SRTM), Digital Elevation Model (DEM)

Structurally, the investigated area is situated in the stable shelf of Egypt which is influenced by several faults in different four trends: E–W (Tethyan-Mediterranean trend), NE–SW (Aqaba trend), NW–SE (Gulf of Suez trend) and N–S. Intrusions of granodiorite have been also reported in the study area (Ghazala et al., 2018b). Youssef (1968) mentioned developed structural lineaments during the Pre-Paleozoic or earlier basement trends and later these features continued during Tertiary times. Moreover, several normal and strike slip faults dissect the Eocene plateau (Abd El Aal et al., 2020).

4.2 Aeromagnetic Data

The magnetic data have been measured by Aero Service Division of the Western Geophysical Company of America (1983). The collected data were taken at flight height of 914.4 m using an airborne Varian V-85 proton free-precession magnetometer with 0.1 nT sensitivity through parallel flight lines spacing 1.5 km directed NE–SW direction with 45°/225° azimuths. At 5 km intervals, tie lines were directed toward NW–SE trend normal to the main flight line's direction. The magnetic field`s declination was 2° E, while it`s inclination was 39.5° N. The data were gridded at 0.5 km cell size using the minimum curvature technique after being digitized from three magnetic sheets of 1/50,000 scale. To exclude the regional influences of the earth’s magnetic field, the values of the International Geomagnetic Reference Field (IGRF) were removed. In order to avoid undesirable distortion in the shapes, sizes, and locations of magnetic anomalies caused by the effect of the inclination and declination of the magnetic field, the data obtained was reduced to the north magnetic pole (RTP)—assuming only induced magnetization—by using fast Fourier transform (Fig. 10a).

Fig. 10
figure 10

a RTP magnetic map of Sohag region, b AS map, c impTDX map, and d THDR_impTDX map

Because of the impTDX filter equalizes the magnetic anomalies from different depths, we calculated the AS signal map in order to have an idea about the relative depths of the subsurface magnetic sources. Figure 10b shows the result of applying the AS filter to the magnetic anomaly data of the study area and Fig. 10c and d exhibit the results of applying the impTDX and the THDR_impTDX filters to the RTP magnetic data, respectively. The impTDX and the THDR_impTDX filters were able to image sharply several structures which couldn’t be seen on the RTP magnetic map. The boundaries of these structures refer to contacts/faults and/or intrusions of the basement. Figure 11 represents the interpreted structural framework of the area based on the joint interpretation of the impTDX (Fig. 10c), the THDR_impTDX (Fig. 10d), and the AS (Fig. 10b) maps. The obtained structural map emphasizes the presence of three main sets of structural trends in the area: NNW–SSE, NW–SE, and NE–SW that have had a major impact on the structural framework of the region. It also remarks that the River Nile’s course in this area of Egypt is significantly influenced by these tectonic events especially in the area north and east of Sohag and Gerga cities where the river follows the tectonic trends.

Fig. 11
figure 11

Interpreted structural map of the study area deduced from impTDX and THDR_impTDX maps

The inferred structures reflect magnetic sources associated with basement blocks of varied depths as clarified from the width and amplitudes of the AS anomalies that related to the depth of the magnetic sources. The structural map shows normal faults which delimiting the causative high and low structures (horsts H1–H5 and grabens G1–G4) and lateral dissecting faults. G2 clearly represents the narrow Nile graben which is dissected by lateral faults and bordered by the horsts H1, H4, and H5. This agrees with Meshref (1990), Mohamed (2021), Said (1981, 1990, 1994), Woodward et al., (2022), Yousif (1968), and others whom believed the tectonic origin of the Nile grabens which are related to the Red Sea opening. It is worth to state that some of the interpreted subsurface faults east and west the Nile valley are expressed in the topographic map (Fig. 9). The obtained structural map can help in understanding the tectonics of the region and the evaluation of the Nile valley.

5 Conclusions

A novel filter called impTXD has been introduced for more precise locating and revealing the boundaries of subsurface causative magnetic sources. Its total horizontal derivative (THDR_impTDX) was suggested as an edge detector as well. On both noise-free and noise-contaminated synthetic magnetic data sets, as well as measured magnetic data from Sohag area, Egypt, the proposed filters have been applied and tested. The efficiency and effectiveness of the new approaches were evaluated in comparison to other well-known edge detectors. When compared to existing edge detectors, our filters provide results that are more precise, high-resolution, and capable of resolving the diffusion issue of the anomaly’s edges. The impTDX filter is capable of detecting sharply sources of weak and strong anomalies at both shallow and deep depths. Furthermore, it is much less sensitive to noise in the data than other filters. Additionally, it can detect clearly adjacent and superimposed sources. Hence, the novel impTDX edge detector and its THDR represent a fast and powerful tool for subsurface imaging of buried causative sources. By applying the new filter to the aeromagnetic field data of Sohag, Egypt, the edges of magnetic sources have been sharply resolved. The impTDX, the THDR_impTDX, and the AS results were jointly interpreted to construct a structural map. Three sets of fault directions—NNW–SSE, NW–SE, and NE–SW—are clearly identified on this map. The findings indicate that the Nile River is structurally controlled, particularly in the areas around the cities of Sohag and Gerga.