scieee AI-readable full text Open interactive document viewer

Singular spectrum analysis filtering and Fourier inversion: an efficient and fast way to improve resolution and quality of current density maps with low-cost Hall scanning systems

Amorós Torrent, Jaume,Folch Duran, Arnau,Carrera Vilanova, Miquel,López López, José,Granados García, Javier A.J.

Abstract

Measurement Science and Technology Paper Singular spectrum analysis filtering and Fourier inversion: an efficient and fast way to improve resolution and quality of current density maps with low-cost Hall scanning systems Jaume Amorós1 , Arnau Duran2, Miquel Carrera3, Josep López4 and Xavier Granados5 Published 13 December 2018 • © 2018 IOP Publishing Ltd Measurement Science and Technology, Volume 30, Number 1 34 Total downloads Turn on MathJax Get permission to re-use this article Share this article Share this content via email Share on Facebook Share on Twitter Share on Google+ Share on CiteULike Share on Mendeley Article information Abstract We provide a Biot–Savart inversion scheme that, for any two-dimensional, or bulk with planar crystallization, high-temperature superconducting (HTS) sample, determines current density maps with a higher resolution and accuracy than previous procedures and at a fraction of its computational cost. The starting point of our scheme is a Hall scanning microscopy map of the out-of-plane component of the magnetic field generated by the current. Such maps are noisy in scans of real samples with commercial-grade equipment, and their error is the limiting factor in any Biot–Savart inversion scheme. The main innovation of our proposed scheme is a singular spectrum analysis (SSA) filtering of the Hall probe maps, which cancels measurement errors such as noise or drifts without introducing any artifacts in the field map. The SSA filtering of the Hall probe data is so successful in this task that the resulting magnetic field map does not require an overdetermined QR inversion, allowing Fourier inversion of the Biot–Savart problem. Our implementation of SSA filtering of the Hall scan measurements, followed by Biot–Savart inversion using the fast Fourier transform (FFT), is applied to both simulations and real samples of HTS tape stacks. The algorithm works in cases where ill conditioning ruled out the application of Fourier inversion, and achieves a finer resolution for a fraction of the cost of the QR inversion used to date. The computation passes physical and statistical validity tests in all cases, and in three-dimensional samples it is shown to yield the average, with a depth-dependent weight, of the current density circulating in the different layers of the sample.

Full text

