Improving pointing of Toru\'n 32-m radio telescope: effects of rail surface irregularities

Over the last few years a number of software and hardware improvements have been implemented to the 32-m Cassegrain radio telescope located near Toru\'n. The 19-bit angle encoders have been upgraded to 29-bit in azimuth and elevation axes. The control system has been substantially improved, in order to account for a number of previously-neglected, astrometric effects that are relevant for milli-degree pointing. In the summer 2015, as a result of maintenance works, the orientation of the secondary mirror has been slightly altered, which resulted in worsening of the pointing precision, much below the nominal telescope capabilities. In preparation for observations at the highest available frequency of 30-GHz, we use One Centimeter Receiver Array (OCRA), to take the most accurate pointing data ever collected with the telescope, and we analyze it in order to improve the pointing precision. We introduce a new generalized pointing model that, for the first time, accounts for the rail irregularities, and we show that the telescope can have root mean square pointing accuracy at the level ${<}8"$ and ${<}12"$ in azimuth and elevation respectively. Finally, we discuss the implemented pointing improvements in the light of effects that may influence their long-term stability.


I. INTRODUCTION
The Toruń 32-meter radio telescope is a classical Cassegrain telescope with alt-azimuth, wheel-on-track mounting. Located in central Europe, and operated 24-h a day, it is one of the European VLBI Network (EVN) nodes, capable of observing at frequencies from ∼1 GHz to ∼30 GHz in continuum and spectroscopic modes at the selected bands.
Over the last several months a few important astrometric improvements have been introduced into the control system. More improvements were implemented over the period of last few years, including weather dependent radio refraction and corrections due to differences between the Coordinated Universal Time (UTC) and Universal Time (UT1). The secondary mirror of the Cassegrain system by design has five degrees of freedom: 2 for lateral translations in the focal plane, 1 for translations along the optical axis, and 2 for rotations about secondary focus. Given that the mirror drives become unreliable over time in 2015 the mirror has been fixed. As a result, its orientation and gravitational sag have changed. Furthermore, the 19-bit angle encoders have been upgraded in azimuth and elevation axes in 2013 and 2014 respectively, and now provide position information with sub-arcsecond resolution.
For about ten years, since the initial fixation of the secondary mirror in 2006, and since introducing the pointing model used for the observations presented in this work, it has been known that the residuals between the measured pointing corrections, and the best-fitting pointing model, exhibit patterns that vary faster in angular space than the model can accommodate. However, only with the advent of higher precision 22-GHz spectral pointing observations, and the data acquired in the continuum with OCRA-p (One Centimeter Receiver Array prototype) radiometer (Browne et al. 2000), and by using an improved ver- * bartosz.lew@umk.pl sion of the control system, which provides position readouts at higher frequency, and also by improving the extraction algorithms for position corrections from cross-scan observations, in the year 2015, it become possible to undoubtedly associate these high frequency patterns to irregularities of the rail as the telescope trolleys roll over the welding points. All of these observations require introducing a more general pointing model and its calibration by means of the new pointing data. In preparation for the observation programs carried out at frequencies above 20 GHz (Gawroński et al. 2010;Lancaster et al. 2011;Lew et al. 2015;Lew & Roukema 2016;Lowe et al. 2007;Peel et al. 2011;Szymczak et al. 2016), we carry out pointing campaigns aiming at improving the pointing precision to one-tenth of the highest frequency beam, i.e. ∼0.002 • .
In this work we introduce a generalized pointing model, implement it into the control system and discuss the resulting improvements. The assumed target precision, the order of one milli-degree, may also require precise thermal control of the supporting structure since seasonal, day to night and sun to shade temperature variations may have significant effects on pointing capabilities of large-aperture and/or millimeter-wave telescopes (Baars et al. 1988;Bayley et al. 1994;Bolli et al. 2015;Greve & Bremer 2006;Orfei et al. 2004;Pisanu et al. 2010;Prestage et al. 2004;Sun et al. 2014;Ukita 1999;von Hoerner 1967). Other effects such as strong wind can also impact surface deformation and pointing at the level of several seconds of arc (Ukita 2008;Ukita et al. 2007) and lead to significant loses of available observing time (Ries et al. 2011;Ries 2012).
It is known that the surface accuracy of the rail, its design and component connections may also significantly impact pointing capabilities of large telescopes (Chen et al. 2016;Kaercher 2004;Kong et al. 2014;Li et al. 2017;Shi et al. 2014). While controlling parameters such as temperature or inclination of the structure may also be critical for maintaining high pointing performance, in the present work on the 32-m Toruń radio telescope, we primarily focus on modeling the previously-neglected effects associated with the telescope rail, and how they limit pointing capabilities, while we leave discussing thermal effects to a separate analysis.
The impact of the rail surface irregularity on the orientation of the antenna, and consequently on the amplitude of the associated position corrections can be accurately modeled using data obtained from inclinometers installed on the structure of the telescope (e.g. Gawronski et al. 2006Gawronski et al. , 2000. In the absence of the inclinometers, an alternative approach is possible, which is to extract the position corrections directly from pointing observations.
In section Sec. II we lay out the notation and basic relations used throughout the rest of the paper. In section Sec. III we describe pointing models used with the 32-m Toruń radio telescope. Pointing observations and data processing are discussed in Sec. IV and Sec. V respectively. The main results are presented in Sec. VI and Sec. VII where we calibrate the extended pointing models and present the impact of rail irregularities. We discuss the results in connection with independent measurements of the rail in Sec. IX and then conclude in Sec. X.

II. COORDINATES AND REFERENCE FRAMES
When an observer demands to track a distant source at equatorial coordinates (α e , δ e ) for a given epoch (e.g. J2000), these coordinates are converted to (α S , δ S ) coordinates of the current date, accounting for precession, nutation, and annual aberration. The corresponding horizontal celestial coordinates (A S , Z S ) of the date are calculated using standard spherical trigonometry rotations for the actual local mean sidereal time. These coordinates are referred to as "SET" coordinates and they represent the actual, in-vacuum direction towards the source in horizontal coordinates.
In order to track the source, the control system needs to minimize the difference between the updated (A S , Z S ) direction and the "TRUE" (in-vacuum) direction of the selected telescope beam (A T , Z T ), accounting for its offset (B A , B Z ) from the telescope optical axis. The corresponding (α T , δ T ) are calculated and updated using (A T , Z T ) for the actual time. When tracking, the horizontal coordinates of the optical axis are related to the "TRUE" coordinates of the beam through: where R is a refraction angle discussed latter and O A and O Z are azimuth and zenith distance offsets which are added if requested.
The condition for tracking a source at fixed offset defined in azimuth-zenith-distance space is: For the case when the receiver beam tracks the source we have: In the version of the control system which has been used to gather the pointing data presented in this work, the receiver beam offset B A scales with the zenith distance as B A / sin(Z oa ) (Eq. 1). We will hereafter refer to this version as fast_track.
While tracking, these coordinates are sensitive to switching from one off-axis receiver to another, as the tracking telescope must physically slightly reorient itself when a new offset receiver (and therefore offset beam) is requested. At the same time the "SET" coordinates are, obviously, not sensitive to these changes. The pair of "TRUE" and "SET" coordinates is provided numerically to other programs and to users via local network. While tracking a source, "TRUE" and "SET" coordinates are made equal to within tracking precision by a proportionalintegral-derivative (PID) controller.
For each moment in time the position encoders read the actual orientation of the telescope in its own coordinate system, that only crudely approximates the horizontal coordinate system. We will call these coordinates A E and Z E . In order to relate these coordinates to the "TRUE" (in-space) coordinates (A T , Z T ) when the telescope is tracking a source, they need to be corrected for (i) tilt of the vertical axis with respect to geodetic zenith, (ii) skew of the elevation axis, (iii) focus box offsets (iv) gravitational sag of the Cassegrain mirror (v) rail deficiencies (vi) and other effects resulting from construction defects that cannot be easily modeled. Hereafter, all of these corrections are jointly called COR, and they allow us to connect the coordinates of the telescope own coordinate system to the horizontal, in-space coordinates of the selected beam via the weather-dependent atmospheric refraction angle R > 0: where R is a function of Z oa (zenith distance of the optical axis in the horizontal coordinate system) and actual temperature (T ), pressure (P ) and humidity (H), provided to the control system from local meteorological station. The control system also accommodates for additional position corrections T A and T Z which are taken from look-up tables, although these were not used during the pointing campaign i.e. for the data consid-ered in this work (T A , T Z ) = (0, 0). Obviously, the pointing data discussed in Sec. V, have no user-defined offsets, hence in this analysis (O A , O Z ) = (0, 0). The C A and C Z terms in Eqs. 3 represent all of the COR effects. In this setting, pointing imperfections result mainly from our ignorance about the true orientation of the optical axis. In the case when COR is not exact, pointing measurements will indicate non-zero posi-tion corrections at the source direction. We can account for that by rewriting Eqs. 3 as: where (∆ A , ∆ Z ) are the measured position corrections. Using Eqs. 1 this can be rewritten in terms of the coordinates of the telescope optical axis: Table I summarizes the coordinate systems and naming conventions introduced in this section.

III. POINTING MODEL
In the fast_track version of the control system the position corrections (COR) are defined by an analytic pointing model called "Model 4c" (Borkowski 2004(Borkowski , 2006 which is based on the model derived by Himwich (1993). This model was used during the pointing observations (Sec. IV).
The problem of improving the 32-m Toruń radio telescope pointing precision is a matter of finding new analytic models as a replacement for C A (A E , Z E ) and C Z (A E , Z E ) functions (Eqs. 5) such that they minimize the position corrections (∆ A , ∆ Z ) amended by the pointing model used to measure them. For this purpose we define: We also define a new pointing corrections model for azimuth M A (p, A E , Z E ) and zenith distance M Z (q, A E , Z E ) and we fit pointing measurements by minimizing: where p and q are parameters of the M Zi quantifies the i'th measurement noise level and w i ∼ S i is proportional to the radio source flux density (S i ). In practice, we assume w i /σ i = log(SNR i ), where SNR is the signal to noise ratio estimated from each pointing measurement.
The choice of the weighting function is to give stronger χ 2 contributions from more reliable measurements while accounting for the steep spectrum of the distribution of the intrinsic flux densities in the observed radio source population. This choice may impact the reconstructed confidence intervals, but as long as the numerical precision is not a concern (and for the assumed Markov chain convergence criteria) the choice should not affect the best fit solutions. In this work, we are only concerned with finding the best fitting model through χ 2 minimization, and we do not reconstruct the parameter posterior distributions.
In the fast_track version of the control system, the coordinates (A E , Z E ) and the values C A (A E , Z E ) and C Z (A E , Z E ) for any given measurement are not directly available from observations. We therefore use the following approximation: In order to derive the χ 2 values for any given set of parameter values, a similar approximation is used to calculate the new pointing model corrections (M A and M Z ) at (A E , Z E ). While the transformation from (A T , Z T ) to (A oa , Z oa ) coordinates is possible by reconstructing the weather dependent refraction history (Eqs. 1), in the current work we perform this transformation using the mean refraction model (Eqs. 13) which is sufficient given the quality of the present data, and the fact that the data cover Z T < 80 • where R < 0.15 • . The COR corrections in this range are even smaller.
When calculating χ 2 values we make at least two implicit approximations that should be addressed. One results from calculating the model position correction values at wrong directions: (A oa , Z oa ) rather than (A E , Z E ), and the other stems from associating the measured corrections (∆ A , ∆ Z ), to wrong directions: (A oa , Z oa ), rather than (A E , Z E ). This is expressed in Eqs. 8. The approximation is justified by the fact that the fastest recorded changes of the position corrections are about 0.003 deg/deg, which when converted to the angular scales of the differences between (A E , Z E ) and (A T , Z T ) coordinates (even at those lowest elevations), the approximation gives errors of the order 0.0003 • at the most. In practice, the errors are much smaller because "Model 4c" does not model the fastest variations of the corrections associated with rail irregularities, and the rate of correction changes in this model is actually much smaller than the measured value. Therefore, for the current data the error due to this approximation is not important.
Except for the rail irregularity, the effects associated with pointing corrections described in Sec. II can be accurately modeled by slightly modified formulas derived in Borkowski (2004): Table I. List of coordinates and naming conventions.
Control system name Name Comment SET (αS, δS) Equatorial coordinates of the selected source, calculated from user-provided coordinates for a given epoch SET (AS, ZS) Actual (in-vacuum) horizontal coordinates of the selected source, corresponding to (αS, δS) at the actual UT1 time TRUE (AT , ZT ) Actual (in-vacuum) horizontal coordinates of the receiver beam TRUE (αT , δT ) Equatorial coordinates coordinates of the receiver beam corresponding to (AT , ZT ) (Aoa, Zoa) Horizontal coordinates of the telescope optical axis. These coordinates are calculated by the control system from (AE, ZE) with assumptions on pointing model (COR). Aoa = AE − CA(AE, ZE) and Zoa = ZE − CZ (AE, ZE). (AE, ZE) Coordinates of the optical axis in the telescope own coordinate system that approximates horizontal coordinate system with imperfections described by COR (see. Sec. II). These coordinates are read, but not available to the user.
This 16-parameter model is a small angle limit of the exact "Model 4c", but extended by an additional ad-hoc parameter q 3 , which proves to be useful in mitigating large-scale trends in zenith distance residuals. The model has a simpler formulation than the full "Model 4c" (M (4c) ), but retains a very high compatibility with it (Borkowski, 2016, private communication). We will hereafter refer to this model as "Model 4e" or M (4e) . In the original version of model M (4c) , the parameter q 3 = 0 and the equations are coupled since ξ A = ξ Z = ξ and ζ A = ζ Z = ζ, which is physically justified.
The A 0 and Z 0 are simple constant offsets, γ calibrates the gravitational sag of the secondary mirror and its supports, ξ and ζ parameters define tilt angles of the telescope azimuth axis towards local meridian and towards the West (the so-called tiltover and tilt-out components), σ defines angle between the elevation axis and the plane of local horizon, and β is the angle between plane perpendicular to elevation axis and the optical axis. Seven ad-hoc terms (p 1 , p 2 , p 3 , p 4 , and q 1 , q 2 , q 3 ) are inserted empirically to accommodate for corrections that cannot be modeled by the aforementioned construction imperfections, but may be related with e.g. eccentricity of gearwheels etc.
When the equations are coupled (ξ A = ξ Z = ξ and ζ A = ζ Z = ζ) the two models (M A and M Z ) can be fitted jointly by minimizing: however, we find that the resulting best-fit model yields residuals a factor of ∼1.7 times larger in zenith distance and ∼1.1 times larger in azimuth, than in the case when the two parameters are allowed to differ between the models for each of the two coordinates. We will therefore use the model with 16 parameters as defined in Eqs. 9, even though it is not as well physically motivated.

IV. OBSERVATIONS
Between April and October 2016 we carried out a pointing campaign using OCRA-p (Browne et al. 2000), a 30-GHz dual beam, beam-switched receiver with half power beamwidth θ OCRA ≈ 1.2 and with the reference beam offset During the observations the pointing model "Model 4c" (Sec. III) was used along with the fast_track version of the control system. The observations were carried out using the "ocraToolkit" software package, designed for OCRA-SZ observational project (Lancaster et al. 2011;Lew et al. 2015 Figure 1. A high signal to noise (SNR ≈ 510) cross-scan observation of 3C 84 with a linear drift removed. First, elevation scan is performed (left) and it is followed by azimuth scan (right), accounting for the position correction from the elevation scan. Side lobes of up to 5% are asymmetric due to receiver beam offset (Eq. 11).
For any given radio source, we perform a cross-scan ( Fig. 1) as previously discussed in Lowe et al. (2007) and Gawroński et al. (2010), and we extract the position corrections (∆ A , ∆ Z ) (Fig. 3) by fitting gaussian and double gaussian functions to the data points after having removed drifts arising due to atmospheric effects (Lew & Uscka-Kowalkowska 2016). The averaged cross-scan data have 1-s time resolution.
We observed a sample of 26 distinct radio sources. The sample is composed mostly of active galactic nuclei (AGNs) including: intermediate to high redshift (0.2 < z < 2.5) quasars (14), and low to intermediate redshift (0.017 < z < 0.72) Seyfert galaxies (6), BL Lac objects (4), a radio galaxy (1) and the NGC 7027 planetary nebula, all of which should appear a pointlike with OCRA-p beam. However, the majority of observations (92%) were performed using a small sub-group of brightest sources (9). By analyzing the the quality of the fits of the model beam to the data, as well as the repeatability of the corrections within ranges where they vary slowly, we estimate that for the data with high SNR the uncertainty of position correction determination is small O(10 −4 ) deg, but possibly up to ≈0.004 deg for poor weather or low SNR.
For the pointing campaign the control system has been modified to account for a number of astrometric effects which are relevant at the milli-degree pointing accuracy. The modifications include: (i) introducing UT1 time scale 1 which gives an effect of <0.6s in hour angle, (ii) adapting the nutation model as implemented in the NOVAS library (Kaplan et al. 2012) 2 which affects pointing at the level 5 mdeg, (iii) introducing weather dependent radio refraction as implemented in SLA library (Wallace 1994) with weather data based on real-time readouts from 1 All time-related operations in the control system are based on UT1 time scale.
The UT1 time is updated regularly using the data available online at http: //maia.usno.navy.mil/ser7/mark3.out. 2 http://aa.usno.navy.mil/software/novas/novas_info. php. While the previous implementation of the nutation was consistent with NOVAS library at the level <10 −5 deg, it was not used due to bugs introduced during porting the code from FORTRAN to C. In most cases the direction of azimuth correction of a given cross-scan is close to the direction of zenith distance correction of the same cross-scan. In some records, this is not the case due to e.g. failure in finding the best-fit position correction in the first iteration. In such cases, the scan is repeated along that coordinate until a satisfactory fitting is achieved a few minutes later.
the local meteorological station (effect of 50 mdeg for Z < 80 and relevant meteorological conditions), (iv) enabling annual aberration in coordinate transformations 3 (effect of 6 mdeg), and (v) correcting the telescope geodetic coordinates to match those obtained from a geodetic VLBI experiment (Charlot et al. 2001), which gives an effect of ≈0.72 s in hour angle. We have also improved the observing strategy that exploits, the possibility of controlling the velocity of the telescope drives in azimuth and elevation in order to scan a source along one coordinate while tracking, rather than imposing a series of fixed offsets that are reached along an unpredictable trajectory. This also allows us to directly control the cross-scan speed. It was estimated that for any given cross-scan these improvements provide about 10% larger receiver response due to the radio source passing closer to the beam center as the telescope sweeps the sky during the azimuth scan.
Another improvement over the previous pointing observations, comes from a higher time resolution (roughly 8 Hz) of the telescope position readouts obtained from the RTLinux based control system (a factor of ∼8 improvement) and also from the way the position data are matched to the signal stream -i.e. by using an interpolation rather than the nearest neighbor approach.

V. DATA PROCESSING
The pointing data are a compilation of cross-scan observations of selected radio sources, observed over ranges of hour angles with a typical time lapse between the adjacent observations of ∼5 minutes. Depending on the type of observational program, the time elapsed between subsequent cross-scan observations of the same source can increase to several minutes.   Table II. ∆ is the derived position offset in azimuth or zenith distance and SNR is a signal-to-noise estimator that we use to weight contributions to the χ 2 (Eqs. 7). Each cross-scan observation contains two such records: one for the azimuth scan in which case ∆ ≡ ∆ A and one for the elevation scan in which case ∆ ≡ ∆ Z .
The cross-scan data are pre-processed before the analysis in several stages. On 14 June 2016 a number of important astrometric corrections have been implemented into the control system (Sec. IV), therefore in stage-one we select only the data gathered after that date.
In stage-two we further screen this data to remove obvious outliers (Fig. 3). This is done by requiring This condition leaves 4076 pointing measurements that fully cover the entire range of azimuths and the observationally useful range of zenith distances (Fig. 2). Clearly, for any given A T the pointing corrections depend on Z T as well. However, they do so consistently: i.e. for a given A T , negative ∆ A corrections reside typically at low zenith distances (and vice-versa), but not at low and high zenith distances simultaneously, which would hint on data inconsistency or time-dependent effects. The same seems to be true for ∆ Z corrections. A statistic of pointing precision of the fast_track version of the control system is shown in Fig. 4. In the stage-three of data pre-processing coordinates of each pointing measurement are transformed from (A T , Z T ) to (A oa , Z oa ) using OCRA-p receiver beam offset (Eq. 11) and the mean optical atmospheric refraction according to: Using the approximation given in Eqs. 8 we calculate Ai (A oa , Z oa ) and Zi (A oa , Z oa ). In Eq. 13b we use formula for optical refraction even though radio and weather-dependent refraction model was used during the observations. This shortcoming has little effect on reconstructing Z oa directions as explained in Sec. III.

VI. FINDING THE BEST-FIT MODEL
We fit the 16-parameter model as defined in Eqs. 9 to the pointing data discussed in Sec. V using Monte-Carlo Markov-Chain (MCMC) approach, combined with simulated annealing (SA) algorithm. A typical MCMC chain with a moderate cooling rate takes about 20 000 to 40 000 steps before a converged solution is found. We assume a flat initial prior distribution for each parameter.  Table II. The residuals between the pointing data and the best-fit "Model 4e": are shown in Fig. 5. The figure clearly shows the possibility of improving the telescope pointing precision. The zoom-in panels also show, that what looks like a noise (left plots in Fig. 5) actually has a fine structure that is resolved with the current quality of the data (e.g. Fig. 5 top-right). The statistical error of a pointing measurement, O(10 −4 ) degree, is much smaller than the systematic errors still present in ∆ (4e) residuals and clearly, model M (4e) A is unable to fit them. This indicates that the pointing model (Eqs. 9) can be further improved. The residuals also confirm that the rate of variation of the azimuth corrections is <3 mdeg/deg.
It is clear that for any given range of azimuths and/or elevations the dispersion of the zenith distance pointing corrections is larger, than it is in the case of azimuth corrections (Fig. 5).
This may indicate problems of repeatability of the measurements (e.g. resulting from the stability of the suspension of the secondary mirror). For certain ranges of azimuths, the azimuth or elevation position corrections may vary by as much as ∼0.015 • for two distinct elevations or distinct measurement dates. This also hints that some effects yet unaccounted for may play some role.
The best fit parameter values in scientific notation in degrees yield: The anticipated improvement due to introducing model M (4e) is shown in Fig. 6 and in Table II.

VII. MODELING RAIL SURFACE IRREGULARITIES
The fluctuations of ∆ (4e) are largely independent from the zenith distance coordinate (Fig. 5), thus introducing further improvements simpler, as compared to the case when the corrections or residuals depend on azimuth and elevation at the same time.
In order to further improve "Model 4e", we (i) wrap ∆ range, (ii) densely resample the corrections on a uniform grid using a linear interpolation, and (iii) decompose them into Fourier series. The Fourier expansion yields: where X = A for azimuth residuals and X = Z for zenith distance residuals, δ X0 = ∆ Xi s Xi i ≈ 0 where s Xi = sin Z oa,i for X = A and s Xi = 1 for X = Z and ∆ Xi is the i'th residual calculated using Eqs. 14. We find that N F = 50 gives a reasonable fit to the model M (4e) residuals (Fig. 7) and allows us to reconstruct the structures that are well seen in . The values of the coefficients {T i , a i , φ i } are provided as an to the on-line version of this article. We introduce "Model 5" (M (5) ) as: and we reprocess the corrections to obtain new residuals (Fig. 8) and their distribution (Fig. 9). In order to implement this model into a new version of the control system that we call COCONUT, we use the approximation given in Eqs. 8 since the control system calculates the corrections as a function of the telescope encoder coordinates (A E , Z E ).
The large-scale fluctuations are clearly visible in "Model 4e" residuals and they can be associated with the irregularities of the rail, that is welded out of 14 pieces, which implies a period of ∼25.7 • . This period matches well the quasi-periodic structures evident in Fig. 5 (top-right) and coincides with the number and the locations of the welding points along the rail (Fig. 7). These saw-tooth-like irregularities were previously detected in the pointing data analyzed by Borkowski (2006), but the quality of that data was substantially worse, and these effects have never been accounted for in any pointing corrections model. A higher Table II. Summary of measured and projected 32-m Toruń radio telescope pointing precision. The best fit assuming ξ A = ξ Z = ξ and ζ A = ζ Z = ζ in Eqs. 9 c RMS improvement with respect to the fast_track version of the control system. d Precision measured using an additional pointing data taken after the pointing model was implemented into the control system. Standard deviations are also given in parentheses for comparison, in order to indicate yet unidentified, long-term systematic effects that are still not accounted for in the model (see Fig. 10 and Sec. IX for a discussion).

Control system Pointing RMS(A) RMS(Z) Improvement
frequency modes of up to ∼7 • deg are now also evident, and the current data allows us to model them as well. The highest frequency modes that we model also approximately correspond to the angular separation of the wheels of the telescope trolleys. In Fig. 10 we show a comparison between the distributions of the measured position corrections in the fast_track version of the control system and the anticipated improvements due to using the new pointing models ("Model 4e" and "Model 5"). The improvements are also shown by the RMS values in Tab. II.

VIII. MEASUREMENTS OF RAIL AND WHEELS IRREGULARITY
If the telescope wheels are not exactly round, but rather oval to the first approximation, then the fast running pointing corrections may only partially be associated with the rail irregularities  Table II. as the wheels of 1.4 m in diameter cover azimuth range of about 21 • per single rotation. 4 Furthermore, the time stability of the rail model (Fig. 7, Eq. 16) would be uncertain if e.g. wheels could slip over the rail, or roll along non-repeatable paths. In fact, we observed that matching a pair of points, one on the rim of a given wheel and another one on the rail, and both fixed at the same azimuth, is not stable in time.
Therefore, we measure the wheel and rail irregularities using an analog distance indicator, which offers a relative distance measurement accuracy of 0.01 mm. In each case the distance indicator is attached to the trolley chassis (Fig. 11). For the case of wheels, the indicator probe is set against the wheel surface and points at its center. As the telescope moves a video camera records the probe indications and the recording is repeated for each wheel. For the case of the rail, the probe is fixed vertically against the rail surface and the recording is done for two dish orientations: Z = 0 • and Z = 60 • . We measure the rail deformations with the probe installed at two different trolleys: front and back, at two different distances from the wheel: ∼60 cm and ∼140 cm respectively.
The azimuthal extent of rail deformations is unknown, and in our measurement setting (Fig. 11) the indicator readings depend on the distance of the probe from the wheel. For the case when the probe is fixed nearby the wheel, we anticipate that the measured value of the vertical rail deformation (∆h) is biased low, since in this case the probe will capture only a fraction of the full indent. In the extreme case, if the probe was set to measure the distance variations (from the chassis to the rail) right under the wheel, no variation would be detected (assuming that wheels are round). The distance of 60 cm from the wheel is about a factor of 2 smaller than the distance that corresponds to the azimuth range (∼7 • ) over which we observe significant variations in the measured position corrections, which we associate with the rail irregularity (Fig. 7). Therefore, we also measure the track height variations with the probe fixed about 1.4 m away from the wheel. At this distance we expect to capture most of the rail indents.
An analysis of the relative variations of the wheels radii, shows that the maximal deviation from the circular shape is <0.05 mm. This is negligible when compared to the amplitude of the rail indents around the welding points: <2.7/4.4 mm with the probe fixed at the distance of about 60/140 cm from the wheel in one of the front/back trolleys. We find that the dependence of these values on the dish elevation is weak (a difference of <0.2 mm between Z = 0 • and Z = 60 • ).  Table II. The dashed line is a distribution of pointing corrections recorded after "Model 5" has been implemented in the telescope pointing system, and it represents an additional validation of the model. A small, <1.6/1.0 mdeg systematic offset is present in azimuth/elevation, witch can be associated with time-dependent effects that are being analyzed and briefly discussed in Sec.IX. Figure 11. Rail surface irregularity measurement. The response of the rail to the pressure induced by two-wheeled trolleys supporting the telescope structure (left) is measured for all azimuths using readings from an analog distance indicator attached to the trolley chassis (right). The largest variations are observed in the vicinity of rail welding points (center).

A. Impact on pointing corrections
It is instructive to consider a toy model of rail surface instability in order to estimate the expected amplitude of the associated pointing corrections.
The radius of the rail is R = 12 m, and the four trolleys supporting the telescope structure are located at corners of a square frame (Fig. 11). Assuming that the telescope structure is rigid and that one of the trolleys is rolling down a local rail indent of the amplitude ∆h, the opposite trolley will be lifted (or will be less loaded) and the vertical axis of the telescope will be rotated about the axis defined by the two remaining trolleys. The rotation angle will be: Assuming that the largest amplitude of the rail indents (registered over the full azimuth rotation) is ∆h≈4.4 mm, the expected γ is about 21 mdeg. It is straightforward to calculate (App. A) that, in the limit of small angles, the associated point-ing corrections are: which gives the expected amplitude of the corrections at the level <15 mdeg in both coordinates. In Fig. 7 the amplitude of the systematic effects, that we associate with rail surface irregularities, ranges from about 16 mdeg to 18 mdeg for elevation and cross-elevation respectively.
Since these values are within a factor of ∼1.2 from the values predicted by the model at the zenith, it is clear that the toy model, given a realistic rail indent amplitude measurement, predicts the pointing corrections that are quite consistent with the observations discussed in the previous sections (Sec. VII). However, the effects of rail indents are operating in all four trolleys simultaneously and possibly are also associated with some structural deformations, therefore in this work we model the position corrections due to the rail instability relying solely on pointing measurements.

IX. DISCUSSION
Although "Model 5" predicts an improvement in pointing precision by a factor of a few with respect to the fast_track version of the control system (Tab. II), Fig. 8 also hints that the pointing data, when corrected for the best-fit pointing model (M (5) ), may still have some residual zenith distance dependence. For example, in the azimuth range A = [50 • , 70 • ] the azimuth residuals seem to be smaller at lower elevations than the residuals of the measurements taken at higher elevations. The same seems to be true for the zenith distance residuals in the azimuth range A = [−180 • , −150 • ]. Whether this is a coincidence is not clear at the present. The azimuth and zenith distance residua (Fig. 8) clearly depend on elevation around A = 140 • . New pointing data may help to better understand the remaining issues around those and other directions.
The data presented in this paper are the most accurate pointing observations ever collected with 32-m Toruń radio telescope ( Fig. 5 right panels). However, the noise level of the azimuth residuals is not uniform across the full range of azimuths (Fig. 8). Generally, the azimuth residuals have smaller dispersion than the zenith distance residuals. It remains to be seen whether the larger dispersion in zenith distance can be associated with imperfections in fixation of the secondary mirror. Taking into account results from independent observations of the position of the secondary mirror, which are performed using an optical camera installed in the secondary focus cabin, this possibility seems plausible. However, by inspecting the residuals in Fig. 8, it is clear that at the current noise level, no obvious nor strong large-scale systematical effects are present, which suggests that the extended pointing model (Eqs. 17) accounts for all major construction deficiencies.
In principle, the dimensionality of the model parameter space could be reduced by utilizing independent measurements of the gravitational sag, that can be obtained with aid of the large-zoom optical camera, installed in the secondary focus cabin, which we use for real-time monitoring of the position of the secondary mirror. However, the gravitational sag can be a function of temperature and it is possible that a general solution may require a more complicated model of the sag. We will investigate this possibility in another study (B.S. Lew, 2018, in preparation).
The pointing models considered in this work do not accommodate for horizontal focus box offsets that depend on elevation, nor for non-vanishing azimuth dependence of the gravitational sag. Results from optical imaging suggest that such effects may be present, but they are not dominant. The anticipated pointing precision of the COCONUT version of the control system (<3.4 mdeg) is still at least a factor of a few below the tracking capability of the telescope. Yet higher accuracy pointing data would be needed to explore these possibilities in greater details and possibly further improve the pointing.
The data analyzed in the this paper (Sec. V) do not provide multiple observations of same directions, and the sky coverage is incomplete. With the advent of new pointing data, to be taken with the COCONUT version of the control system (utilizing "Model 5"), it will be possible to verify and investigate the time stability of the corrections, which is of crucial importance for any pointing model that is calibrated against observational data taken over a short time interval. This will also address the important issues of short-and long-term thermal effects on the pointing performance as the amplitude of annual temperature variations at the telescope site typically spans well over 40 • C.
The "Model 5" has been implemented into control system in December 2016 and has been tested since then. The actual pointing measurements taken right after the implementation of the model (but a few months after the acquisition of the data used to calibrate the models presented in this work) confirm the anticipated pointing precision (Tab. II). However, when combined with large zoom video camera observations of the secondary mirror position, they also hint at the presence of new long-and short-term thermal or time-dependent systematic effects, which are being analyzed (Fig. 10). For example, if during long integrations the anisotropic illumination by the Sun could induce a temperature difference of ∆T = 5 • C between the supporting legs, then the corresponding difference in leg lengths of ∼1 mm should be expected due to thermal expansion. 5 These effects could translate onto pointing corrections of the amplitude similar to those caused by the rail surface irregularities. Some of the new pointing data also show fast varying, then disappearing pointing abnormalities, but those are typically excluded at the data selection stage. Similar effects have also been previously noted in Bayley et al. (1994) for a comparable telescope. In such a case, accounting for thermal effects could be important for reaching stable, milli-degree pointing, but this exceeds beyond the scope of the this work.

X. CONCLUSIONS
We implement a number of astrometric improvements into the control system of the 32-meter radio telescope located near Toruń. Using a dedicated software toolkit we acquire pointing data from observations carried out in 2016, and we analyze them in order to improve the pointing precision.
We slightly modify and extend the pointing corrections model used during the data taking, and we refer to it as "Model 4e". Using the pointing data and χ 2 minimization approach, we find the values of 16 parameters of the model that minimize the pointing correction residuals. The best-fit model can improve the pointing precision to 13 (17 ) in azimuth (elevation) as measured by the RMS of the residual pointing corrections, or by a factor of 2.3 (5.0) with respect to the pointing precision available at the time of the data taking.
Next, we analyze the pointing corrections processed with "Model 4e". We find systematic fluctuations in the residuals with peak-to-peak amplitude of up to ∼20 mdeg, which we identify to be associated with the telescope rail. The rail yields under the weight of 620-ton telescope as four two-wheeled supporting trolleys roll over and around the rail welding points. The pointing effects associated with the rail vertical deformations, which amplitude we measure to be <4.4 mm, cannot be modeled with "Model 4e". In order to account for these irregularities we introduce an extension to the model that we call "Model 5".
The extension allows us to further improve the pointing accuracy down to 8 (12 ) in azimuth (elevation) or by a factor 1.7 (1.4) with respect to the best fit model ("Model 4e") that does not account for the rail irregularities.
We also estimate that deviations of telescope wheels from circular shape of the amplitude <0.05 mm can effectively limit the pointing accuracy to <0.25 mdeg, which is small when compared to other effects investigated in this work. The upper limit of the deviations of the wheels from circular shapes indicates that the most rapidly changing pointing corrections associated with the rail should be stable over time even if the wheels slip.
The pointing corrections when processed through "Model 5" show no evident systematic effects in residuals, suggesting that at the current noise level the model accounts for all major effects that contribute to pointing errors. However, we note that the dispersion of zenith distance corrections is larger than it is in the case of azimuth corrections, which may caused by instabilities of the suspension of the secondary mirror or thermal effects.
The data used for fitting the pointing model were acquired within a relatively short period of time -about 3.5 months of the summer time. While this is may be enough to fit a model, any systematic long term effects (associated with e.g. seasonal temperature variations), if present, may be missed. However, we have shown that if thermal or time dependent effects are under control, the telescope should be capable of pointing with <12 accuracy.

ACKNOWLEDGMENTS
BL would like to thank Kaz Borkowski for his valuable comments on the manuscript and for his previous works on 32-m Toruń radio telescope pointing models. BL also would like to thank Jacek Król, Wojtek Szymański, Jacek Jopczyński, Janusz Filarecki, Gieniu Pazderski and Paweł Wolak for the maintenance of the telescope secondary mirror and the initial measurements of wheels and the rail. Also, thank you to Marcin Gawroński for help in finding suitable position calibrators, to Marian Szymczak for comments and suggestions, and to Boud Roukema for reading the manuscript. BL wishes to thank anonymous referee for stimulating comments that helped improving the manuscript and gaining new insights.
We acknowledge use of the 'matplotlib' plotting library (Hunter 2007).
This work is based in part on observations carried out using the 32-meter radio telescope operated by Toruń Centre for Astronomy of Nicolaus Copernicus University in Toruń (Poland) and supported by the Polish Ministry of Science and Higher Education SpUB grant.
Appendix A: Model of pointing corrections due to rail height irregularities In this section we calculate the azimuth and zenith distance pointing corrections due to telescope tilting caused by a local rail indent. We use a simple geometrical model, previously considered by Kaz Borkowski. We assume that the four trolleys of the telescope are connected by a rigid square frame (Sec. VIII A). The telescope weight split between the trolleys is, in general, not even and may depend on the dish elevation. For example, counter-weights heavier than the dish will cause larger loading of back trolleys with respect to the front ones. When one of the heavily loaded trolleys rolls down an indented region of the rail, the telescope zenith axis will tilt towards that trolley, thus altering the source apparent zenith distance and azimuth. In Fig. 12, the Z axis represents the geodetic zenith of a perfect telescope, whereas Z' represents a zenith tilted by an angle γ towards the trolley located on axis T 1 . The points where axes Z and Z' cross the celestial sphere are marked with red dots. The axis in the horizon plain, T 2 , which is perpendicular to T 1 is the rotation axis. Without indents, these two axes co-rotate with the telescope in azimuthal motion. The relative azimuth, a, of the telescope pointed at a source (marked with a star) is calculated from axis T 2 and, by construction, is always equal to π/4 (or π/4 + π depending on which side the telescope zenith is tilted). The source is found at the zenith distance Z from axis Z, and at the zenith distance Z from axis Z'.