The pearldata routine is the first one called after starting pearl. The data used are the complex visibilities (scans.complexvis) and their weights (scans.complexweight), the uv coordinates, and the photometry (scans.photometry). The measurements are stored in one-dimensional vectors, and auxiliary information such as scan IDs, spectrometers, baselines, and channels are stored in the same vector format. Only measurements with the same time stamp are considered to be belonging to the same interferometer and can be combined in the self-calibration process.