SSA filtering and Fourier inversion: an efficient and fast way to improve resolution and quality of current density maps with low cost Hall Scanning systems Jaume Amor´os1, Arnau Duran2, Miquel Carrera3, Josep L´opez4, Xavier Granados5 1Departament de Matem`atiques, Universitat Polit`ecnica de Catalunya, Diagonal 647, 08028 Barcelona, Spain 2Facultat de Matem`atiques i Estad´ıstica, Universitat Polit`ecnica de Catalunya, Pau Gargallo 10, 08028 Barcelona, Spain 3Dep. Medi Ambient i Ci`encies del S`ol, Universitat de Lleida (UdL), Jaume II, 69. 25001 Lleida, Spain 4EEBE (UPC-Barcelona Tech), Eduard Maristany 14, 08019, Barcelona, Spain 5Institut de Ci`encia de Materials de Barcelona, ICMAB-CSIC, Campus UAB, 08193 Bellaterra, Barcelona, Spain E-mail: [email protected] Abstract. We provide a Biot-Savart inversion scheme that, for any 2-dimensional, or bulk with planar chrystallization, high temperature superconducting (HTS) sample, determines current density maps with a higher resolution, and accuracy, than previous procedures and at a fraction of its computational cost. The starting point of our scheme is a Hall scanning microscopy map of the out- of-plane component of the magnetic field generated by the current. Such maps are noisy in scans of real samples with commercial grade equipment, and their error is the limiting factor in any Biot-Savart inversion scheme. The main innovation of our proposed scheme is a Singular Spectrum Analysis (SSA) filtering of the Hall probe maps, which cancels measurement errors such as noise, or drifts, without introducing any artifices in the field map. The SSA filtering of the Hall probe data is so successful this task that the resulting magnetic field map does not require an overdetermined QR inversion, allowing Fourier inversion of the Biot-Savart problem. Our implementation of SSA filtering of the Hall scan measurements, followed by Biot-Savart inversion using the Fast Fourier Transform (FFT) is applied to both simulations and real samples of HTS tape stacks. The algorithm works in cases where ill conditioning ruled out the application of Fourier inversion, achieves a finer resolution, and for a fraction of the cost, of the QR inversion used up to date. The computation passes physical and statistical validity tests in all cases, and in 3-d samples it is shown to yield the average, with a depth-dependent weight, of the current density circulating in the different layers of the sample. Keywords: Biot-Savart inversion, SSA filtering, Fast Fourier Transform, Hall magnetometry, High Temperature Superconducting tapes. SSA filtering and Fourier inversion for current density maps 2 Submitted to: Supercond. Sci. Technol. SSA filtering and Fourier inversion for current density maps 3 1. Introduction The growing success and applications of HTS bulks and long tapes make ever more interesting the resolution of the inverse Biot-Savart problem on them, i.e. finding maps of their circulating current from measurements of the magnetic induction field around them, as a precise, nondestructive quality control procedure. It is well known that, for currents induced in planarly chrystallized HTS blocks, stacks and tapes by both external magnetic fields and current carrying conditions, Hall scan mapping of the out of plane component of the trapped magnetic field allows the determination the distribution of the currents if one can solve the inverse Biot-Savart problem posed by this field. Research in this topic has been conducted along two decades in order to be operative not only for research but also in the standard characterization of HTS supplies manufacture ([1],[2],[3],[4],[5],[6], [7]). The authors have been studying this problem for years ([8],[9],[10], [11],[12],[13],[14]), and have identified the main limiting factors of this approach to be, in order of importance: the propagation to the computed map of currents of inaccuracies in the magnetic field measurements, the computational cost in time of the inversion, and the amount of required memory. Cost in terms of time and resolution for obtaining a useful map of the critical current density distribution, and mechanical complexity of the data collection and mathematical treatment have lead our research to develop and incorporate new enhanced procedures to obtain high resolution, reliable and accurate current maps in static and dynamic conditions by using low cost but very robust hardware components. The advances we report in this work are mathematical and statistical in nature, and they have led to a significant improvement in the use of low cost, commercial grade Hall scanning systems. We have found that the filtering of the magnetic field measurements, on the basis of the novel technique of Singular Spectrum Analysis (SSA), produces greatly improved reduction of error, without introducing artifacts, in the Hall probe measurements when compared to filtration with previous techniques. Even when the inversion problem has a high resolution and is not well conditioned, this technique allows the Biot-Savart inversion by means of a FFT procedure with a significatively reduced computational cost, yielding maps of electrical currents with finer resolution and greater accuracy compared to previous inversion procedures. The authors have implemented for Matlab and Octave this SSA filtering technique, complete with Fourier inversion of the Biot-Savart problem for 2-dimensional or planarly chrystallized HTS materials, further SSA improvement of the achieved solution, and a double physical and statistical test of the margin of error of this computation. The purpose of this work is to document and discuss this inversion procedure. It is illustrated by applying the algorithm on simulated, OZ-inhomogeneous samples, where the averaging effect of the algorithm is checked, and to real samples where we obtain detailed maps of the planar current density, pointing the location of current inhomogeneities caused by defects in the sample. SSA filtering and Fourier inversion for current density maps 4 2. The Biot-Savart inversion 2.1. Discretization and QR inversion The critical current density Jcirculating in a HTS tape or bulk sample Sis the rotational of the magnetization Msupported in the sample (see the Appendix in [2]). This current creates outside the sample a static magnetic induction field Bthrough the Biot-Savart law B=µ0 4πRS J×r r3 =µ0 4πRS 3M·r r5r−M r3, (1) which can be determined by measurement with a Hall probe. The determination of the magnetization M, or equivalently of the current density J=∇ × M, constitutes the inverse Biot-Savart problem. The inverse Biot-Savart problem can be solved in HTS samples that are thin films by the linearization algorithm that was originally introduced in [1], and extended to bulks with planar chrystallization by the authors in [8],[9],[10]: subdivide the sample in a rectangular grid of m×nsmall elements ∆ij, assume that the magnetization has a constant value Mij on each element, measure the vertical component of the magnetic induction field Bzon a second rectangular grid of points above the sample, and the Biot-Savart law (1) turns into a linear system of equations Bz(Pkl) = X i,j GijklMij (2) whith coefficients that can be computed from the geometry of the problem, according to (1) Gijkl =µ0 4πZ∆ij 3z2−r2 r5.(3) The authors’ sample discretization and linearization of the Biot-Savart inversion is illustrated in Figure 1. By reading them column-wise, the rectangular tables of values formed by the magnetization values Mij, resp. the magnetic field measurements Bz(Pkl), may be reshaped into column vectors M, resp. Bz. The set of equations (2) becomes then a linear system GM =Bz,(4) where Gis now a rectangular Toeplitz matrix, i.e. such that it has coefficients Grc =Gijkl for any i, j, k, l such that k−i=r,l−j=c, and the independent term Bzcan be measured, e.g. with a Hall probe. The key to the extension of this linearization to bulk samples is planar chrystallization, which means that the current density Jin the bulk sample is still planar, i.e. the magnetization Monly has a vertical component M. If one further assumes that the magnetization M, or equivalently the current density J= (Jx, Jy,0) SSA filtering and Fourier inversion for current density maps 5 Figure 1: Discretization scheme: subdivision of a region containing the sample in a rectangular/orthoedrical grid (blue), and Hall probe measurement in a second rectangular grid above the sample (red). In the vertical axis, the sample with thickness gand its subdivision both range from z=−g(bottom) to z= 0 (top), while the Hall probe measurement grid is in the plane z=h. are constant along the vertical axis z, i.e. they are the same in all planar layers and do not depend on z. The hypothesis of homogeneity along the vertical axis zis plausible in the case of thin samples. It does not hold in the case of thick bulks, even if they have planar chrystallization ([15]), but in such cases the homogeneous extension of the algorithm returns the average along the zaxis of the current density J, averaged with a weight function w(z) = 1 h−z. Here his the height of measurement of Bzabove the sample top, the sample with thickness granges from z=−g(bottom) to z= 0 (top), so h−z the depth of the layer with respect to the Hall probe. This is a well posed problem because the Biot-Savart problem is invertible for such z-homogeneous currents, and is still informative of the position of defects in the sample (see [11],[16] and the simulations in 3.3). Let us recall the conclusions of the error analysis for linear Biot-Savart inversion schemes from [9], as they will be reinterpreted in 3.2. The initial step at which errors appear, and should be limited, is the measurement of the magnetic field Bz. This source of error turns out to be the limiting factor for the resolution at which the current maps can be computed, so it pays to make the measurement system as precise as possible. The propagation of relative error from the independent term Bzof the system (4) to its solution Mis bounded by a factor called the condition number of the system SSA filtering and Fourier inversion for current density maps 6 m×n41x53 81x101 121x151 cond(G) 100 3.5·1041.4·107 Table 1: Variation of the condition number of the system (4) with the resolution of the discretization grid for a sample of size 14 ×20 mm2, with sample thickness 1 mm and a measurement height of Bzof 0.5 mm. matrix, cond(G) (see [17]): k∆Mk kMk=ck∆Bzk kBzk≤cond (G)k∆Bzk kBzk,(5) where M, Bzover their respective grids are written as column vectors, ∆M, ∆Bzare the vectors formed by the error at each term, the norm k.kis the standard Euclidean norm, and cis the actual factor by which the relative error is multiplied when the system is solved. The analysis in [9] for inverse Biot-Savart systems (4) shows that the error factor cond(G) depends chiefly on: (i) The size of the elements into which the sample has been subdivided, as illustrated in Table 1. (ii) The distance from the sample to the grid where the magnetic induction field Bz has been measured, as illustrated in Table 2. The first factor in the growth of the condition number, its increase as the size of the discretization elements decreases, favours the selection of discretizations of the sample which are coarser than the measurement grid of Bz. The resulting linear systems (4) become overdetermined, and better conditioned for it. But Fourier inversion is impossible for overdetermined systems, so even a modest amount of error in the measurement of Bzmakes Fourier inversion feasible only for current maps with a very coarse resolution. The second factor in the growth of the condition number, its increase with the distance between the elements in the sample and the points where Bzis measured, means that the magnetic field Bzought to be measured as close to the sample as possible. Or, conversely, increased measurement distance makes more important to filter away the errors in the measurement of the magnetic field. On the other hand, the condition number of the system (4) does not change its order of magnitude with the thickness of the sample, as seen in Table 2 for a typical discretization grid of 81 ×101 elements, covering a rectangle of size 14 ×20 mm2, and with the height of measurement at two likely settings for it on a commercial grade Hall probe. All these factors driving the propagation of errors from measurement of the magnetic induction field to the Biot-Savart inversion to achieve Jhave led independent implementations of the inversion-by-linearization scheme ([9], [2]) to make the same SSA filtering and Fourier inversion for current density maps 7 sample thickness (mm)0.1 1 3 10 cond(G) height = 0.1mm 11.9 4.9 6.0 6.5 cond(G) height = 0.5mm 6791 35393 56549 73257 Table 2: Variation of the condition number of the system (4) with the thickness of the sample and height of measurement of Bz. Case (0.1,0.1) breaks the trend because of worse sensibility towards current in boundary elements. choices: selection of a discretization grid of the HTS sample that is coarser than the measurement grid for Bz, resulting in an overdetermined linear system, that is solved via a QR (typically Householder) scheme because this procedure minimizes the propagation of error. Hence the name of QR inversion applied to these schemes. This resolution of the linear system (4) is computationally costly, because inversion on an m×ngrid requires resolution of a linear system of size (m·n)×(m·n) whose matrix has no zero coefficients, thus the complexity of the problem is O((mn)3) and its memory requirement is O((mn)2), straining the capacity of modern desktop computers even for a 200 ×100 grid. 2.2. Fourier inversion The Biot-Savart formula determining the magnetic field Bcreated by an electrical current Jor, equivalently, a magnetization Msuch that J=∇ × M, can be seen as a convolution with a Biot-Savart kernel. This convolutional nature is passed to the discretization of the inverse Biot-Savart problem if the discretization and measurement grids are chosen equal, i.e. the linear system (4) is square. The system matrix Gbecomes then a Toeplitz matrix, and inversion of (4) can be performed through a discrete Fourier transform and deconvolution scheme developed in [4], [5], [6]. If one uses the Fast Fourier Transform algorithm to perform these (inverse) transforms the map of the magnetization M, equivalently of the current density J, is obtained at a dramatically reduced cost: for a discretization and measurement grid of m×npoints (resp. with a fixed step ∆xin both dimensions), the QR inversion procedure requires O((mn)3) arithmetic operations to solve (resp. O(( 1 ∆x)6) operations), while the FFT is computed in (mn) log(mn) operations. Moreover, the QR inversion needs to store (mn)2coefficients (resp. O(( 1 ∆x)4) coefficients) for the matrix Galone, requiring slower out-of-core algorithms for QR inversion once the memory requirements exceed the computer’s capacity (on a current desktop PC computer this limit is reached around m=n= 250). In contrast, the Fourier inversion algorithm requires only O(mn) variables to be stored in the computer memory. The Fourier Transform is an isometry (see [18]), so its application does not change SSA filtering and Fourier inversion for current density maps 8 the condition number (5) of the system. If the coefficients of the Biot-Savart kernel are computed analytically, the only noticeable addition of error of the Fourier inversion compared to QR inversion is the extension by zero of the magnetic induction field map Bzon areas where it is just close to zero. However, the Fourier inversion scheme has succeeded only at relatively coarse resolutions, even when iterative improvements of the solution are added on top of it ([5]). The reason for this limitation is that all magnetic induction field measurements, even those made with a Hall probe, come with some amount of error on top of the signal, arising from causes such as background electric noise, or gradual drift of the probe’s and amplifier’s settings. When we perform the Biot-Savart inversion by any linearization scheme (QR, Fourier or any other variant), the rate at which the relative error in the measurement propagates to the solution to the inverse problem is the condition number cond(G) of formula (5). Table 1 shows an instance of how this propagation factor grows exponentially with the size of the discretization grid: if we conduct a typical Hall probe measurement above the sample with a relative error of 0,1%, any linear Biot-Savart inversion with a 41x53 measurement and discretization grid will have relative error of at least 10% (even if the inversion procedure is completely accurate). Biot-Savart inversion for a 81x101 grid measured to the same accuracy comes with a relative error of 3500%. This is the mechanism through which the accuracy in the measurement of the magnetic field becomes the limiting factor for the quality of the Biot-Savart inversion. QR inversion can mitigate this problem by making the system (4) overdetermined, which lowers cond(G) for a fixed current map resolution, but Fourier inversion has no way to navigate around this difficulty and can work on a fine resolution only if the measurement of the magnetic field Bzcan be made much more accurate than as originally made by a commercial grade Hall probe. 2.3. SSA filtering The natural solution for improving the accuracy of Hall probe measurements without increasing their cost and complexity is to filter the raw output of the probe. Traditional filtering techniques, such as averaging, or frequence filtering in Fourier space have had a limited success on Hall scans, because their sources of error are diverse in characteristics such as amplitude, frequence or basic shape. Because of this, the authors have introduced the technique of SSA (Singular Spectrum Analysis) filtering in Hall probe measurements. SSA is suited to the separation of trend (that is, the true signal) and noise even in the case of superposition of several types of noise, both periodic and nonperiodic. See [19, 20, 21] for a description of the technique. SSA was developed for the analysis of climatological data, and has recently been applied with success to the filtering of sensor signals in Mechanical Engineering ([22, 23]). SSA analysis of a sequence of equispaced numerical observations, which we will SSA filtering and Fourier inversion for current density maps 9 treat as a row vector {B1, B2, . . . , BN}, is performed as follows: First, choose a window length lto obtain the trajectory matrix: an array Mthat has lrows, copies of the original vector of observations with a delay ranging from 0 to l−1, M=     B1B2. . . BN−l+1 B2B3. . . BN−l+2 . . . . . . BlBl+1 . . . BN     .(6) Next, perform the Singular Value Decomposition (SVD, see [17]) on the trajectory matrix M. In the cases of our interest it will turn out that the singular values of the trajectory matrix decrease very fast. Afterwards, perform the eigentriple grouping: select a subset of singular values, which in our case will be just the kfirst ones, the only ones not close to zero. Set all other singular values to zero, and this is the SVD of a matrix c M, which is the matrix of rank ≤kthat most closely approximates the original M. Finally, perform diagonal averaging: the matrix c Mis an approximation of the trajectory matrix Mbut, while Mhas coefficients Mij =Bmconstant over each antidiagonal {(i, j)|i+j−1 = m}as seen in (6) (Mis a Hanke matrix), c Mis not constant along each antidiagonal. Replace the entries of c Mon each antidiagonal i+j−1 = m by their average value along all the antidiagonal, and the resulting matrix f Mis the trajectory matrix for a new vector of data {e B1,e B2,..., e BN}. This resulting vector is the filtered signal (or trend), and the difference between it and the original vector of observations will be considered noise, and discarded. Our SSA filtering will depend on two parameters: the window length to be used in each series of measurements, and the number of eigentriples k, which is the number of singular values that we will preserve. The selection of singular values can be more complex in a general SSA filtering, but our experimentation has shown that in Hall probe measurements the first singular values of the SSA trajectory matrix correspond to the signal, and the last ones to the noise, with a marked decrease in size ([21]). In our inverse Biot-Savart problem, the original measurement Bzhas the structure of a 2-dimensional array coming from the rectangular grid of points at which the magnetic induction field has been measured. If a Hall probe has been used, the role of the two dimensions is not symmetrical because the rows correspond to successive measurements of the probe, while between a measurement and its following neighbour along a column a whole row of measurements of the probe has taken place, leaving more time for slow mechanical or electrical shifts. Because of this, we have performed our SSA filtering on the Hall probe measurements of Bzon a rectangular grid by the following method: (i) Perform SSA filtering on each row of the matrix of measured Bz, (ii) Zero level correction: for each SSA-filtered row, move its values linearly so that they become zero at the beginning and end. In this way we correct long term shifts SSA filtering and Fourier inversion for current density maps 16 obtained by our Biot-Savart inversion scheme with the original currents that have defined the simulation, averaged with a weight function 1 h−zwhere h−zis the vertical distance between each layer at a height zand Hall probe measurements at height h above the sample. This comparison at a transversal section of the simulated sample, slicing through its middle the hole in deep layer 2, is summarized in Figure 4b, which shows only the Jycomponent because the simulated current had Jx= 0 in all layers, and the computed current has Jxof a value of 2 orders of magnitude below Jy. Figure 4b also illustrates the aggregated nature of the error bounds that we provide through the condition number: the difference between the correct averaged current density and that obtained by our inversion procedure is about 10% in the core of the areas where the current is regular, but leaps to a relative value of 30% at the edges where discontinuities happen (edges of the tape, of the hole, transition points where the current inverts its sense of circulation). Finally, by integration of the Biot-Savart law we compute the vertical magnetic field ¯ Bzgenerated by the z-homogeneous current density Jthat our Fourier Biot-Savart inversion has found, and find that its difference in value with the magnetic field Bz generated by our multilayered simulation is less than 0.5% above the sample. A second interesting test is another simulated bulk HTS sample with dimensions 12 ×60 ×8mm3, subdivided along its 8 mm thickness in 2 layers of equal thickness 4 mm, with an imposed circulating current shown in Figure 5a. Each layer has a crack, i.e. a segment going orthogonally from the y-edge of the rectangle to its central axis of symmetry. The cracks on the bottom layer, with respect to the top layer, are situated on the left hand side of the rectangle,with respect to right hand side, and at 1/4, resp. 3/4, of the y-length of the sample. Each layer has a single domain of current, with homogeneous density 108A/m2, which circulates around each layer avoiding its crack. Thus the inhomogeneity in the current Jalong the z-axis lies not in its density, but in its direction. With this starting data we perform the same computations as for the first simulated sample: discretization of each layer as a rectangular grid of 120×200 elements over which Mis assumed constant, computation of the vertical magnetic field Bzgenerated by this discretized current on a 100×200 rectangular grid covering a 36×120 mm2rectangle at a height of 0.4mm above the sample, degradation of this field with the same parameters as for the first sample, SSA filtering of the degraded Bzvalues (Figure 5b shows the map of the resulting magnetic field), and Fourier inverse computation to obtain the maps of Mand current (density and current lines shown in Figures 5c, 5c, where the latter are compared to lines of the weighted z-average of the originally imposed current). As in the case of simulated sample 1, the current density Jthat has been found has current lines in close agreement to those of the 1 h−z-weighted average along the zaxis of the originally imposed current, as seen in Figure 5c. The average of the originally imposed current has homogeneous density 108A/m2, and, as Figure 5c shows, the current density Jthat our Biot-Savart inversion procedure has found has a margin of error below 10% in the stretches where the current is straight and homogeneous, and SSA filtering and Fourier inversion for current density maps 17 (a) Current imposed in each layer (above: top layer from z=−4mm to z= 0; below: bottom layer, from z=−8mm to z=−4mm;). (b) Magnetic field Bzat a height h= 0.4mm created by the layered current distribution, perturbed and SSA-filtered as in simulated sample 1. (c) Above: z-homogeneous current density, and some current lines superimposed, from the current found by Biot-Savart inversion of the map of Bzin 5b. Below: comparison between the lines of this current (black, continuous) and those of the 1 z−h-weighted average of the originally imposed current (red, dotted). Figure 5: Simulated sample 2 (2 layers). up to 20% in the regions where the current has inhomogeneities and sudden turns. The magnetic field Bzthat the obtained current density Jwould generate according to the Biot-Savart law differs in less than 0.5% from the Bzfed to the inversion algorithm above the sample. SSA filtering and Fourier inversion for current density maps 18 The second simulation makes clearer a point already apparent in simulation 1: our inversion procedure yields the average of the current density over the z-axis, with a weighing average 1 h−zwhich is the inverse of the depth of each horizontal layer at a fixed value of z(for a sample with thickness g,zranges from −gat the bottom to 0 at the top). This means that, in thick samples such as our simulations, current defects in superficial layers, with small depth, are detected much more clearly than defects in deep layers, which make a small contribution to the average. This difference in effect between irregularities in superficial and deep layers is not introduced by our algorithm, but is already present in the weight-averaged current that is sought, and even in the magnetic field Bz, as Figures 5b, 5c illustrate. This is one of the manifestations of the impossibility of producing 3-dimensional maps of the current Jin a thick sample, even when the current is planar (see [12], [11]). 4. Application on real samples As a definitive test of our Biot-Savart inversion scheme, this has been applied to two real samples, which are stacks, formed by 9 layers of HTS tapes. The used tapes were manufactured by SuperPower Inc., with a identification code SF12050. The magnetic field measurements have been done using a Hall mapping magnetometer that we have built for the characterization of superconducting samples. The Hall probe is attached to an XYZ Cartesian displacer driven by stepper motors which determine the mechanical resolution of the scans, with steps of 5 µm in our actual configuration. To obtain maps over the surface of the sample, XY scans are performed, at a fixed height Z, rastering a Hall probe in parallel rows, crossing the tape orthogonally to its main axis. To avoid displacements or misalignments between the plane of the sample and the XY scanning plane, the Hall probe was placed in a flexible strip adjusted to lightly press the sample, thus maintaining the sensor area at a constant distance. For the experiments presented here we used a probe CYSJ106C, with an active area of 300×300µm2that has a coating layer of 400 µm. The probes are calibrated using a Helmholtz coil. The one used here has a conversion factor of 18.80 Volt/Tesla, for a supply current in the probe of 1 mA. We have checked the linearity of the response for supplied currents from 0.5 mA to 10 mA. A Keithley 224 current source provides current to the probe with an accuracy of 0.05% in the range 1 mA - 10 mA. An INA111 low noise instrumentation amplifier is used to read Hall voltage. The Hall mapping system precision is 0.01% for a typical full scale range of 0.5 T. The first example, which we will call sample L80, is a stack with dimensions 12 ×80 ×0.51 mm3. The stack was cooled down in a liquid nitrogen (LN2) bath under a uniform magnetic field of 1 T. Once the sample was cooled, the magnet was switched off and the sample was mantained in the LN2 bath and installed in the Hall measurement system. The vertical magnetic induction field Bzgenerated by this current is measured with a Hall probe on a rectangular grid with 7200 ×250 points, at a height of h= 0.45 mm above the sample, with grid steps of 5 µm in the x(transversal) axis SSA filtering and Fourier inversion for current density maps 19 Figure 6: Longitudinal cut of the vertical magnetic field Bzvalues obtained from Hall probe measurement (solid blue), and after SSA filtering (dotted red) for sample L80. Only the central part of the cut is shown to zoom in on the effect of SSA filtering: with modest aggregate quantitative change (the global vector of values of Bzchanges its size by 1.36% after filtering), the original measurement is smoothed in a way that is more intrinsic to the measurement than other filtering schemes that ultimately impose a priori models. The claim of appropiateness of the filtering is based on the results of the Biot-Savart inversion shown in Fig. 7b which, unlike with previous filtering schemes, yields a plausible current map even at a high resolution. and 250 µm in the y(longitudinal) axis. The measured magnetic induction field already indicates the presence of inhomogeneities in the structure of the sample. Due to the constrain of error propagation on a very fine grid, and the growth in relative terms as the measurements become closer of the rounding by the probe of measured values, from this measurement we select a subgrid of 240 ×250 measurements by taking one out of every 30 in each row. The resulting grid is subjected to our scheme of SSA filtering. Fig. 6 shows the effect of SSA filtering on the original measurement of Bz, and the resulting filtered map of Bzis shown in Fig 7a. Our Fourier inversion scheme produces maps of magnetization Mand current density Jwith the same resolution of 150 ×250 µm2, shown in Fig. 7b. Previous attempts at Biot-Savart inversion of the autors with our overdetermined QR inversion scheme had reached a current map with a maximal resolution of 242 ×686 µm2, and this resolution had required an out-of-core variant of our inversion algorithm working for 26 hours on a desktop PC. Propagation of error from the measurement of Bz, even after several standard noise-filtering schemes such as averaging, or frequence screening, made this resolution unimprovable. After the statistical study of 1000 perturbations of the inversion we find that the relative error propagation follows a normal distribution with average value ¯c= 284.78 and deviation σc= 2.15. We conclude that, with 95% confidence, the relative error in SSA filtering and Fourier inversion for current density maps 20 the resulting map of Mis 289 times the relative error in Bz, and the 6σupper bound for error propagation is 297.71. The computed Jis the average, with weight 1 h−z, of the current density along the thickness of the stack. The vertical magnetic field that it generates coincides with the originally measured one with an error around 2.5% above the sample. The time used by a desktop PC running Matlab for this computation is 1s for the SSA filtering and Fourier inversion, and 87 min for the verification of the margin of error of the computation. From the Bzfield map, we can deduce that magnetic induction decays in the central region of the sample as corresponds to the valley in the field profile, thus showing the presence of a defect along the affected zone. By comparing it with the computed current map, we can observe the large density of the current at the edges matching the high slope of the magnetic induction map at the same edges. The sample remains essentially a single domain, with no current counter-flows at the boundaries of its central valley, and very localized current loops surrounding the magnetic induction field peaks. From the magnetic measurements we can deduce the critical current using the value of the current density in the neighborhood of the tape edges where the full penetration condition is fullfilled. At these lines, the computed current density is 2.8×108A/m2which is in the expected range. It is worth to remark that this value corresponds to the so called engineering current density, which considers the section of the full tape. Considering only the thin (1 µm) layer of superconductor in each tape, this value should be 51 times larger so the actual current flowing through the superconductor should be in the range of 1.43 ×1010A/m2. Comparing this value with the value given by the manufacturer as reference, 300 Afor the tape, we can deduce the value for the current for reference: 2.5×1010A/m2. The difference is within the expected dispersion. The second example is another stack with dimensions 12 ×30 ×0.51 mm3. The sample was field cooled in LN2, but the magnetic field was produced by two NdFeB magnets aligned along the length of the sample, with the poles facing it at a distance of 0.6 mm from the sample surface (Bz= 0.5T). In order to study the effect of magnetic gradients, the magnets were aligned alternating their poles. In these experiments the Hall probe scans were performed at a height of 0.51 mm (equal to the thickness of the sample), and the vertical magnetic field Bzwas measured on a grid of size 8400 ×250 points, with grid steps of 5 µm in the xaxis and 200 µm in the yaxis. The grid is approximately centered on the sample. Taking one out of every 35 measurements in each row in order to limit error propagation in the inversion, we produce a 240 ×250 value grid, with steps of 175, resp. 200, µm in the x, resp. yaxis. Our SSA filtering and Fourier inversion scheme is run on this measurement, producing maps of the magnetization Mand current density J with the same resolution of 175 ×200 µm2. Previous attempts at Biot-Savart inversion of this sample with the author’s overdetermined QR inversion scheme had reached a current map with a maximal resolution of 201 ×313 µm2, requiring the out-of-core variant of our inversion algorithm working for 37 hours on a desktop PC. As in the case SSA filtering and Fourier inversion for current density maps 21 (a) Measured magnetic induction field Bzafter SSA filtering, at height 0.45 mm. (b) Current density, and some current lines computed from the magnetic map of (a). Figure 7: HTS stack sample L80 of the previous sample, propagation of measurement errors even after filtering made this resolution the best available, no matter the computational time devoted. The results are shown in Figs. 8a (filtered Bz) and 8b (current J). The error analysis concludes that the relative error in Mis, with 95% confidence, the relative error in Bzmultiplied by a factor of less than 1142. The measured magnetic induction field Bzand the one that the obtained current map would produce agree with an error of around 2.75% above the sample. SSA filtering and Fourier inversion for current density maps 22 From the field map, we can observe the presence of two poles printed in the stack. Each one with a unique central peak of 0.083 T and 0.086 T, respectively. The symmetry in both printed poles corresponds to a nearly homogeneous superconductor. Each pole correspons to a loop of current flowing in opposite sense to that in the other pole, mimicking the magnetizing field. The current density reaches its maximum only in the central line delimiting the poles, which corresponds to the smaller magnetic field region. The engineering current density is 3.6×108A/m2, corresponding to a current density in the superconducting layer of 1.84 ×1010A/m2. It is well in agreement with the typical values corresponding to the employed commercial tapes ([24],[25], [26]). 5. Conclusions The SSA filtering and Fourier inversion scheme here proposed can solve the inverse Biot-Savart problem for HTS samples with planar chrystallization, obtaining from Hall probe measurements of the vertical magnetic induction field Bzabove the sample 2- dimensional maps of the induced current J, with a resolution and accuracy that were hitherto unavailable using commercial grade equipment, and with a computational cost that is only a fraction of that of previous current map yielding inversion schemes. After measuring Bzat a height of 0.5mm over the sample, resolutions of 150 ×250 µm2have been achieved for the current maps on real samples of cm size. The maps are obtained instantaneously on a desktop PC. The computation provides bounds for its margin of error, showing these maps to be accurate. In the case of samples with nontrivial thickness, the obtained map corresponds to the average, with a weight function 1 depth measured from the height of the Hall probe, of the current density Jalong the sample thickness. A 3-dimensional map of current detailing the differences among different layers is unattainable with any linear Biot-Savart inversion scheme ([11],[15]). After accepting this, the thickness of the sample does not pose any additional difficulty to the Fourier inversion. The initial SSA filtering of the Hall probe measurement of Bzis indispensable to reach the obtained resolutions in the current maps. Fourier inversion is a very fast and economic procedure, so it already allows with existing hardware the computation of current maps with a finer resolution. The limiting factor for Biot-Savart inversion is the margin of error in the measurement of Bz, which gets multiplied by a condition number to become the margin of error in the map of the current density J. This condition number grows exponentially with the fineness of the map grid, measured in terms of the height at which Bzis measured. Therefore, the resolution of the Biot-Savart inversion can be made finer only by a more accurate measurement, closer to the sample, or more efficient error filtering, of Bz. Even then, the exponential growth of the condition number of the inversion leaves open the question of whether the resolution of current maps obtained with the SSA filtering and Fourier inversion scheme here proposed can be greatly improved. In this work we have demonstrated the effectiveness of our combined SSA filtering SSA filtering and Fourier inversion for current density maps 23 (a) Measured magnetic induction field Bzafter SSA filtering, at height 0.51 mm. (b) Current density, and some current lines, computed from the magnetic field of (a). Figure 8: HTS stack sample L30 and FFT inversion scheme for determining current maps in closed circuit samples. The authors are confident that our scheme can be used for the computation of current maps in samples carrying current that crosses their boundary, by adapting the discretization strategy of our QR-inversion scheme of [14], which already finds current maps in such a current transport situation, but at lesser accuracy and speed than the scheme presented in this work. This approach should avoid most of the noise-like oscillations, and the imposition of symmetry conditions accross the boundary of the domain, of the inversion SSA filtering and Fourier inversion for current density maps 24 scheme reported in [27]. This topic will be pursued further. Acknowledgements The authors thank Marta P´erez Casany for her statistical advice. We acknowledge financial support from Spanish Ministry of Economy and Competitiveness through the Severo Ochoa Programme (SEV-2015-0496), CONSOLIDER Excellence Network (MAT2015-68994-REDC), COACHSUPENERGY project (MAT2014- 51778-C2-1-R, co-financed by FEDER), GAP project (MTM2015-69135-P) and SUPERINKS project (RTC-2015-3640-3, co-financed by FEDER); the European Union for FASTGRID project (H2020-NMBP-18-2016-IA-72109) and WPMAG 5 (H2020- EUROfusion) and the Catalan Government with 2017-SGR-932, 2014-SGR-753 and Xarmae. References [1] Xing W, Heinrich B, Zhou H, Fife A A and Cragg A R 1994 Magnetic flux mapping, magnetization, and current distributions of YBa2Cu3O7 thin films by scanning Hall probe measurements J. Appl. Phys. 76(7) 4244-4255 [2] Hengstberger F, Eisterer M, Zehetmayer M and Weber H W 2009 Assessing the spatial and field dependence of the critical current density in YBCO bulk superconductors by scanning Hall probes Supercond. Sci. Technol. 22(2) 025011 [3] Lao M, Hecher J, Sieger M, Pahlke P, Bauer M, H¨uhne R and Eisterer M 2017 Planar current anisotropy and field dependence of Jc in coated conductors assessed by scanning Hall probe microscopy Supercond. Sci. Technol. 30 024004 [4] Wijngaarden R J, Spoelder H J W, Surdeanu R and Griessen R 1996 Determination of twodimensional current patterns in flat superconductors from magneto-optical measurements: An efficient inversion scheme Phys. Rev. B 54 6742 [5] Wijngaarden R J, Heeck K, Spoelder H J W, Surdeanu R and Griessen R 1998 Fast determination of 2D current patterns in flat conductors from measurement of their magnetic field Physica C: Superconductivity 295 177-185 [6] Jooss C, Warthmann R, Forkl A and Krohnm¨uller H 1998 High-resolution magneto-optical imaging of critical currents in Y Ba2Cu3O7−δthin films Physica C: Superconductivity 299(3) 215-230 [7] Zeisberger M, Habisreuther T, Litzkendorf D, M¨uller R, Surzhenko O and Gawalek W 2002 Experimental and theoretical investigations on the field trapping capabilities of HTSC-bulk material Physica C: Superconductivity 372 1890-1893 [8] Yu R, Mora J, Pi˜nol S, Sandiumenge F, Vilalta N, Gomis V, Mart´ınez B, Rodr´ıguez E, Amor´os J, Carrera M, Granados X, Camacho J, Fontcuberta J and Obradors X 1997 Processing and levitation force in top-seeded YBCO IEEE Trans. Appl. Supercond. 7(2) 1809-1812 [9] Carrera M, Amor´os J, Obradors X and Fontcuberta J 2003 A new method of computation of current distribution maps in bulk high-temperature superconductors: analysis and validation Supercond. Sci. Technol. 16(10) 1187 [10] Carrera M, Amor´os J, Carrillo A E, Obradors X and Fontcuberta J 2003 Current distribution maps in large YBCO melt-textured blocks Physica C: Superconductivity 385(4) 539-543 [11] Carrera M, Granados X, Amor´os J, Maynou R, Puig T and Obradors X 2009 Detection of current distribution in bulk samples with artificial defects from inversion of Hall magnetic maps IEEE Trans. Appl. Supercond. 19(3) 3553-3556 SSA filtering and Fourier inversion for current density maps 25 [12] Amor´os J, Carrera M, Granados X, Iliescu S, Moreno E, Bozzo B and Obradors X 2006 Computation limits of current distribution in thick superconducting bulks from magnetic field measurements Journal of Physics: Conference Series 43 518-521 [13] Carrera M, Amor´os J, Granados X, Maynou R, Puig T and Obradors X 2011 Computation of Current Distribution in YBCO Tapes with Defects Obtained from Hall Magnetic Mapping by Inverse Problem Solution IEEE Trans. Appl. Supercond. 21 3408-3412 [14] Amor´os J, Carrera M and Granados X 2012 An effective model for fast computation of current distribution in operating HTS tapes from magnetic field measurements in non-destructive testing Supercond. Sci. Technol. 25 104005 [15] Eisterer M 2005 The significance of solutions of the inverse BiotSavart problem in thick superconductors Supercond. Sci. Technol. 18(2) S58 [16] Amor´os J, Carrera M, Granados X, Iliescu S, Moreno E, Bozzo B and Obradors X 2006 Journal of Physics: Conference Series 43 518-521 [17] Gollub G H and Van Loan C F 2012 Matrix Computations 4th (Baltimore: Johns Hopkins Univ.Press) [18] Katznelson Y 1976 An Introduction to Harmonic Analysis Second Edition (New York: Dover Publications) [19] Elsner J B and Tsonis A A 1996 Singular Spectrum Analysis: A New Tool in Time Series Analysis (New York: Springer) [20] Golyandina N, Nekrutkin V and Zhigljavsky A 2001 Analysis of Time Series Structure: SSA and related techniques (Florida: Chapman & Hall/CRC) [21] Duran Gonz´alez A 2017 C`alcul de corrents cr´ıtics en materials superconductors via SSA i inversi´o de Fourier Graduation thesis ETSEIB-UPC https://upcommons.upc.edu/handle/2117/106877 [22] Garcia D and Trendafilova I 2014 A multivariate data analysis approach towards vibration analysis and vibration-based damage assessment: Application for delamination detection in a composite beam Journal of Sound and Vibration 333(25) 7036-7050 [23] Pozo F and Vidal Y 2015 Wind Turbine Fault Detection through Principal Component Analysis and Statistical Hypothesis Testing Energies 9(1) 3 [24] SuperPower Inc., www.superpower-inc.com [25] SuperOx, www.superox.ru [26] Theva D¨unnschichttechnik GmbH, theva.com/superconductors/theva-pro-line [27] Meltzer A Y, Levin E and Zeldov E 2017 Direct Reconstruction of Two-Dimensional Currents in Thin Films from Magnetic-Field Measurements Physical Review Applied 8(6) 064030 (2017).